summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/pixmapchooser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/pixmapchooser.cpp')
-rw-r--r--kdevdesigner/designer/pixmapchooser.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kdevdesigner/designer/pixmapchooser.cpp b/kdevdesigner/designer/pixmapchooser.cpp
index bf521b48..79cb0cab 100644
--- a/kdevdesigner/designer/pixmapchooser.cpp
+++ b/kdevdesigner/designer/pixmapchooser.cpp
@@ -66,7 +66,7 @@ void PixmapView::setPixmap( const TQPixmap &pix )
{
pixmap = pix;
resizeContents( pixmap.size().width(), pixmap.size().height() );
- viewport()->repaint( FALSE );
+ viewport()->repaint( false );
}
void PixmapView::drawContents( TQPainter *p, int cx, int cy, int cw, int ch )
@@ -114,9 +114,9 @@ TQStringList qChoosePixmaps( TQWidget *parent )
TQString all;
buildImageFormatList( filter, all );
- TQFileDialog fd( TQString(), filter, parent, 0, TRUE );
+ TQFileDialog fd( TQString(), filter, parent, 0, true );
fd.setMode( TQFileDialog::ExistingFiles );
- fd.setContentsPreviewEnabled( TRUE );
+ fd.setContentsPreviewEnabled( true );
PixmapView *pw = new PixmapView( &fd );
fd.setContentsPreview( pw, pw );
fd.setViewMode( TQFileDialog::List );
@@ -148,8 +148,8 @@ TQPixmap qChoosePixmap( TQWidget *parent, FormWindow *fw, const TQPixmap &old, T
TQString all;
buildImageFormatList( filter, all );
- TQFileDialog fd( TQString(), filter, parent, 0, TRUE );
- fd.setContentsPreviewEnabled( TRUE );
+ TQFileDialog fd( TQString(), filter, parent, 0, true );
+ fd.setContentsPreviewEnabled( true );
PixmapView *pw = new PixmapView( &fd );
fd.setContentsPreview( pw, pw );
fd.setViewMode( TQFileDialog::List );
@@ -178,9 +178,9 @@ TQPixmap qChoosePixmap( TQWidget *parent, FormWindow *fw, const TQPixmap &old, T
return pix;
}
} else if ( fw && fw->savePixmapInProject() ) {
- PixmapCollectionEditor dia( parent, 0, TRUE );
+ PixmapCollectionEditor dia( parent, 0, true );
dia.setProject( fw->project() );
- dia.setChooserMode( TRUE );
+ dia.setChooserMode( true );
dia.setCurrentItem( MetaDataBase::pixmapKey( fw, old.serialNumber() ) );
if ( dia.exec() == TQDialog::Accepted ) {
TQPixmap pix( fw->project()->pixmapCollection()->pixmap( dia.viewPixmaps->currentItem()->text() ) );
@@ -188,7 +188,7 @@ TQPixmap qChoosePixmap( TQWidget *parent, FormWindow *fw, const TQPixmap &old, T
return pix;
}
} else {
- PixmapFunction dia( parent, 0, TRUE );
+ PixmapFunction dia( parent, 0, true );
TQObject::connect( dia.helpButton, TQ_SIGNAL( clicked() ), MainWindow::self, TQ_SLOT( showDialogHelp() ) );
dia.labelFunction->setText( fw->pixmapLoaderFunction() + "(" );
dia.editArguments->setText( MetaDataBase::pixmapArgument( fw, old.serialNumber() ) );