diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kooka/imgnamecombo.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kooka/imgnamecombo.cpp')
-rw-r--r-- | kooka/imgnamecombo.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kooka/imgnamecombo.cpp b/kooka/imgnamecombo.cpp index 77b59a0d..0e06646b 100644 --- a/kooka/imgnamecombo.cpp +++ b/kooka/imgnamecombo.cpp @@ -25,9 +25,9 @@ * * ***************************************************************************/ -#include <qlayout.h> -#include <qlabel.h> -#include <qlistview.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqlistview.h> #include <kcombobox.h> @@ -38,10 +38,10 @@ #include "imgnamecombo.h" #include "img_saver.h" -ImageNameCombo::ImageNameCombo( QWidget *parent ) +ImageNameCombo::ImageNameCombo( TQWidget *parent ) : KComboBox( parent ) { - setInsertionPolicy( QComboBox::AtTop ); + setInsertionPolicy( TQComboBox::AtTop ); } ImageNameCombo::~ImageNameCombo() @@ -49,12 +49,12 @@ ImageNameCombo::~ImageNameCombo() } -void ImageNameCombo::slotPathRemove( KFileTreeBranch *branch, const QString& relPath ) +void ImageNameCombo::slotPathRemove( KFileTreeBranch *branch, const TQString& relPath ) { - QString path = branch->name() + QString::fromLatin1(" - ") + relPath; + TQString path = branch->name() + TQString::fromLatin1(" - ") + relPath; kdDebug(28000) << "ImageNameCombo: Removing " << path << endl; - QString select = currentText(); + TQString select = currentText(); if( items.contains( path )) { @@ -66,10 +66,10 @@ void ImageNameCombo::slotPathRemove( KFileTreeBranch *branch, const QString& rel rewriteList( branch, select ); } -void ImageNameCombo::rewriteList( KFileTreeBranch *branch, const QString& selText ) +void ImageNameCombo::rewriteList( KFileTreeBranch *branch, const TQString& selText ) { clear(); - for ( QStringList::Iterator it = items.begin(); it != items.end(); ++it ) + for ( TQStringList::Iterator it = items.begin(); it != items.end(); ++it ) { insertItem( branch->pixmap(), *it ); } @@ -78,11 +78,11 @@ void ImageNameCombo::rewriteList( KFileTreeBranch *branch, const QString& selTex setCurrentItem( index ); } -void ImageNameCombo::slotGalleryPathChanged( KFileTreeBranch* branch, const QString& relativPath ) +void ImageNameCombo::slotGalleryPathChanged( KFileTreeBranch* branch, const TQString& relativPath ) { - QString newPath; + TQString newPath; - newPath = branch->name() + QString::fromLatin1(" - ") + relativPath; + newPath = branch->name() + TQString::fromLatin1(" - ") + relativPath; kdDebug( 28000) << "Inserting " << newPath << " to combobox" << endl; |