summaryrefslogtreecommitdiffstats
path: root/src/itemlibrary.h
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/itemlibrary.h
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/itemlibrary.h')
-rw-r--r--src/itemlibrary.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/itemlibrary.h b/src/itemlibrary.h
index 181eb5f..5f0e39f 100644
--- a/src/itemlibrary.h
+++ b/src/itemlibrary.h
@@ -11,8 +11,8 @@
#ifndef ITEMLIBRARY_H
#define ITEMLIBRARY_H
-#include <qcolor.h>
-#include <qmap.h>
+#include <tqcolor.h>
+#include <tqmap.h>
class Document;
class Item;
@@ -21,8 +21,8 @@ class ItemLibrary;
class LibraryItem;
inline ItemLibrary* itemLibrary();
-typedef QMap< QString, QImage > ImageMap;
-typedef QValueList<LibraryItem*> LibraryItemList;
+typedef TQMap< TQString, TQImage > ImageMap;
+typedef TQValueList<LibraryItem*> LibraryItemList;
/**
While the program is running, only one instance of this class is created.
@@ -35,9 +35,9 @@ class ItemLibrary
public:
~ItemLibrary();
/**
- * Returns a QPixmap of the item icon
+ * Returns a TQPixmap of the item icon
*/
- QPixmap itemIconFull( const QString &id );
+ TQPixmap itemIconFull( const TQString &id );
/**
* Append the given item into the library
*/
@@ -49,15 +49,15 @@ public:
/**
* Creates a new item with the given id, and returns a pointer to it
*/
- Item *createItem( const QString &id, ItemDocument *itemDocument, bool newItem, const char *newId = 0L, bool finishCreation = true );
+ Item *createItem( const TQString &id, ItemDocument *itemDocument, bool newItem, const char *newId = 0L, bool finishCreation = true );
/**
- * Returns an image of the given cnitem. As QPixmap::convertToImage is
+ * Returns an image of the given cnitem. As TQPixmap::convertToImage is
* a *very* slow function, this will cache the result and return that for
* large images.
* @param cnItem A pointer to the CNItem
* @param maxSize The maximum size (in pixels) before the image is cached
*/
- QImage itemImage( Item *item, const uint maxSize = 36000 );
+ TQImage itemImage( Item *item, const uint maxSize = 36000 );
protected:
void addComponents();