summaryrefslogtreecommitdiff
path: root/noncore/net
authorllornkcor <llornkcor>2002-04-01 23:50:15 (UTC)
committer llornkcor <llornkcor>2002-04-01 23:50:15 (UTC)
commitdd9e49cca8cd9a32a52edfc6b6a0683579612a75 (patch) (unidiff)
treeca4bdb7f60150ae147be009a2967721489a81d54 /noncore/net
parentcf0ee2d22d3f31ba992df6735968d15b3653820b (diff)
downloadopie-dd9e49cca8cd9a32a52edfc6b6a0683579612a75.zip
opie-dd9e49cca8cd9a32a52edfc6b6a0683579612a75.tar.gz
opie-dd9e49cca8cd9a32a52edfc6b6a0683579612a75.tar.bz2
input dialog
Diffstat (limited to 'noncore/net') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieftp/inputDialog.cpp4
-rw-r--r--noncore/net/opieftp/inputDialog.h2
-rw-r--r--noncore/net/opieftp/opieftp.cpp4
3 files changed, 7 insertions, 3 deletions
diff --git a/noncore/net/opieftp/inputDialog.cpp b/noncore/net/opieftp/inputDialog.cpp
index 89b345e..373db3b 100644
--- a/noncore/net/opieftp/inputDialog.cpp
+++ b/noncore/net/opieftp/inputDialog.cpp
@@ -38,3 +38,7 @@ InputDialog::~InputDialog()
38 38
39} 39}
40 40
41void InputDialog::setTextEdit(const QString &string)
42{
43 LineEdit1->setText(string);
44}
diff --git a/noncore/net/opieftp/inputDialog.h b/noncore/net/opieftp/inputDialog.h
index 2cd8285..dfe0e8a 100644
--- a/noncore/net/opieftp/inputDialog.h
+++ b/noncore/net/opieftp/inputDialog.h
@@ -28,7 +28,7 @@ public:
28 ~InputDialog(); 28 ~InputDialog();
29 QString inputText; 29 QString inputText;
30 QLineEdit* LineEdit1; 30 QLineEdit* LineEdit1;
31 31 void setTextEdit(const QString &);
32}; 32};
33 33
34#endif // INPUTDIALOG_H 34#endif // INPUTDIALOG_H
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index e64fd73..b451925 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -943,7 +943,7 @@ void OpieFtp::remoteRename()
943 QString curFile = Remote_View->currentItem()->text(0); 943 QString curFile = Remote_View->currentItem()->text(0);
944 InputDialog *fileDlg; 944 InputDialog *fileDlg;
945 fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0); 945 fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0);
946 fileDlg->inputText = curFile; 946 fileDlg->setTextEdit((const QString &)curFile);
947 fileDlg->exec(); 947 fileDlg->exec();
948 if( fileDlg->result() == 1 ) { 948 if( fileDlg->result() == 1 ) {
949 QString oldName = currentRemoteDir +"/"+ curFile; 949 QString oldName = currentRemoteDir +"/"+ curFile;
@@ -965,7 +965,7 @@ void OpieFtp::localRename()
965 QString curFile = Local_View->currentItem()->text(0); 965 QString curFile = Local_View->currentItem()->text(0);
966 InputDialog *fileDlg; 966 InputDialog *fileDlg;
967 fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0); 967 fileDlg = new InputDialog(this,tr("Rename"),TRUE, 0);
968 fileDlg->inputText = curFile; 968 fileDlg->setTextEdit((const QString &)curFile);
969 fileDlg->exec(); 969 fileDlg->exec();
970 if( fileDlg->result() == 1 ) { 970 if( fileDlg->result() == 1 ) {
971 QString oldname = currentDir.canonicalPath() + "/" + curFile; 971 QString oldname = currentDir.canonicalPath() + "/" + curFile;