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/qdir-example.html | |
parent | 8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (diff) | |
download | tqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.tar.gz tqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.zip |
Rename str nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/qdir-example.html')
-rw-r--r-- | doc/html/qdir-example.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/qdir-example.html b/doc/html/qdir-example.html index 4d8066987..b540a69a2 100644 --- a/doc/html/qdir-example.html +++ b/doc/html/qdir-example.html @@ -156,7 +156,7 @@ void <a name="f496"></a>PixmapView::setPixmap( const <a href="ntqpixmap.html">TQ void <a name="f498"></a>Preview::showPreview( const <a href="ntqurl.html">TQUrl</a> &u, int size ) { <a name="x1849"></a> if ( u.<a href="ntqurl.html#isLocalFile">isLocalFile</a>() ) { -<a name="x1850"></a> <a href="ntqstring.html">TQString</a> path = u.<a href="ntqurl.html#path">path</a>(); +<a name="x1850"></a> <a href="tqstring.html">TQString</a> path = u.<a href="ntqurl.html#path">path</a>(); <a href="ntqfileinfo.html">TQFileInfo</a> fi( path ); <a name="x1825"></a><a name="x1824"></a> if ( fi.<a href="ntqfileinfo.html#isFile">isFile</a>() && (int)fi.<a href="ntqfileinfo.html#size">size</a>() > size * 1000 ) { <a name="x1846"></a> normalText-><a href="ntqtextedit.html#setText">setText</a>( <a href="tqobject.html#tr">tr</a>( "The File\n%1\nis too large, so I don't show it!" ).arg( path ) ); @@ -170,10 +170,10 @@ void <a name="f498"></a>Preview::showPreview( const <a href="ntqurl.html">TQUrl< <a href="ntqfile.html">TQFile</a> f( path ); <a name="x1815"></a> if ( f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadOnly</a> ) ) { <a href="ntqtextstream.html">TQTextStream</a> ts( &f ); -<a name="x1847"></a> <a href="ntqstring.html">TQString</a> text = ts.<a href="ntqtextstream.html#read">read</a>(); +<a name="x1847"></a> <a href="tqstring.html">TQString</a> text = ts.<a href="ntqtextstream.html#read">read</a>(); <a name="x1814"></a> f.<a href="ntqfile.html#close">close</a>(); <a name="x1823"></a> if ( fi.<a href="ntqfileinfo.html#extension">extension</a>().lower().contains( "htm" ) ) { -<a name="x1844"></a><a name="x1843"></a> <a href="ntqstring.html">TQString</a> url = html-><a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>()->makeAbsolute( path, html-><a href="ntqtextedit.html#context">context</a>() ); +<a name="x1844"></a><a name="x1843"></a> <a href="tqstring.html">TQString</a> url = html-><a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>()->makeAbsolute( path, html-><a href="ntqtextedit.html#context">context</a>() ); html-><a href="ntqtextedit.html#setText">setText</a>( text, url ); raiseWidget( html ); return; @@ -184,7 +184,7 @@ void <a name="f498"></a>Preview::showPreview( const <a href="ntqurl.html">TQUrl< } } } - normalText-><a href="ntqtextedit.html#setText">setText</a>( <a href="ntqstring.html#TQString-null">TQString::null</a> ); + normalText-><a href="ntqtextedit.html#setText">setText</a>( <a href="tqstring.html#TQString-null">TQString::null</a> ); raiseWidget( normalText ); } else { pixmap->setPixmap( pix ); @@ -260,10 +260,10 @@ void <a name="f500"></a>PreviewWidget::previewUrl( const <a href="ntqurl.html">T <a href="ntqfiledialog.html#addToolButton">addToolButton</a>( p, TRUE ); - <a href="tqobject.html#connect">connect</a>( dirView, TQ_SIGNAL( folderSelected( const <a href="ntqstring.html">TQString</a> & ) ), - this, TQ_SLOT( setDir2( const <a href="ntqstring.html">TQString</a> & ) ) ); - <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="ntqfiledialog.html#dirEntered">dirEntered</a>( const <a href="ntqstring.html">TQString</a> & ) ), - dirView, TQ_SLOT( <a href="ntqfiledialog.html#setDir">setDir</a>( const <a href="ntqstring.html">TQString</a> & ) ) ); + <a href="tqobject.html#connect">connect</a>( dirView, TQ_SIGNAL( folderSelected( const <a href="tqstring.html">TQString</a> & ) ), + this, TQ_SLOT( setDir2( const <a href="tqstring.html">TQString</a> & ) ) ); + <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="ntqfiledialog.html#dirEntered">dirEntered</a>( const <a href="tqstring.html">TQString</a> & ) ), + dirView, TQ_SLOT( <a href="ntqfiledialog.html#setDir">setDir</a>( const <a href="tqstring.html">TQString</a> & ) ) ); <a href="ntqtoolbutton.html">TQToolButton</a> *b = new <a href="ntqtoolbutton.html">TQToolButton</a>( this ); TQToolTip::<a href="ntqtooltip.html#add">add</a>( b, tr( "Go Home!" ) ); @@ -288,7 +288,7 @@ CustomFileDialog::~CustomFileDialog() } } -void <a name="f492"></a>CustomFileDialog::setDir2( const <a href="ntqstring.html">TQString</a> &s ) +void <a name="f492"></a>CustomFileDialog::setDir2( const <a href="tqstring.html">TQString</a> &s ) { <a href="tqobject.html#blockSignals">blockSignals</a>( TRUE ); <a href="ntqfiledialog.html#setDir">setDir</a>( s ); @@ -324,14 +324,14 @@ void <a name="f494"></a>CustomFileDialog::goHome() int main( int argc, char ** argv ) { TQFileDialog::Mode mode = TQFileDialog::ExistingFile; - <a href="ntqstring.html">TQString</a> start; - <a href="ntqstring.html">TQString</a> filter; - <a href="ntqstring.html">TQString</a> caption; + <a href="tqstring.html">TQString</a> start; + <a href="tqstring.html">TQString</a> filter; + <a href="tqstring.html">TQString</a> caption; bool preview = FALSE; bool custom = FALSE; <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); for (int i=1; i<argc; i++) { - <a href="ntqstring.html">TQString</a> arg = argv[i]; + <a href="tqstring.html">TQString</a> arg = argv[i]; if ( arg == "-any" ) mode = TQFileDialog::AnyFile; else if ( arg == "-dir" ) @@ -357,7 +357,7 @@ int main( int argc, char ** argv ) ); return 1; } else { -<a name="x1842"></a> if ( !caption.<a href="ntqstring.html#isNull">isNull</a>() ) +<a name="x1842"></a> if ( !caption.<a href="tqstring.html#isNull">isNull</a>() ) caption += ' '; caption += arg; } @@ -383,7 +383,7 @@ int main( int argc, char ** argv ) fd.<a href="tqwidget.html#setCaption">setCaption</a>( caption ); <a name="x1821"></a> fd.<a href="ntqfiledialog.html#setSelection">setSelection</a>( start ); <a name="x1812"></a> if ( fd.<a href="ntqdialog.html#exec">exec</a>() == TQDialog::Accepted ) { -<a name="x1816"></a> <a href="ntqstring.html">TQString</a> result = fd.<a href="ntqfiledialog.html#selectedFile">selectedFile</a>(); +<a name="x1816"></a> <a href="tqstring.html">TQString</a> result = fd.<a href="ntqfiledialog.html#selectedFile">selectedFile</a>(); printf("%s\n", (const char*)result); return 0; } else { |