diff options
Diffstat (limited to 'kdevdesigner/designer/pixmapcollectioneditor.ui.h')
-rw-r--r-- | kdevdesigner/designer/pixmapcollectioneditor.ui.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kdevdesigner/designer/pixmapcollectioneditor.ui.h b/kdevdesigner/designer/pixmapcollectioneditor.ui.h index 4d82f3f3..03cd300c 100644 --- a/kdevdesigner/designer/pixmapcollectioneditor.ui.h +++ b/kdevdesigner/designer/pixmapcollectioneditor.ui.h @@ -40,19 +40,19 @@ void PixmapCollectionEditor::addPixmap() if ( !project ) return; - QString f; - QStringList pixmaps = qChoosePixmaps( this ); + TQString f; + TQStringList pixmaps = qChoosePixmaps( this ); if ( pixmaps.isEmpty() ) return; - QString lastName; - for ( QStringList::ConstIterator it = pixmaps.begin(); it != pixmaps.end(); ++it ) { - QPixmap pm( *it ); + TQString lastName; + for ( TQStringList::ConstIterator it = pixmaps.begin(); it != pixmaps.end(); ++it ) { + TQPixmap pm( *it ); if ( pm.isNull() ) continue; PixmapCollection::Pixmap pixmap; pixmap.pix = pm; - QFileInfo fi ( *it ); + TQFileInfo fi ( *it ); pixmap.name = fi.fileName(); pixmap.absname = fi.filePath(); if ( !project->pixmapCollection()->addPixmap( pixmap, FALSE ) ) @@ -61,7 +61,7 @@ void PixmapCollectionEditor::addPixmap() } updateView(); - QIconViewItem *item = viewPixmaps->findItem( lastName ); + TQIconViewItem *item = viewPixmaps->findItem( lastName ); if ( item ) { viewPixmaps->setCurrentItem( item ); viewPixmaps->ensureItemVisible( item ); @@ -84,10 +84,10 @@ void PixmapCollectionEditor::updateView() viewPixmaps->clear(); - QValueList<PixmapCollection::Pixmap> pixmaps = project->pixmapCollection()->pixmaps(); - for ( QValueList<PixmapCollection::Pixmap>::Iterator it = pixmaps.begin(); it != pixmaps.end(); ++it ) { + TQValueList<PixmapCollection::Pixmap> pixmaps = project->pixmapCollection()->pixmaps(); + for ( TQValueList<PixmapCollection::Pixmap>::Iterator it = pixmaps.begin(); it != pixmaps.end(); ++it ) { // #### might need to scale down the pixmap - QIconViewItem *item = new QIconViewItem( viewPixmaps, (*it).name, scaledPixmap( (*it).pix ) ); + TQIconViewItem *item = new TQIconViewItem( viewPixmaps, (*it).name, scaledPixmap( (*it).pix ) ); //item->setRenameEnabled( TRUE ); // this will be a bit harder to implement item->setDragEnabled( FALSE ); item->setDropEnabled( FALSE ); @@ -96,7 +96,7 @@ void PixmapCollectionEditor::updateView() currentChanged( viewPixmaps->firstItem() ); } -void PixmapCollectionEditor::currentChanged( QIconViewItem * i ) +void PixmapCollectionEditor::currentChanged( TQIconViewItem * i ) { buttonOk->setEnabled( !!i ); } @@ -110,8 +110,8 @@ void PixmapCollectionEditor::setChooserMode( bool c ) buttonCancel->show(); buttonOk->setEnabled( FALSE ); buttonOk->setDefault( TRUE ); - connect( viewPixmaps, SIGNAL( doubleClicked( QIconViewItem * ) ), buttonOk, SIGNAL( clicked() ) ); - connect( viewPixmaps, SIGNAL( returnPressed( QIconViewItem * ) ), buttonOk, SIGNAL( clicked() ) ); + connect( viewPixmaps, TQT_SIGNAL( doubleClicked( TQIconViewItem * ) ), buttonOk, TQT_SIGNAL( clicked() ) ); + connect( viewPixmaps, TQT_SIGNAL( returnPressed( TQIconViewItem * ) ), buttonOk, TQT_SIGNAL( clicked() ) ); setCaption( i18n( "Choose Image" ) ); } else { buttonClose->show(); @@ -122,9 +122,9 @@ void PixmapCollectionEditor::setChooserMode( bool c ) updateView(); } -void PixmapCollectionEditor::setCurrentItem( const QString & name ) +void PixmapCollectionEditor::setCurrentItem( const TQString & name ) { - QIconViewItem *i = viewPixmaps->findItem( name ); + TQIconViewItem *i = viewPixmaps->findItem( name ); if ( i ) { viewPixmaps->setCurrentItem( i ); currentChanged( i ); @@ -137,12 +137,12 @@ void PixmapCollectionEditor::setProject( Project * pro ) updateView(); } -QPixmap PixmapCollectionEditor::scaledPixmap( const QPixmap & p ) +TQPixmap PixmapCollectionEditor::scaledPixmap( const TQPixmap & p ) { - QPixmap pix( p ); + TQPixmap pix( p ); if ( pix.width() < 50 && pix.height() < 50 ) return pix; - QImage img; + TQImage img; img = pix; img = img.smoothScale( 50, 50 ); pix.convertFromImage( img ); |