From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdevdesigner/designer/pixmapcollectioneditor.ui.h | 36 +++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'kdevdesigner/designer/pixmapcollectioneditor.ui.h') 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 pixmaps = project->pixmapCollection()->pixmaps(); - for ( QValueList::Iterator it = pixmaps.begin(); it != pixmaps.end(); ++it ) { + TQValueList pixmaps = project->pixmapCollection()->pixmaps(); + for ( TQValueList::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 ); -- cgit v1.2.1