diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:44:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:52:29 +0900 |
commit | e6077c30d14e9d662e8843c554db86c0d366d0b6 (patch) | |
tree | 672319afee32f0316bad258c0e9a1e0dd737bd61 /doc/html/ftpclient-example.html | |
parent | 8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (diff) | |
download | tqt-e6077c30.tar.gz tqt-e6077c30.zip |
Rename str nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/ftpclient-example.html')
-rw-r--r-- | doc/html/ftpclient-example.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/ftpclient-example.html b/doc/html/ftpclient-example.html index 13ad9fae4..21fee013b 100644 --- a/doc/html/ftpclient-example.html +++ b/doc/html/ftpclient-example.html @@ -86,8 +86,8 @@ void FtpMainWindow::init() TQ_SLOT(ftp_stateChanged(int)) ); <a name="x757"></a> connect( ftp, TQ_SIGNAL(<a href="ntqftp.html#listInfo">listInfo</a>(const <a href="ntqurlinfo.html">TQUrlInfo</a> &)), TQ_SLOT(ftp_listInfo(const <a href="ntqurlinfo.html">TQUrlInfo</a> &)) ); -<a name="x761"></a> connect( ftp, TQ_SIGNAL(<a href="ntqftp.html#rawCommandReply">rawCommandReply</a>(int, const <a href="ntqstring.html">TQString</a> &)), - TQ_SLOT(ftp_rawCommandReply(int, const <a href="ntqstring.html">TQString</a> &)) ); +<a name="x761"></a> connect( ftp, TQ_SIGNAL(<a href="ntqftp.html#rawCommandReply">rawCommandReply</a>(int, const <a href="tqstring.html">TQString</a> &)), + TQ_SLOT(ftp_rawCommandReply(int, const <a href="tqstring.html">TQString</a> &)) ); } void FtpMainWindow::destroy() @@ -98,13 +98,13 @@ void FtpMainWindow::destroy() void FtpMainWindow::uploadFile() { -<a name="x741"></a> <a href="ntqstring.html">TQString</a> fileName = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( - <a href="ntqstring.html#TQString-null">TQString::null</a>, +<a name="x741"></a> <a href="tqstring.html">TQString</a> fileName = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( + <a href="tqstring.html#TQString-null">TQString::null</a>, TQString::null, this, "upload file dialog", tr("Choose a file to upload") ); -<a name="x771"></a> if ( fileName.<a href="ntqstring.html#isNull">isNull</a>() ) +<a name="x771"></a> if ( fileName.<a href="tqstring.html#isNull">isNull</a>() ) return; <a href="ntqfile.html">TQFile</a> *file = new <a href="ntqfile.html">TQFile</a>( fileName ); @@ -142,13 +142,13 @@ void FtpMainWindow::downloadFile() if ( !item || item->isDir() ) return; -<a name="x742"></a> <a href="ntqstring.html">TQString</a> fileName = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( +<a name="x742"></a> <a href="tqstring.html">TQString</a> fileName = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( <a name="x766"></a> item-><a href="qlistviewitem.html#text">text</a>(0), TQString::null, this, "download file dialog", tr("Save downloaded file as") ); - if ( fileName.<a href="ntqstring.html#isNull">isNull</a>() ) + if ( fileName.<a href="tqstring.html#isNull">isNull</a>() ) return; // create file on the heap because it has to be valid throughout the whole @@ -209,7 +209,7 @@ void FtpMainWindow::connectToHost() // This slot is connected to the TQComboBox::activated() signal of the // remotePath. -void FtpMainWindow::changePath( const <a href="ntqstring.html">TQString</a> &newPath ) +void FtpMainWindow::changePath( const <a href="tqstring.html">TQString</a> &newPath ) { <a name="x745"></a> ftp-><a href="ntqftp.html#cd">cd</a>( newPath ); ftp-><a href="ntqftp.html#rawCommand">rawCommand</a>( "PWD" ); @@ -297,10 +297,10 @@ void FtpMainWindow::ftp_listInfo( const <a href="ntqurlinfo.html">TQUrlInfo</a> <a name="x776"></a><a name="x775"></a><a name="x774"></a> i.<a href="ntqurlinfo.html#name">name</a>(), TQString::number(i.<a href="ntqurlinfo.html#size">size</a>()), i.<a href="ntqurlinfo.html#lastModified">lastModified</a>().toString() ); } -void FtpMainWindow::ftp_rawCommandReply( int code, const <a href="ntqstring.html">TQString</a> &text ) +void FtpMainWindow::ftp_rawCommandReply( int code, const <a href="tqstring.html">TQString</a> &text ) { if ( code == 257 ) { -<a name="x772"></a> currentFtpDir = text.<a href="ntqstring.html#section">section</a>( '"', 1, 1 ); +<a name="x772"></a> currentFtpDir = text.<a href="tqstring.html#section">section</a>( '"', 1, 1 ); for ( int i = 0; i<remotePath->count(); i++ ) { // make sure that we don't insert duplicates |