summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-03-28 02:18:16 (UTC)
committer llornkcor <llornkcor>2002-03-28 02:18:16 (UTC)
commita2cd4f6515e590ef2e818929843e2923b75beef5 (patch) (unidiff)
tree918bcd4c46acd2c63ea7fa7ad40c212e1002e457
parentd360439051f476cd847c4d8cec27a52addcd72a2 (diff)
downloadopie-a2cd4f6515e590ef2e818929843e2923b75beef5.zip
opie-a2cd4f6515e590ef2e818929843e2923b75beef5.tar.gz
opie-a2cd4f6515e590ef2e818929843e2923b75beef5.tar.bz2
wishy-washy on single vs double click
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index 907a812..efcaf84 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -136,10 +136,12 @@ OpieFtp::OpieFtp( )
136 QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold); 136 QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold);
137 137
138 tabLayout->addWidget( Local_View, 0, 0 ); 138 tabLayout->addWidget( Local_View, 0, 0 );
139 139
140 connect( Local_View, SIGNAL( doubleClicked( QListViewItem*)), 140 connect( Local_View, SIGNAL( clicked( QListViewItem*)),
141 this,SLOT( localListClicked(QListViewItem *)) ); 141 this,SLOT( localListClicked(QListViewItem *)) );
142// connect( Local_View, SIGNAL( doubleClicked( QListViewItem*)),
143// this,SLOT( localListClicked(QListViewItem *)) );
142 connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), 144 connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)),
143 this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) ); 145 this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) );
144 146
145 TabWidget->insertTab( tab, tr( "Local" ) ); 147 TabWidget->insertTab( tab, tr( "Local" ) );
@@ -161,9 +163,9 @@ OpieFtp::OpieFtp( )
161 Remote_View->setMultiSelection( TRUE ); 163 Remote_View->setMultiSelection( TRUE );
162 164
163 QPEApplication::setStylusOperation( Remote_View->viewport(),QPEApplication::RightOnHold); 165 QPEApplication::setStylusOperation( Remote_View->viewport(),QPEApplication::RightOnHold);
164 166
165 connect( Remote_View, SIGNAL( doubleClicked( QListViewItem*)), 167 connect( Remote_View, SIGNAL( clicked( QListViewItem*)),
166 this,SLOT( remoteListClicked(QListViewItem *)) ); 168 this,SLOT( remoteListClicked(QListViewItem *)) );
167 connect( Remote_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), 169 connect( Remote_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)),
168 this,SLOT( RemoteListPressed(int, QListViewItem *, const QPoint&, int)) ); 170 this,SLOT( RemoteListPressed(int, QListViewItem *, const QPoint&, int)) );
169 171
@@ -439,9 +441,9 @@ void OpieFtp::localUpload()
439 QMessageBox::message(tr("Note"),tr("Cannot upload directories")); 441 QMessageBox::message(tr("Note"),tr("Cannot upload directories"));
440 } 442 }
441 ProgressBar->reset(); 443 ProgressBar->reset();
442 nullifyCallBack(); 444 nullifyCallBack();
443 it.current()->setSelected(FALSE); 445 it.current()->setSelected(FALSE);
444 } //end currentSelected 446 } //end currentSelected
445 } 447 }
446 TabWidget->setCurrentPage(1); 448 TabWidget->setCurrentPage(1);
447 remoteDirList( (const QString &)currentRemoteDir); //this also calls populate 449 remoteDirList( (const QString &)currentRemoteDir); //this also calls populate
@@ -493,9 +495,9 @@ void OpieFtp::remoteDownload()
493 QMessageBox::message(tr("Note"),msg); 495 QMessageBox::message(tr("Note"),msg);
494 } 496 }
495 ProgressBar->reset(); 497 ProgressBar->reset();
496 nullifyCallBack(); 498 nullifyCallBack();
497 it.current()->setSelected(FALSE); 499 it.current()->setSelected(FALSE);
498 } 500 }
499 } 501 }
500 TabWidget->setCurrentPage(0); 502 TabWidget->setCurrentPage(0);
501 populateLocalView(); 503 populateLocalView();
@@ -748,9 +750,9 @@ void OpieFtp::localListClicked(QListViewItem *selectedItem)
748 } 750 }
749 } else { 751 } else {
750 strItem=QDir::cleanDirPath(currentDir.canonicalPath()+"/"+strItem); 752 strItem=QDir::cleanDirPath(currentDir.canonicalPath()+"/"+strItem);
751 if( QFile::exists(strItem ) ) { 753 if( QFile::exists(strItem ) ) {
752 qDebug("upload "+strItem); 754 // qDebug("upload "+strItem);
753 } 755 }
754 } //end not symlink 756 } //end not symlink
755 chdir(strItem.latin1()); 757 chdir(strItem.latin1());
756 } 758 }