summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/pixmapcollectioneditor.ui.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /kdevdesigner/designer/pixmapcollectioneditor.ui.h
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdevdesigner/designer/pixmapcollectioneditor.ui.h')
-rw-r--r--kdevdesigner/designer/pixmapcollectioneditor.ui.h36
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 );