From 7027b4c29de455d457b7d62f52511216a8b76b9c Mon Sep 17 00:00:00 2001 From: harlekin Date: Fri, 20 Sep 2002 21:05:08 +0000 Subject: otabwidget now in config dialog --- (limited to 'core') 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 @@ #include #include #include -#include +#include #include @@ -260,7 +260,8 @@ void Today::startConfig() { if ( plugin.guiPart->configWidget( this ) != 0l ) { ConfigWidget* widget = plugin.guiPart->configWidget( conf.TabWidget3 ); configWidgetList.append( widget ); - conf.TabWidget3->insertTab( widget, plugin.guiPart->appName() ); + conf.TabWidget3->addTab( widget, plugin.guiPart->pixmapNameConfig() + , plugin.guiPart->appName() ); } // set the order/activate tab 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 setCaption( tr( "Today config" ) ); QVBoxLayout *layout = new QVBoxLayout( this ); - TabWidget3 = new QTabWidget( this, "TabWidget3" ); - TabWidget3->setAutoMask( FALSE ); - TabWidget3->setTabShape( QTabWidget::Rounded ); + TabWidget3 = new OTabWidget ( this, "tabwidget", OTabWidget::Global, OTabWidget::Bottom ); layout->addWidget( TabWidget3 ); tab_2 = new QWidget( TabWidget3, "tab_2" ); @@ -73,7 +71,7 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal, WFlags new ToolButton( vbox1, tr( "Move Up" ), "opieplayer/up", this , SLOT( moveSelectedUp() ) ); new ToolButton( vbox1, tr( "Move Down" ),"opieplayer/down", this , SLOT( moveSelectedDown() ) ); tab2Layout->addWidget( hbox1 ); - TabWidget3->insertTab( tab_2, tr( "active/order" ) ); + TabWidget3->addTab( tab_2, "pass", tr( "active/order" ) ); tab_3 = new QWidget( TabWidget3, "tab_3" ); QVBoxLayout *tab3Layout = new QVBoxLayout( tab_3 ); @@ -88,7 +86,7 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal, WFlags SpinBoxTime = new QSpinBox( hbox_inactive, "TimeSpinner" ); tab3Layout->addWidget( hbox_auto ); tab3Layout->addWidget( hbox_inactive ); - TabWidget3->insertTab( tab_3, tr( "Misc" ) ); + TabWidget3->addTab( tab_3, "SettingsIcon", tr( "Misc" ) ); m_applets_changed = false; 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 @@ #include #include #include +#include class QCheckBox; class QLabel; @@ -34,7 +35,7 @@ public: TodayConfig( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); ~TodayConfig(); - QTabWidget* TabWidget3; + OTabWidget* TabWidget3; void writeConfig(); void pluginManagement( QString libName, QString name, QPixmap icon ); -- cgit v0.9.0.2