Diffstat (limited to 'core/settings/launcher/tabssettings.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/settings/launcher/tabssettings.cpp | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/core/settings/launcher/tabssettings.cpp b/core/settings/launcher/tabssettings.cpp index 8f5f7fa..6cc69c0 100644 --- a/core/settings/launcher/tabssettings.cpp +++ b/core/settings/launcher/tabssettings.cpp | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <qlayout.h> | 39 | #include <qlayout.h> |
40 | #include <qlabel.h> | 40 | #include <qlabel.h> |
41 | #include <qwhatsthis.h> | 41 | #include <qwhatsthis.h> |
42 | #include <qcheckbox.h> | ||
42 | 43 | ||
43 | #include "tabdialog.h" | 44 | #include "tabdialog.h" |
44 | 45 | ||
@@ -75,6 +76,9 @@ TabsSettings::TabsSettings ( QWidget *parent, const char *name ) | |||
75 | 76 | ||
76 | lay-> setRowStretch ( 4, 10 ); | 77 | lay-> setRowStretch ( 4, 10 ); |
77 | 78 | ||
79 | m_busyblink = new QCheckBox ( tr( "Enable blinking busy indicator" ), this ); | ||
80 | lay-> addMultiCellWidget ( m_busyblink, 5, 5, 0, 1 ); | ||
81 | |||
78 | init ( ); | 82 | init ( ); |
79 | } | 83 | } |
80 | 84 | ||
@@ -93,12 +97,16 @@ void TabsSettings::init ( ) | |||
93 | m_list-> insertItem ( pix, tr( "Documents" )); | 97 | m_list-> insertItem ( pix, tr( "Documents" )); |
94 | m_ids += "Documents"; // No tr | 98 | m_ids += "Documents"; // No tr |
95 | 99 | ||
96 | readTabSettings ( ); | 100 | Config cfg ( "Launcher" ); |
101 | |||
102 | readTabSettings ( cfg ); | ||
103 | |||
104 | cfg. setGroup ( "GUI" ); | ||
105 | m_busyblink-> setChecked ( cfg. readEntry ( "BusyType" ). lower ( ) == "blink" ); | ||
97 | } | 106 | } |
98 | 107 | ||
99 | void TabsSettings::readTabSettings ( ) | 108 | void TabsSettings::readTabSettings ( Config &cfg ) |
100 | { | 109 | { |
101 | Config cfg ( "Launcher" ); | ||
102 | QString grp ( "Tab %1" ); // No tr | 110 | QString grp ( "Tab %1" ); // No tr |
103 | m_tabs. clear ( ); | 111 | m_tabs. clear ( ); |
104 | 112 | ||
@@ -198,6 +206,14 @@ void TabsSettings::accept ( ) | |||
198 | 206 | ||
199 | tc. m_changed = false; | 207 | tc. m_changed = false; |
200 | } | 208 | } |
209 | cfg. setGroup ( "GUI" ); | ||
210 | QString busytype = QString ( m_busyblink-> isChecked ( ) ? "blink" : "" ); | ||
211 | |||
212 | cfg. writeEntry ( "BusyType", busytype ); | ||
213 | { | ||
214 | QCopEnvelope e ( "QPE/Launcher", "setBusyIndicatorType(QString)" ); | ||
215 | e << busytype; | ||
216 | } | ||
201 | } | 217 | } |
202 | 218 | ||
203 | void TabsSettings::newClicked ( ) | 219 | void TabsSettings::newClicked ( ) |