summaryrefslogtreecommitdiff
path: root/core/settings/launcher/doctabsettings.cpp
Side-by-side diff
Diffstat (limited to 'core/settings/launcher/doctabsettings.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/settings/launcher/doctabsettings.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/settings/launcher/doctabsettings.cpp b/core/settings/launcher/doctabsettings.cpp
index 179a7f9..dfdc9be 100644
--- a/core/settings/launcher/doctabsettings.cpp
+++ b/core/settings/launcher/doctabsettings.cpp
@@ -19,50 +19,54 @@
++=   -.     .`     .:
 :     =  ...= . :.=- You should have received a copy of the GNU
 -.   .:....=;==+<; General Public License along with this file;
  -_. . .   )=.  = see the file COPYING. If not, write to the
    --        :-=` Free Software Foundation, Inc.,
59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#include "doctabsettings.h"
+/* OPIE */
#include <qpe/config.h>
+#include <opie2/odebug.h>
+/* QT */
#include <qcheckbox.h>
#include <qlayout.h>
#include <qlabel.h>
#include <qwhatsthis.h>
+
DocTabSettings::DocTabSettings( QWidget *parent, const char *name ):QWidget( parent, name )
{
QBoxLayout *lay = new QVBoxLayout( this, 4, 4 );
_enable = new QCheckBox( tr( "Enable the Documents Tab" ), this );
Config cfg( "Launcher" );
cfg.setGroup( "DocTab" );
_enable->setChecked( cfg.readBoolEntry( "Enable", true ) );
lay->addWidget( _enable );
lay->addWidget( new QLabel( tr( "<b>Note:</b> Changing these settings may need restarting Opie to become effective." ), this ) );
lay->addStretch();
QWhatsThis::add( _enable, tr( "Check, if you want the Documents Tab to be visible." ) );
}
void DocTabSettings::appletChanged()
{
}
void DocTabSettings::accept()
{
- qDebug( "DocTabSettings::accept()" );
+ odebug << "DocTabSettings::accept()" << oendl;
Config cfg( "Launcher" );
cfg.setGroup( "DocTab" );
cfg.writeEntry( "Enable", _enable->isChecked() );
cfg.write();
}