[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/plasma/applets/rssnow
From:       Christian Weilbach <christian () whiletaker ! homeip ! net>
Date:       2008-08-20 2:32:46
Message-ID: 1219199566.387430.17279.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 849749 by weilbach:

Make the drop target configurable.


 M  +7 -0      config.ui  
 M  +7 -0      news.cpp  


--- trunk/playground/base/plasma/applets/rssnow/config.ui #849748:849749
@@ -195,6 +195,13 @@
     </widget>
    </item>
    <item row="8" column="0" colspan="8" >
+    <widget class="QCheckBox" name="showDropTarget" >
+     <property name="text" >
+      <string>Show drop target</string>
+     </property>
+    </widget>
+   </item>
+   <item row="9" column="0" colspan="8" >
     <spacer>
      <property name="orientation" >
       <enum>Qt::Vertical</enum>
--- trunk/playground/base/plasma/applets/rssnow/news.cpp #849748:849749
@@ -154,6 +154,11 @@
     } else {
         ui.animations->setCheckState(Qt::Unchecked);
     }
+    if (m_showdroptarget) {
+        ui.showDropTarget->setCheckState(Qt::Checked);
+    } else {
+        ui.showDropTarget->setCheckState(Qt::Unchecked);
+    }
 
     QString feedstring;
     foreach (QString feed, m_feedlist) {
@@ -211,6 +216,7 @@
     m_maxAge = ui.maxAge->value();
     m_logo = ui.logo->isChecked();
     m_animations = ui.animations->isChecked();
+    m_showdroptarget = ui.showDropTarget->isChecked();
 
     m_feedlist.clear();
     QString feed;
@@ -228,6 +234,7 @@
     cg.writeEntry("switchInterval", m_switchInterval);
     cg.writeEntry("animations", m_animations);
     cg.writeEntry("logo", m_logo);
+    cg.writeEntry("droptarget", m_showdroptarget);
     cg.writeEntry("maxAge", m_maxAge);
 
     updateScrollers();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic