summaryrefslogtreecommitdiffstats
path: root/kooka/imgnamecombo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kooka/imgnamecombo.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kooka/imgnamecombo.cpp')
-rw-r--r--kooka/imgnamecombo.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kooka/imgnamecombo.cpp b/kooka/imgnamecombo.cpp
index 0e06646b..94faa083 100644
--- a/kooka/imgnamecombo.cpp
+++ b/kooka/imgnamecombo.cpp
@@ -20,8 +20,8 @@
* including the source code for KADMOS in the source distribution. *
*
* As a special exception, permission is given to link this program *
- * with any edition of Qt, and distribute the resulting executable, *
- * without including the source code for Qt in the source distribution. *
+ * with any edition of TQt, and distribute the resulting executable, *
+ * without including the source code for TQt in the source distribution. *
* *
***************************************************************************/
@@ -38,8 +38,8 @@
#include "imgnamecombo.h"
#include "img_saver.h"
-ImageNameCombo::ImageNameCombo( TQWidget *parent )
- : KComboBox( parent )
+ImageNameCombo::ImageNameCombo( TQWidget *tqparent )
+ : KComboBox( tqparent )
{
setInsertionPolicy( TQComboBox::AtTop );
}
@@ -51,12 +51,12 @@ ImageNameCombo::~ImageNameCombo()
void ImageNameCombo::slotPathRemove( KFileTreeBranch *branch, const TQString& relPath )
{
- TQString path = branch->name() + TQString::fromLatin1(" - ") + relPath;
+ TQString path = branch->name() + TQString::tqfromLatin1(" - ") + relPath;
kdDebug(28000) << "ImageNameCombo: Removing " << path << endl;
TQString select = currentText();
- if( items.contains( path ))
+ if( items.tqcontains( path ))
{
kdDebug(28000) << "ImageNameCombo: Item exists-> deleting" << endl;
items.remove( path );
@@ -74,7 +74,7 @@ void ImageNameCombo::rewriteList( KFileTreeBranch *branch, const TQString& selTe
insertItem( branch->pixmap(), *it );
}
- int index = items.findIndex( selText );
+ int index = items.tqfindIndex( selText );
setCurrentItem( index );
}
@@ -82,7 +82,7 @@ void ImageNameCombo::slotGalleryPathChanged( KFileTreeBranch* branch, const TQSt
{
TQString newPath;
- newPath = branch->name() + TQString::fromLatin1(" - ") + relativPath;
+ newPath = branch->name() + TQString::tqfromLatin1(" - ") + relativPath;
kdDebug( 28000) << "Inserting " << newPath << " to combobox" << endl;