summaryrefslogtreecommitdiffstats
path: root/doc/html/qdir-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 13:44:12 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 13:52:29 +0900
commite6077c30d14e9d662e8843c554db86c0d366d0b6 (patch)
tree672319afee32f0316bad258c0e9a1e0dd737bd61 /doc/html/qdir-example.html
parent8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (diff)
downloadtqt3-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.html30
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/qdir-example.html b/doc/html/qdir-example.html
index 4d806698..b540a69a 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> &amp;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>() &amp;&amp; (int)fi.<a href="ntqfileinfo.html#size">size</a>() &gt; size * 1000 ) {
<a name="x1846"></a> normalText-&gt;<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( &amp;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-&gt;<a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>()-&gt;makeAbsolute( path, html-&gt;<a href="ntqtextedit.html#context">context</a>() );
+<a name="x1844"></a><a name="x1843"></a> <a href="tqstring.html">TQString</a> url = html-&gt;<a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>()-&gt;makeAbsolute( path, html-&gt;<a href="ntqtextedit.html#context">context</a>() );
html-&gt;<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-&gt;<a href="ntqtextedit.html#setText">setText</a>( <a href="ntqstring.html#TQString-null">TQString::null</a> );
+ normalText-&gt;<a href="ntqtextedit.html#setText">setText</a>( <a href="tqstring.html#TQString-null">TQString::null</a> );
raiseWidget( normalText );
} else {
pixmap-&gt;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> &amp; ) ),
- this, TQ_SLOT( setDir2( const <a href="ntqstring.html">TQString</a> &amp; ) ) );
- <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="ntqfiledialog.html#dirEntered">dirEntered</a>( const <a href="ntqstring.html">TQString</a> &amp; ) ),
- dirView, TQ_SLOT( <a href="ntqfiledialog.html#setDir">setDir</a>( const <a href="ntqstring.html">TQString</a> &amp; ) ) );
+ <a href="tqobject.html#connect">connect</a>( dirView, TQ_SIGNAL( folderSelected( const <a href="tqstring.html">TQString</a> &amp; ) ),
+ this, TQ_SLOT( setDir2( const <a href="tqstring.html">TQString</a> &amp; ) ) );
+ <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="ntqfiledialog.html#dirEntered">dirEntered</a>( const <a href="tqstring.html">TQString</a> &amp; ) ),
+ dirView, TQ_SLOT( <a href="ntqfiledialog.html#setDir">setDir</a>( const <a href="tqstring.html">TQString</a> &amp; ) ) );
<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> &amp;s )
+void <a name="f492"></a>CustomFileDialog::setDir2( const <a href="tqstring.html">TQString</a> &amp;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&lt;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 {