summaryrefslogtreecommitdiffstats
path: root/doc/html/qdir-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-11-26 15:11:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-11-26 15:11:22 +0900
commitb87533f9904c10f24d6b2e8177c00944e3efe15b (patch)
treec1106a381c851b51e86004698457aef1211b77be /doc/html/qdir-example.html
parent894037c3e68e1573a34183d936171f8cda5085f3 (diff)
downloadtqt-r14.1.x.tar.gz
tqt-r14.1.x.zip
Replace TRUE/FALSE with boolean values true/false - part 4r14.1.x
Manually cherry-picked from commit 4d495175 Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/qdir-example.html')
-rw-r--r--doc/html/qdir-example.html28
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/qdir-example.html b/doc/html/qdir-example.html
index 4fed687d0..3d65a17c3 100644
--- a/doc/html/qdir-example.html
+++ b/doc/html/qdir-example.html
@@ -132,7 +132,7 @@ void <a name="f496"></a>PixmapView::setPixmap( const <a href="ntqpixmap.html">TQ
{
pixmap = pix;
<a name="x1855"></a> <a href="ntqscrollview.html#resizeContents">resizeContents</a>( pixmap.<a href="ntqwidget.html#size">size</a>().width(), pixmap.<a href="ntqwidget.html#size">size</a>().height() );
- <a href="ntqscrollview.html#viewport">viewport</a>()-&gt;repaint( FALSE );
+ <a href="ntqscrollview.html#viewport">viewport</a>()-&gt;repaint( false );
}
<a name="x1837"></a>void PixmapView::<a href="ntqscrollview.html#drawContents">drawContents</a>( <a href="ntqpainter.html">TQPainter</a> *p, int cx, int cy, int cw, int ch )
@@ -147,7 +147,7 @@ void <a name="f496"></a>PixmapView::setPixmap( const <a href="ntqpixmap.html">TQ
: <a href="ntqwidgetstack.html">TQWidgetStack</a>( parent )
{
normalText = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>( this );
-<a name="x1845"></a> normalText-&gt;<a href="ntqtextedit.html#setReadOnly">setReadOnly</a>( TRUE );
+<a name="x1845"></a> normalText-&gt;<a href="ntqtextedit.html#setReadOnly">setReadOnly</a>( true );
html = new <a href="ntqtextview.html">TQTextView</a>( this );
pixmap = new PixmapView( this );
<a href="ntqwidgetstack.html#raiseWidget">raiseWidget</a>( normalText );
@@ -221,15 +221,15 @@ void <a name="f500"></a>PreviewWidget::previewUrl( const <a href="ntqurl.html">T
// ****************************************************************************************************
<a name="f491"></a>CustomFileDialog::CustomFileDialog()
- : <a href="ntqfiledialog.html">TQFileDialog</a>( 0, 0, TRUE )
+ : <a href="ntqfiledialog.html">TQFileDialog</a>( 0, 0, true )
{
<a href="ntqfiledialog.html#setDir">setDir</a>( "/" );
- dirView = new DirectoryView( this, 0, TRUE );
+ dirView = new DirectoryView( this, 0, true );
<a name="x1827"></a> dirView-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "" );
<a name="x1828"></a> dirView-&gt;<a href="ntqlistview.html#header">header</a>()-&gt;hide();
::Directory *root = new ::Directory( dirView, "/" );
- root-&gt;setOpen( TRUE );
+ root-&gt;setOpen( true );
<a name="x1853"></a> dirView-&gt;<a href="ntqwidget.html#setFixedWidth">setFixedWidth</a>( 150 );
<a href="ntqfiledialog.html#addLeftWidget">addLeftWidget</a>( dirView );
@@ -258,7 +258,7 @@ void <a name="f500"></a>PreviewWidget::previewUrl( const <a href="ntqurl.html">T
<a name="x1836"></a> p-&gt;<a href="ntqpushbutton.html#setPopup">setPopup</a>( bookmarkMenu );
- <a href="ntqfiledialog.html#addToolButton">addToolButton</a>( p, TRUE );
+ <a href="ntqfiledialog.html#addToolButton">addToolButton</a>( p, true );
<a href="ntqobject.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; ) ) );
@@ -290,9 +290,9 @@ CustomFileDialog::~CustomFileDialog()
void <a name="f492"></a>CustomFileDialog::setDir2( const <a href="ntqstring.html">TQString</a> &amp;s )
{
- <a href="ntqobject.html#blockSignals">blockSignals</a>( TRUE );
+ <a href="ntqobject.html#blockSignals">blockSignals</a>( true );
<a href="ntqfiledialog.html#setDir">setDir</a>( s );
- <a href="ntqobject.html#blockSignals">blockSignals</a>( FALSE );
+ <a href="ntqobject.html#blockSignals">blockSignals</a>( false );
}
<a name="x1854"></a>void CustomFileDialog::<a href="ntqwidget.html#showEvent">showEvent</a>( <a href="qshowevent.html">TQShowEvent</a> *e )
@@ -327,8 +327,8 @@ int main( int argc, char ** argv )
<a href="ntqstring.html">TQString</a> start;
<a href="ntqstring.html">TQString</a> filter;
<a href="ntqstring.html">TQString</a> caption;
- bool preview = FALSE;
- bool custom = FALSE;
+ 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];
@@ -341,9 +341,9 @@ int main( int argc, char ** argv )
else if ( arg == "-filter" )
filter = argv[++i];
else if ( arg == "-preview" )
- preview = TRUE;
+ preview = true;
else if ( arg == "-custom" )
- custom = TRUE;
+ custom = true;
else if ( arg[0] == '-' ) {
<a href="ntqapplication.html#qDebug">tqDebug</a>("Usage: qdir [-any | -dir | -custom] [-preview] [-default f] {-filter f} [caption ...]\n"
" -any Get any filename, need not exist.\n"
@@ -371,10 +371,10 @@ int main( int argc, char ** argv )
? "Choose directory..." : "Choose file...";
if ( !custom ) {
- <a href="ntqfiledialog.html">TQFileDialog</a> fd( TQString::null, filter, 0, 0, TRUE );
+ <a href="ntqfiledialog.html">TQFileDialog</a> fd( TQString::null, filter, 0, 0, true );
<a name="x1819"></a> fd.<a href="ntqfiledialog.html#setMode">setMode</a>( mode );
if ( preview ) {
-<a name="x1818"></a> fd.<a href="ntqfiledialog.html#setContentsPreviewEnabled">setContentsPreviewEnabled</a>( TRUE );
+<a name="x1818"></a> fd.<a href="ntqfiledialog.html#setContentsPreviewEnabled">setContentsPreviewEnabled</a>( true );
PreviewWidget *pw = new PreviewWidget( &amp;fd );
<a name="x1817"></a> fd.<a href="ntqfiledialog.html#setContentsPreview">setContentsPreview</a>( pw, pw );
<a name="x1822"></a> fd.<a href="ntqfiledialog.html#setViewMode">setViewMode</a>( TQFileDialog::List );