author | sandman <sandman> | 2002-10-02 22:15:33 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-02 22:15:33 (UTC) |
commit | 7e864eb22b5663ad9771b562fbe901042dc68657 (patch) (side-by-side diff) | |
tree | c7cc270012ff2aba51308088b51022b2056f9721 /core/settings/launcher/tabssettings.cpp | |
parent | c8d4ed632ac27261219e5824f988a320b96b8ae2 (diff) | |
download | opie-7e864eb22b5663ad9771b562fbe901042dc68657.zip opie-7e864eb22b5663ad9771b562fbe901042dc68657.tar.gz opie-7e864eb22b5663ad9771b562fbe901042dc68657.tar.bz2 |
Launcher settings now also supports the new menu applets interface
Diffstat (limited to 'core/settings/launcher/tabssettings.cpp') (more/less context) (ignore 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 @@ #include <qlayout.h> #include <qlabel.h> #include <qwhatsthis.h> +#include <qcheckbox.h> #include "tabdialog.h" @@ -75,6 +76,9 @@ TabsSettings::TabsSettings ( QWidget *parent, const char *name ) lay-> setRowStretch ( 4, 10 ); + m_busyblink = new QCheckBox ( tr( "Enable blinking busy indicator" ), this ); + lay-> addMultiCellWidget ( m_busyblink, 5, 5, 0, 1 ); + init ( ); } @@ -93,12 +97,16 @@ void TabsSettings::init ( ) m_list-> insertItem ( pix, tr( "Documents" )); m_ids += "Documents"; // No tr - readTabSettings ( ); + Config cfg ( "Launcher" ); + + readTabSettings ( cfg ); + + cfg. setGroup ( "GUI" ); + m_busyblink-> setChecked ( cfg. readEntry ( "BusyType" ). lower ( ) == "blink" ); } -void TabsSettings::readTabSettings ( ) +void TabsSettings::readTabSettings ( Config &cfg ) { - Config cfg ( "Launcher" ); QString grp ( "Tab %1" ); // No tr m_tabs. clear ( ); @@ -198,6 +206,14 @@ void TabsSettings::accept ( ) tc. m_changed = false; } + cfg. setGroup ( "GUI" ); + QString busytype = QString ( m_busyblink-> isChecked ( ) ? "blink" : "" ); + + cfg. writeEntry ( "BusyType", busytype ); + { + QCopEnvelope e ( "QPE/Launcher", "setBusyIndicatorType(QString)" ); + e << busytype; + } } void TabsSettings::newClicked ( ) |