summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-03-17 01:44:37 (UTC)
committer llornkcor <llornkcor>2002-03-17 01:44:37 (UTC)
commit624a283591094628425c94fedfdd62941ad7c853 (patch) (side-by-side diff)
tree092b96fa04b16eae5e9702a7a83c67e1cb6a7e60
parent2fe80a98551e89b45798369f1bf91f0368382ba6 (diff)
downloadopie-624a283591094628425c94fedfdd62941ad7c853.zip
opie-624a283591094628425c94fedfdd62941ad7c853.tar.gz
opie-624a283591094628425c94fedfdd62941ad7c853.tar.bz2
added checks on the 'View' menu for which tab is current
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index 6a3a64d..118275b 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -103,8 +103,9 @@ OpieFtp::OpieFtp( )
tabMenu->insertItem( tr( "Switch to Local" ), this, SLOT( switchToLocalTab() ));
tabMenu->insertItem( tr( "Switch to Remote" ), this, SLOT( switchToRemoteTab() ));
tabMenu->insertItem( tr( "Switch to Config" ), this, SLOT( switchToConfigTab() ));
+ tabMenu->setCheckable(TRUE);
TabWidget = new QTabWidget( this, "TabWidget" );
layout->addMultiCellWidget( TabWidget, 1, 1, 0, 3 );
@@ -259,13 +260,22 @@ void OpieFtp::cleanUp()
void OpieFtp::tabChanged(QWidget *w)
{
if (TabWidget->currentPageIndex() == 0) {
currentPathEdit->setText( currentDir.canonicalPath());
+ tabMenu->setItemChecked(tabMenu->idAt(0),TRUE);
+ tabMenu->setItemChecked(tabMenu->idAt(1),FALSE);
+ tabMenu->setItemChecked(tabMenu->idAt(2),FALSE);
}
if (TabWidget->currentPageIndex() == 1) {
currentPathEdit->setText( currentRemoteDir );
+ tabMenu->setItemChecked(tabMenu->idAt(1),TRUE);
+ tabMenu->setItemChecked(tabMenu->idAt(0),FALSE);
+ tabMenu->setItemChecked(tabMenu->idAt(2),FALSE);
}
if (TabWidget->currentPageIndex() == 2) {
+ tabMenu->setItemChecked(tabMenu->idAt(2),TRUE);
+ tabMenu->setItemChecked(tabMenu->idAt(0),FALSE);
+ tabMenu->setItemChecked(tabMenu->idAt(1),FALSE);
}
}
void OpieFtp::localUpload()