summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-09-20 21:05:08 (UTC)
committer harlekin <harlekin>2002-09-20 21:05:08 (UTC)
commit7027b4c29de455d457b7d62f52511216a8b76b9c (patch) (unidiff)
treeacc5eaa9c0f92f5e88f3bb14dab77c09f9cb9d2c
parentd2d73b6391fbc7f743199f48387d13e887bbac1e (diff)
downloadopie-7027b4c29de455d457b7d62f52511216a8b76b9c.zip
opie-7027b4c29de455d457b7d62f52511216a8b76b9c.tar.gz
opie-7027b4c29de455d457b7d62f52511216a8b76b9c.tar.bz2
otabwidget now in config dialog
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/today.cpp5
-rw-r--r--core/pim/today/todayconfig.cpp8
-rw-r--r--core/pim/today/todayconfig.h3
3 files changed, 8 insertions, 8 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index d8b427d..901a61a 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -33,7 +33,7 @@
33#include <qpixmap.h> 33#include <qpixmap.h>
34#include <qlayout.h> 34#include <qlayout.h>
35#include <qhbox.h> 35#include <qhbox.h>
36#include <qtabwidget.h> 36#include <opie/otabwidget.h>
37#include <qdialog.h> 37#include <qdialog.h>
38 38
39 39
@@ -260,7 +260,8 @@ void Today::startConfig() {
260 if ( plugin.guiPart->configWidget( this ) != 0l ) { 260 if ( plugin.guiPart->configWidget( this ) != 0l ) {
261 ConfigWidget* widget = plugin.guiPart->configWidget( conf.TabWidget3 ); 261 ConfigWidget* widget = plugin.guiPart->configWidget( conf.TabWidget3 );
262 configWidgetList.append( widget ); 262 configWidgetList.append( widget );
263 conf.TabWidget3->insertTab( widget, plugin.guiPart->appName() ); 263 conf.TabWidget3->addTab( widget, plugin.guiPart->pixmapNameConfig()
264 , plugin.guiPart->appName() );
264 } 265 }
265 // set the order/activate tab 266 // set the order/activate tab
266 conf.pluginManagement( plugin.name, plugin.guiPart->pluginName(), 267 conf.pluginManagement( plugin.name, plugin.guiPart->pluginName(),
diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp
index 532d126..04f595b 100644
--- a/core/pim/today/todayconfig.cpp
+++ b/core/pim/today/todayconfig.cpp
@@ -55,9 +55,7 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal, WFlags
55 setCaption( tr( "Today config" ) ); 55 setCaption( tr( "Today config" ) );
56 56
57 QVBoxLayout *layout = new QVBoxLayout( this ); 57 QVBoxLayout *layout = new QVBoxLayout( this );
58 TabWidget3 = new QTabWidget( this, "TabWidget3" ); 58 TabWidget3 = new OTabWidget ( this, "tabwidget", OTabWidget::Global, OTabWidget::Bottom );
59 TabWidget3->setAutoMask( FALSE );
60 TabWidget3->setTabShape( QTabWidget::Rounded );
61 layout->addWidget( TabWidget3 ); 59 layout->addWidget( TabWidget3 );
62 60
63 tab_2 = new QWidget( TabWidget3, "tab_2" ); 61 tab_2 = new QWidget( TabWidget3, "tab_2" );
@@ -73,7 +71,7 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal, WFlags
73 new ToolButton( vbox1, tr( "Move Up" ), "opieplayer/up", this , SLOT( moveSelectedUp() ) ); 71 new ToolButton( vbox1, tr( "Move Up" ), "opieplayer/up", this , SLOT( moveSelectedUp() ) );
74 new ToolButton( vbox1, tr( "Move Down" ),"opieplayer/down", this , SLOT( moveSelectedDown() ) ); 72 new ToolButton( vbox1, tr( "Move Down" ),"opieplayer/down", this , SLOT( moveSelectedDown() ) );
75 tab2Layout->addWidget( hbox1 ); 73 tab2Layout->addWidget( hbox1 );
76 TabWidget3->insertTab( tab_2, tr( "active/order" ) ); 74 TabWidget3->addTab( tab_2, "pass", tr( "active/order" ) );
77 75
78 tab_3 = new QWidget( TabWidget3, "tab_3" ); 76 tab_3 = new QWidget( TabWidget3, "tab_3" );
79 QVBoxLayout *tab3Layout = new QVBoxLayout( tab_3 ); 77 QVBoxLayout *tab3Layout = new QVBoxLayout( tab_3 );
@@ -88,7 +86,7 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal, WFlags
88 SpinBoxTime = new QSpinBox( hbox_inactive, "TimeSpinner" ); 86 SpinBoxTime = new QSpinBox( hbox_inactive, "TimeSpinner" );
89 tab3Layout->addWidget( hbox_auto ); 87 tab3Layout->addWidget( hbox_auto );
90 tab3Layout->addWidget( hbox_inactive ); 88 tab3Layout->addWidget( hbox_inactive );
91 TabWidget3->insertTab( tab_3, tr( "Misc" ) ); 89 TabWidget3->addTab( tab_3, "SettingsIcon", tr( "Misc" ) );
92 90
93 m_applets_changed = false; 91 m_applets_changed = false;
94 92
diff --git a/core/pim/today/todayconfig.h b/core/pim/today/todayconfig.h
index d5bdb4b..49cd10f 100644
--- a/core/pim/today/todayconfig.h
+++ b/core/pim/today/todayconfig.h
@@ -20,6 +20,7 @@
20#include <qvariant.h> 20#include <qvariant.h>
21#include <qdialog.h> 21#include <qdialog.h>
22#include <qlistview.h> 22#include <qlistview.h>
23#include <opie/otabwidget.h>
23 24
24class QCheckBox; 25class QCheckBox;
25class QLabel; 26class QLabel;
@@ -34,7 +35,7 @@ public:
34 TodayConfig( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); 35 TodayConfig( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
35 ~TodayConfig(); 36 ~TodayConfig();
36 37
37 QTabWidget* TabWidget3; 38 OTabWidget* TabWidget3;
38 39
39 void writeConfig(); 40 void writeConfig();
40 void pluginManagement( QString libName, QString name, QPixmap icon ); 41 void pluginManagement( QString libName, QString name, QPixmap icon );