author | zecke <zecke> | 2003-09-01 16:33:33 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-09-01 16:33:33 (UTC) |
commit | aa1be5c49b77368999f068222f5f4e1f0d1ace0d (patch) (side-by-side diff) | |
tree | 63f4283d3e68e6b4c1d0a81dd306276813c1a0c8 /noncore | |
parent | 4e7703b3055562d93dc2d993f47888a3538429d2 (diff) | |
download | opie-aa1be5c49b77368999f068222f5f4e1f0d1ace0d.zip opie-aa1be5c49b77368999f068222f5f4e1f0d1ace0d.tar.gz opie-aa1be5c49b77368999f068222f5f4e1f0d1ace0d.tar.bz2 |
port to OSplitter but QComboBox is a sucker
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 14 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 4 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfmData.cpp | 11 |
3 files changed, 15 insertions, 14 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 77dca49..91318f1 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -18,3 +18,3 @@ -#include <opie/otabwidget.h> +#include <opie/osplitter.h> @@ -220,6 +220,6 @@ void AdvancedFm::rePopulate() { - TabWidget->setCurrentTab(i - 1); + TabWidget->setCurrentWidget(i - 1); populateView(); } - TabWidget->setCurrentTab( tmpTab - 1); + TabWidget->setCurrentWidget( tmpTab - 1); } @@ -278,3 +278,3 @@ void AdvancedFm::switchToLocalTab() { - TabWidget->setCurrentTab(0); + TabWidget->setCurrentWidget(0); Local_View->setFocus(); @@ -284,3 +284,3 @@ void AdvancedFm::switchToRemoteTab() { - TabWidget->setCurrentTab(1); + TabWidget->setCurrentWidget(1); Remote_View->setFocus(); @@ -864,5 +864,5 @@ void AdvancedFm::setOtherTabCurrent() if ( whichTab == 1) - TabWidget->setCurrentTab(1); + TabWidget->setCurrentWidget(1); else - TabWidget->setCurrentTab(0); + TabWidget->setCurrentWidget(0); } diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h index 94d7bd7..5e2c769 100644 --- a/noncore/apps/advancedfm/advancedfm.h +++ b/noncore/apps/advancedfm/advancedfm.h @@ -32,3 +32,3 @@ -class OTabWidget; +class OSplitter; class QVBoxLayout; @@ -92,3 +92,3 @@ protected: - OTabWidget *TabWidget; + OSplitter *TabWidget; QCopChannel * channel; diff --git a/noncore/apps/advancedfm/advancedfmData.cpp b/noncore/apps/advancedfm/advancedfmData.cpp index 45dc0c4..463b202 100644 --- a/noncore/apps/advancedfm/advancedfmData.cpp +++ b/noncore/apps/advancedfm/advancedfmData.cpp @@ -13,3 +13,3 @@ -#include <opie/otabwidget.h> +#include <opie/osplitter.h> #include <qpe/storage.h> @@ -132,3 +132,3 @@ void AdvancedFm::init() { - TabWidget = new OTabWidget( this, "TabWidget",/* OTabWidget::Global | */OTabWidget::IconTab); + TabWidget = new OSplitter( Horizontal, this, "TabWidget" ); // TabWidget = new QTabWidget( this, "TabWidget" ); @@ -155,3 +155,3 @@ void AdvancedFm::init() { - TabWidget->addTab( tab,"advancedfm/smFileBrowser.png", tr("1")); + TabWidget->addWidget( tab,"advancedfm/smFileBrowser.png", tr("1")); // TabWidget->insertTab( tab, tr("1")); @@ -178,3 +178,4 @@ void AdvancedFm::init() { - TabWidget->addTab( tab_2, "advancedfm/smFileBrowser.png",tr( "2")); + TabWidget->addWidget( tab_2, "advancedfm/smFileBrowser.png",tr( "2")); + TabWidget->setSizeChange( 370 ); // TabWidget->insertTab( tab_2, tr( "2")); @@ -234,3 +235,3 @@ void AdvancedFm::init() { showMenuHidden(); - TabWidget->setCurrentTab(0); + TabWidget->setCurrentWidget(0); |