summaryrefslogtreecommitdiff
path: root/core/pim/today/todayconfig.cpp
Unidiff
Diffstat (limited to 'core/pim/today/todayconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/todayconfig.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp
index bfb5ec6..e71c5b0 100644
--- a/core/pim/today/todayconfig.cpp
+++ b/core/pim/today/todayconfig.cpp
@@ -2,55 +2,52 @@
2 * todayconfig.cpp 2 * todayconfig.cpp
3 * 3 *
4 * copyright : (c) 2002, 2003 by Maximilian Reiß 4 * copyright : (c) 2002, 2003 by Maximilian Reiß
5 * email : harlekin@handhelds.org 5 * email : harlekin@handhelds.org
6 * 6 *
7 */ 7 */
8/*************************************************************************** 8/***************************************************************************
9 * * 9 * *
10 * This program is free software; you can redistribute it and/or modify * 10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by * 11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or * 12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. * 13 * (at your option) any later version. *
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
17#include "todayconfig.h" 17#include "todayconfig.h"
18 18
19#include <qpe/config.h> 19#include <qpe/config.h>
20#include <qpe/resource.h> 20#include <qpe/resource.h>
21#include <qpe/qcopenvelope_qws.h> 21#include <qpe/qcopenvelope_qws.h>
22 22
23#include <qcheckbox.h> 23#include <qcheckbox.h>
24#include <qlabel.h> 24#include <qlabel.h>
25#include <qspinbox.h> 25#include <qspinbox.h>
26#include <qtabwidget.h>
27#include <qlayout.h> 26#include <qlayout.h>
28#include <qheader.h> 27#include <qheader.h>
29#include <qhbox.h>
30#include <qvbox.h> 28#include <qvbox.h>
31#include <qtoolbutton.h> 29#include <qtoolbutton.h>
32#include <qtooltip.h>
33#include <qwhatsthis.h> 30#include <qwhatsthis.h>
34 31
35class ToolButton : public QToolButton { 32class ToolButton : public QToolButton {
36 33
37public: 34public:
38 ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE ) 35 ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE )
39 : QToolButton( parent, name ) { 36 : QToolButton( parent, name ) {
40 setPixmap( Resource::loadPixmap( icon ) ); 37 setPixmap( Resource::loadPixmap( icon ) );
41 setAutoRaise( TRUE ); 38 setAutoRaise( TRUE );
42 setFocusPolicy( QWidget::NoFocus ); 39 setFocusPolicy( QWidget::NoFocus );
43 setToggleButton( t ); 40 setToggleButton( t );
44 connect( this, t ? SIGNAL( toggled(bool) ) : SIGNAL( clicked() ), handler, slot ); 41 connect( this, t ? SIGNAL( toggled(bool) ) : SIGNAL( clicked() ), handler, slot );
45 } 42 }
46}; 43};
47 44
48 45
49/** 46/**
50 * The class has currently quite some duplicate code. 47 * The class has currently quite some duplicate code.
51 * By that way it would be real easy to have it as seperate app in settings tab 48 * By that way it would be real easy to have it as seperate app in settings tab
52 * 49 *
53 */ 50 */
54TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal ) 51TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal )
55 : QDialog( parent, name, modal, WStyle_ContextHelp ) { 52 : QDialog( parent, name, modal, WStyle_ContextHelp ) {
56 53