summaryrefslogtreecommitdiff
path: root/core/settings/launcher/menusettings.cpp
Unidiff
Diffstat (limited to 'core/settings/launcher/menusettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/launcher/menusettings.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/core/settings/launcher/menusettings.cpp b/core/settings/launcher/menusettings.cpp
index 6fca621..faa7cf4 100644
--- a/core/settings/launcher/menusettings.cpp
+++ b/core/settings/launcher/menusettings.cpp
@@ -18,3 +18,3 @@
18..}^=.=       =       ; Public License for more details. 18..}^=.=       =       ; Public License for more details.
19++=   -.     .`     .: 19++=   -.     .`     .:
20 :     =  ...= . :.=- You should have received a copy of the GNU 20 :     =  ...= . :.=- You should have received a copy of the GNU
@@ -62,3 +62,3 @@ MenuSettings::MenuSettings ( QWidget *parent, const char *name )
62 lay-> addWidget ( m_list ); 62 lay-> addWidget ( m_list );
63 63
64 m_menutabs = new QCheckBox ( tr( "Show Launcher tabs in O-Menu" ), this ); 64 m_menutabs = new QCheckBox ( tr( "Show Launcher tabs in O-Menu" ), this );
@@ -66,2 +66,5 @@ MenuSettings::MenuSettings ( QWidget *parent, const char *name )
66 66
67 m_menusubpopup = new QCheckBox ( tr( "Show Applications in subpopups" ), this );
68 lay-> addWidget ( m_menusubpopup );
69
67 QWhatsThis::add ( m_list, tr( "Check the applets that you want to have included in the O-Menu." )); 70 QWhatsThis::add ( m_list, tr( "Check the applets that you want to have included in the O-Menu." ));
@@ -121,2 +124,3 @@ void MenuSettings::init ( )
121 m_menutabs-> setChecked ( cfg. readBoolEntry ( "LauncherTabs", true )); 124 m_menutabs-> setChecked ( cfg. readBoolEntry ( "LauncherTabs", true ));
125 m_menusubpopup-> setChecked ( cfg. readBoolEntry ( "LauncherSubPopup", true ));
122} 126}
@@ -151,3 +155,8 @@ void MenuSettings::accept ( )
151 } 155 }
152 156
157 if ( m_menusubpopup-> isChecked ( ) != cfg. readBoolEntry ( "LauncherSubPopup", true )) {
158 apps_changed = true;
159 cfg. writeEntry ( "LauncherSubPopup", m_menusubpopup-> isChecked ( ));
160 }
161
153 cfg. write ( ); 162 cfg. write ( );
@@ -159,3 +168,6 @@ void MenuSettings::accept ( )
159 if ( apps_changed ) { 168 if ( apps_changed ) {
169 // currently use reloadApplets() since reloadApps is now used exclusive for server
170 // to refresh the tabs. But what we want here is also a refresh of the startmenu entries
160 QCopEnvelope ( "QPE/TaskBar", "reloadApps()" ); 171 QCopEnvelope ( "QPE/TaskBar", "reloadApps()" );
172 QCopEnvelope ( "QPE/TaskBar", "reloadApplets()" );
161 } 173 }