summaryrefslogtreecommitdiffstats
path: root/src/libraryitem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/libraryitem.cpp
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz
ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip
TQt4 port ktechlab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/libraryitem.cpp')
-rw-r--r--src/libraryitem.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libraryitem.cpp b/src/libraryitem.cpp
index f7ba013..8301a24 100644
--- a/src/libraryitem.cpp
+++ b/src/libraryitem.cpp
@@ -13,9 +13,9 @@
#include <kiconloader.h>
#include <kicontheme.h>
#include <kstandarddirs.h>
-#include <qimage.h>
+#include <tqimage.h>
-LibraryItem::LibraryItem( QStringList idList, const QString &name, const QString &category, QPixmap icon, Type type, createItemPtr _createItem )
+LibraryItem::LibraryItem( TQStringList idList, const TQString &name, const TQString &category, TQPixmap icon, Type type, createItemPtr _createItem )
{
m_idList = idList;
m_name = name;
@@ -27,7 +27,7 @@ LibraryItem::LibraryItem( QStringList idList, const QString &name, const QString
}
-LibraryItem::LibraryItem( QStringList idList, const QString &name, const QString &category, const QString &iconName, Type type, createItemPtr _createItem )
+LibraryItem::LibraryItem( TQStringList idList, const TQString &name, const TQString &category, const TQString &iconName, Type type, createItemPtr _createItem )
{
m_idList = idList;
m_name = name;
@@ -39,7 +39,7 @@ LibraryItem::LibraryItem( QStringList idList, const QString &name, const QString
}
-LibraryItem::LibraryItem( QStringList idList, const QString &name, const QString &category, Type type, createItemPtr _createItem )
+LibraryItem::LibraryItem( TQStringList idList, const TQString &name, const TQString &category, Type type, createItemPtr _createItem )
{
m_idList = idList;
m_name = name;
@@ -70,12 +70,12 @@ void LibraryItem::createIcon16()
return;
}
- QImage im = m_icon_full.convertToImage();
- im = im.smoothScale( size, size, QImage::ScaleMin );
+ TQImage im = m_icon_full.convertToImage();
+ im = im.smoothScale( size, size, TQ_ScaleMin );
m_icon_16.convertFromImage(im);
}
-QString LibraryItem::activeID( ) const
+TQString LibraryItem::activeID( ) const
{
return m_idList.isEmpty() ? "" : m_idList[0];
}