-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 @@ -17,5 +17,5 @@ // #include <opie/ofiledialog.h> -#include <opie/otabwidget.h> +#include <opie/osplitter.h> #include <qpe/filemanager.h> @@ -219,8 +219,8 @@ void AdvancedFm::rePopulate() for(int i =1; i < 3; i++) { - TabWidget->setCurrentTab(i - 1); + TabWidget->setCurrentWidget(i - 1); populateView(); } - TabWidget->setCurrentTab( tmpTab - 1); + TabWidget->setCurrentWidget( tmpTab - 1); } @@ -277,5 +277,5 @@ void AdvancedFm::ListPressed( int mouse, QListViewItem *, const QPoint& , int ) void AdvancedFm::switchToLocalTab() { - TabWidget->setCurrentTab(0); + TabWidget->setCurrentWidget(0); Local_View->setFocus(); } @@ -283,5 +283,5 @@ void AdvancedFm::switchToLocalTab() void AdvancedFm::switchToRemoteTab() { - TabWidget->setCurrentTab(1); + TabWidget->setCurrentWidget(1); Remote_View->setFocus(); } @@ -863,7 +863,7 @@ 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 @@ -31,5 +31,5 @@ #include <qpixmap.h> -class OTabWidget; +class OSplitter; class QVBoxLayout; class QHBoxLayout; @@ -91,5 +91,5 @@ protected slots: protected: - OTabWidget *TabWidget; + OSplitter *TabWidget; QCopChannel * channel; QPixmap unknownXpm; 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 @@ -12,5 +12,5 @@ #include "advancedfm.h" -#include <opie/otabwidget.h> +#include <opie/osplitter.h> #include <qpe/storage.h> @@ -131,5 +131,5 @@ void AdvancedFm::init() { - TabWidget = new OTabWidget( this, "TabWidget",/* OTabWidget::Global | */OTabWidget::IconTab); + TabWidget = new OSplitter( Horizontal, this, "TabWidget" ); // TabWidget = new QTabWidget( this, "TabWidget" ); layout->addWidget( TabWidget, 4 ); @@ -154,5 +154,5 @@ void AdvancedFm::init() { tabLayout->addWidget( Local_View, 0, 0 ); - TabWidget->addTab( tab,"advancedfm/smFileBrowser.png", tr("1")); + TabWidget->addWidget( tab,"advancedfm/smFileBrowser.png", tr("1")); // TabWidget->insertTab( tab, tr("1")); @@ -177,5 +177,6 @@ void AdvancedFm::init() { tabLayout_2->addWidget( Remote_View, 0, 0 ); - 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")); @@ -233,5 +234,5 @@ void AdvancedFm::init() { b=FALSE; showMenuHidden(); - TabWidget->setCurrentTab(0); + TabWidget->setCurrentWidget(0); } |