author | harlekin <harlekin> | 2002-09-17 09:36:43 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-09-17 09:36:43 (UTC) |
commit | 03abe825f26678c34142e14f93cabd8f097d5bea (patch) (unidiff) | |
tree | 39ea534ae903bf7699237dc8d19c4f34d955c0bf /core/pim/today/todayconfig.cpp | |
parent | 537aee09b7df89a166debf5ffd14286cbb636898 (diff) | |
download | opie-03abe825f26678c34142e14f93cabd8f097d5bea.zip opie-03abe825f26678c34142e14f93cabd8f097d5bea.tar.gz opie-03abe825f26678c34142e14f93cabd8f097d5bea.tar.bz2 |
some changes
Diffstat (limited to 'core/pim/today/todayconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/todayconfig.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp index 08e59c0..79c4d1f 100644 --- a/core/pim/today/todayconfig.cpp +++ b/core/pim/today/todayconfig.cpp | |||
@@ -30,14 +30,12 @@ | |||
30 | #include <qvbox.h> | 30 | #include <qvbox.h> |
31 | #include <qtoolbutton.h> | 31 | #include <qtoolbutton.h> |
32 | 32 | ||
33 | // for getenv | ||
34 | #include <stdlib.h> | ||
35 | |||
36 | class ToolButton : public QToolButton { | 33 | class ToolButton : public QToolButton { |
34 | |||
37 | public: | 35 | public: |
38 | ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE ) | 36 | ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE ) |
39 | : QToolButton( parent, name ) { | 37 | : QToolButton( parent, name ) { |
40 | setTextLabel( name ); | 38 | // setTextLabel( name ); |
41 | setPixmap( Resource::loadPixmap( icon ) ); | 39 | setPixmap( Resource::loadPixmap( icon ) ); |
42 | setAutoRaise( TRUE ); | 40 | setAutoRaise( TRUE ); |
43 | setFocusPolicy( QWidget::NoFocus ); | 41 | setFocusPolicy( QWidget::NoFocus ); |
@@ -52,17 +50,15 @@ public: | |||
52 | * By that way it would be real easy to have it as seperate app in settings tab | 50 | * By that way it would be real easy to have it as seperate app in settings tab |
53 | * | 51 | * |
54 | */ | 52 | */ |
55 | TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal, WFlags fl ) | 53 | TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal, WFlags fl ) |
56 | : QDialog( parent, name, modal, fl ) { | 54 | : QDialog( parent, name, modal, fl ) { |
57 | 55 | ||
58 | if ( !name ) { | ||
59 | setName( "todayconfig" ); | ||
60 | } | ||
61 | setCaption( tr( "Today config" ) ); | 56 | setCaption( tr( "Today config" ) ); |
62 | 57 | ||
63 | QVBoxLayout *layout = new QVBoxLayout( this ); | 58 | QVBoxLayout *layout = new QVBoxLayout( this ); |
64 | TabWidget3 = new QTabWidget( this, "TabWidget3" ); | 59 | TabWidget3 = new QTabWidget( this, "TabWidget3" ); |
65 | TabWidget3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, TabWidget3->sizePolicy().hasHeightForWidth() ) ); | 60 | // TabWidget3->setFrameShape( QFrame::NoFrame ); |
61 | //TabWidget3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, TabWidget3->sizePolicy().hasHeightForWidth() ) ); | ||
66 | TabWidget3->setAutoMask( FALSE ); | 62 | TabWidget3->setAutoMask( FALSE ); |
67 | TabWidget3->setTabShape( QTabWidget::Rounded ); | 63 | TabWidget3->setTabShape( QTabWidget::Rounded ); |
68 | layout->addWidget( TabWidget3 ); | 64 | layout->addWidget( TabWidget3 ); |
@@ -107,6 +103,7 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal, WFlags | |||
107 | connect ( m_appletListView , SIGNAL( clicked ( QListViewItem * ) ), this, SLOT( appletChanged ( ) ) ); | 103 | connect ( m_appletListView , SIGNAL( clicked ( QListViewItem * ) ), this, SLOT( appletChanged ( ) ) ); |
108 | 104 | ||
109 | readConfig(); | 105 | readConfig(); |
106 | showMaximized(); | ||
110 | } | 107 | } |
111 | 108 | ||
112 | 109 | ||