author | llornkcor <llornkcor> | 2002-03-28 13:39:25 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-28 13:39:25 (UTC) |
commit | cd6f89bfab7e609705e8013d50413e1cae929d8a (patch) (unidiff) | |
tree | 58de5a24abe2dc9640aa92fdb9db4512ff3c5c01 | |
parent | fea05ec0241de3f3476696584e4a11dab045f91e (diff) | |
download | opie-cd6f89bfab7e609705e8013d50413e1cae929d8a.zip opie-cd6f89bfab7e609705e8013d50413e1cae929d8a.tar.gz opie-cd6f89bfab7e609705e8013d50413e1cae929d8a.tar.bz2 |
fixed somthing
-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 40 |
1 files changed, 14 insertions, 26 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index efcaf84..36de842 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp | |||
@@ -135,3 +135,3 @@ OpieFtp::OpieFtp( ) | |||
135 | 135 | ||
136 | QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold); | 136 | QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold); |
137 | 137 | ||
@@ -139,8 +139,8 @@ OpieFtp::OpieFtp( ) | |||
139 | 139 | ||
140 | connect( Local_View, SIGNAL( clicked( 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*)), | 142 | // connect( Local_View, SIGNAL( doubleClicked( QListViewItem*)), |
143 | // this,SLOT( localListClicked(QListViewItem *)) ); | 143 | // this,SLOT( localListClicked(QListViewItem *)) ); |
144 | connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), | 144 | // connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), |
145 | this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) ); | 145 | // this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) ); |
146 | 146 | ||
@@ -263,14 +263,2 @@ OpieFtp::OpieFtp( ) | |||
263 | 263 | ||
264 | #ifdef DEVELOPERS_VERSION | ||
265 | ServerComboBox->lineEdit()->setText( tr( "192.168.129.201" ) ); | ||
266 | UsernameComboBox->lineEdit()->setText("root"); | ||
267 | PortSpinBox->setValue( 4242); | ||
268 | remotePath->setText( currentRemoteDir = "/"); | ||
269 | // ServerComboBox->lineEdit()->setText( tr( "llornkcor.com" ) ); | ||
270 | // UsernameComboBox->lineEdit()->setText("llornkcor"); | ||
271 | // PortSpinBox->setValue( 21); | ||
272 | // remotePath->setText( currentRemoteDir = "/home/llornkcor"); | ||
273 | PasswordEdit->setText( tr( "" ) ); | ||
274 | #endif | ||
275 | |||
276 | filterStr="*"; | 264 | filterStr="*"; |
@@ -725,4 +713,6 @@ void OpieFtp::localListClicked(QListViewItem *selectedItem) | |||
725 | { | 713 | { |
726 | if(item) { | 714 | // qDebug(selectedItem->text(0)); |
727 | QString strItem=selectedItem->text(0); | 715 | if(item!= NULL) { |
716 | |||
717 | QString strItem=selectedItem->text(0); | ||
728 | QString strSize=selectedItem->text(1); | 718 | QString strSize=selectedItem->text(1); |
@@ -791,9 +781,6 @@ void OpieFtp::ListPressed( int mouse, QListViewItem *item, const QPoint &point, | |||
791 | { | 781 | { |
792 | switch (mouse) { | 782 | // if(item) |
793 | case 1: | 783 | if (mouse == 2) { |
794 | break; | ||
795 | case 2: | ||
796 | showLocalMenu(item); | 784 | showLocalMenu(item); |
797 | break; | 785 | } |
798 | }; | ||
799 | } | 786 | } |
@@ -827,3 +814,4 @@ void OpieFtp::showLocalMenu(QListViewItem * item) | |||
827 | { | 814 | { |
828 | QPopupMenu m; | 815 | |
816 | QPopupMenu m; | ||
829 | m.insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); | 817 | m.insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); |