summaryrefslogtreecommitdiffstats
path: root/examples/fileiconview/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/fileiconview/mainwindow.cpp')
-rw-r--r--examples/fileiconview/mainwindow.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/examples/fileiconview/mainwindow.cpp b/examples/fileiconview/mainwindow.cpp
index a559c9fbd..9b41441de 100644
--- a/examples/fileiconview/mainwindow.cpp
+++ b/examples/fileiconview/mainwindow.cpp
@@ -77,11 +77,11 @@ void FileMainWindow::setup()
{
TQSplitter *splitter = new TQSplitter( this );
- dirlist = new DirectoryView( splitter, "dirlist", TRUE );
+ dirlist = new DirectoryView( splitter, "dirlist", true );
dirlist->addColumn( "Name" );
dirlist->addColumn( "Type" );
Directory *root = new Directory( dirlist, "/" );
- root->setOpen( TRUE );
+ root->setOpen( true );
splitter->setResizeMode( dirlist, TQSplitter::KeepSize );
fileview = new TQtFileIconView( "/", splitter );
@@ -90,12 +90,12 @@ void FileMainWindow::setup()
setCentralWidget( splitter );
TQToolBar *toolbar = new TQToolBar( this, "toolbar" );
- setRightJustification( TRUE );
+ setRightJustification( true );
(void)new TQLabel( tr( " Path: " ), toolbar );
- pathCombo = new TQComboBox( TRUE, toolbar );
- pathCombo->setAutoCompletion( TRUE );
+ pathCombo = new TQComboBox( true, toolbar );
+ pathCombo->setAutoCompletion( true );
toolbar->setStretchableWidget( pathCombo );
connect( pathCombo, TQ_SIGNAL( activated( const TQString & ) ),
this, TQ_SLOT ( changePath( const TQString & ) ) );
@@ -123,13 +123,13 @@ void FileMainWindow::setup()
connect( fileview, TQ_SIGNAL( readDirDone() ),
this, TQ_SLOT( slotReadDirDone() ) );
- setDockEnabled( DockLeft, FALSE );
- setDockEnabled( DockRight, FALSE );
+ setDockEnabled( DockLeft, false );
+ setDockEnabled( DockRight, false );
label = new TQLabel( statusBar() );
- statusBar()->addWidget( label, 2, TRUE );
+ statusBar()->addWidget( label, 2, true );
progress = new TQProgressBar( statusBar() );
- statusBar()->addWidget( progress, 1, TRUE );
+ statusBar()->addWidget( progress, 1, true );
connect( fileview, TQ_SIGNAL( enableUp() ),
this, TQ_SLOT( enableUp() ) );
@@ -145,10 +145,10 @@ void FileMainWindow::setPathCombo()
{
TQString dir = caption();
int i = 0;
- bool found = FALSE;
+ bool found = false;
for ( i = 0; i < pathCombo->count(); ++i ) {
if ( pathCombo->text( i ) == dir) {
- found = TRUE;
+ found = true;
break;
}
}
@@ -209,20 +209,20 @@ void FileMainWindow::changePath( const TQString &path )
void FileMainWindow::enableUp()
{
- upButton->setEnabled( TRUE );
+ upButton->setEnabled( true );
}
void FileMainWindow::disableUp()
{
- upButton->setEnabled( FALSE );
+ upButton->setEnabled( false );
}
void FileMainWindow::enableMkdir()
{
- mkdirButton->setEnabled( TRUE );
+ mkdirButton->setEnabled( true );
}
void FileMainWindow::disableMkdir()
{
- mkdirButton->setEnabled( FALSE );
+ mkdirButton->setEnabled( false );
}