From 87a016680e3677da3993f333561e79eb0cead7d5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 29 Jun 2011 16:05:55 +0000 Subject: 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 --- src/itemlibrary.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/itemlibrary.h') 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 -#include +#include +#include class Document; class Item; @@ -21,8 +21,8 @@ class ItemLibrary; class LibraryItem; inline ItemLibrary* itemLibrary(); -typedef QMap< QString, QImage > ImageMap; -typedef QValueList LibraryItemList; +typedef TQMap< TQString, TQImage > ImageMap; +typedef TQValueList 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(); -- cgit v1.2.1