summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp14
-rw-r--r--noncore/apps/advancedfm/advancedfm.h4
-rw-r--r--noncore/apps/advancedfm/advancedfmData.cpp11
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
@@ -16,7 +16,7 @@
// #include <opie/ofileselector.h>
// #include <opie/ofiledialog.h>
-#include <opie/otabwidget.h>
+#include <opie/osplitter.h>
#include <qpe/filemanager.h>
#include <qpe/qcopenvelope_qws.h>
@@ -218,10 +218,10 @@ 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);
}
void AdvancedFm::ListClicked(QListViewItem *selectedItem)
@@ -276,13 +276,13 @@ void AdvancedFm::ListPressed( int mouse, QListViewItem *, const QPoint& , int )
void AdvancedFm::switchToLocalTab()
{
- TabWidget->setCurrentTab(0);
+ TabWidget->setCurrentWidget(0);
Local_View->setFocus();
}
void AdvancedFm::switchToRemoteTab()
{
- TabWidget->setCurrentTab(1);
+ TabWidget->setCurrentWidget(1);
Remote_View->setFocus();
}
@@ -862,9 +862,9 @@ QListView * AdvancedFm::OtherView()
void AdvancedFm::setOtherTabCurrent()
{
if ( whichTab == 1)
- TabWidget->setCurrentTab(1);
+ TabWidget->setCurrentWidget(1);
else
- TabWidget->setCurrentTab(0);
+ TabWidget->setCurrentWidget(0);
}
void AdvancedFm::qcopReceive(const QCString &msg, const QByteArray &data) {
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
@@ -30,7 +30,7 @@
#include <qtimer.h>
#include <qpixmap.h>
-class OTabWidget;
+class OSplitter;
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
@@ -90,7 +90,7 @@ protected slots:
protected:
- OTabWidget *TabWidget;
+ OSplitter *TabWidget;
QCopChannel * channel;
QPixmap unknownXpm;
int whichTab;
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
@@ -11,7 +11,7 @@
***************************************************************************/
#include "advancedfm.h"
-#include <opie/otabwidget.h>
+#include <opie/osplitter.h>
#include <qpe/storage.h>
#include <qpe/qpeapplication.h>
@@ -130,7 +130,7 @@ void AdvancedFm::init() {
layout->addWidget( lineBox );
- TabWidget = new OTabWidget( this, "TabWidget",/* OTabWidget::Global | */OTabWidget::IconTab);
+ TabWidget = new OSplitter( Horizontal, this, "TabWidget" );
// TabWidget = new QTabWidget( this, "TabWidget" );
layout->addWidget( TabWidget, 4 );
@@ -153,7 +153,7 @@ 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"));
tab_2 = new QWidget( TabWidget, "tab_2" );
@@ -176,7 +176,8 @@ 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"));
/* tab_3 = new QWidget( TabWidget, "tab_3" );
@@ -232,7 +233,7 @@ void AdvancedFm::init() {
filterStr="*";
b=FALSE;
showMenuHidden();
- TabWidget->setCurrentTab(0);
+ TabWidget->setCurrentWidget(0);
}