diff options
Diffstat (limited to 'src/item.cpp')
-rw-r--r-- | src/item.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/item.cpp b/src/item.cpp index 809dd99..4dccc77 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -18,13 +18,13 @@ #include <kglobal.h> #include <kicontheme.h> -#include <qfile.h> -#include <qimage.h> -#include <qtextstream.h> +#include <ntqfile.h> +#include <ntqimage.h> +#include <ntqtextstream.h> #include "item.h" -Item::Item(const QString& iconName, const QString& cmd, const QString& name, int minSize, int maxSize) { +Item::Item(const TQString& iconName, const TQString& cmd, const TQString& name, int minSize, int maxSize) { iLoader = KGlobal::iconLoader(); command = cmd; this->name = name; @@ -36,7 +36,7 @@ Item::Item(const QString& iconName, const QString& cmd, const QString& name, int this->maxSize = maxSize; this->iconName = iconName; - QImage icon(iLoader->loadIcon(iconName, KIcon::NoGroup, 64).convertToImage()); + TQImage icon(iLoader->loadIcon(iconName, KIcon::NoGroup, 64).convertToImage()); if (minSize <= maxSize) { int count = maxSize - minSize + 1; @@ -47,7 +47,7 @@ Item::Item(const QString& iconName, const QString& cmd, const QString& name, int { if (i % SIZE_INC == 0) { - icons.append(new QPixmap(icon.smoothScale(minSize + i, minSize + i))); + icons.append(new TQPixmap(icon.smoothScale(minSize + i, minSize + i))); } } } @@ -57,10 +57,10 @@ Item::Item(const QString& iconName, const QString& cmd, const QString& name, int } -Item::Item(const QString& fileName, int minSize, int maxSize) +Item::Item(const TQString& fileName, int minSize, int maxSize) { - QString line; - QFile in(fileName); + TQString line; + TQFile in(fileName); in.open(IO_ReadOnly); mCount=0; mIndex=0; @@ -98,7 +98,7 @@ Item::Item(const QString& fileName, int minSize, int maxSize) mIndex=0; mMIndex=0; mClass=""; - QImage icon(iLoader->loadIcon(iconName, KIcon::NoGroup, 64).convertToImage()); + TQImage icon(iLoader->loadIcon(iconName, KIcon::NoGroup, 64).convertToImage()); if (minSize <= maxSize) { int count = maxSize - minSize + 1; @@ -109,7 +109,7 @@ Item::Item(const QString& fileName, int minSize, int maxSize) { if (i % SIZE_INC == 0) { - icons.append(new QPixmap(icon.smoothScale(minSize + i, minSize + i))); + icons.append(new TQPixmap(icon.smoothScale(minSize + i, minSize + i))); } } } @@ -118,7 +118,7 @@ Item::Item(const QString& fileName, int minSize, int maxSize) animed = FALSE; } -Item::Item(const QPixmap& iconBig, WId id, const QString& name, int minSize, int maxSize, bool wi) +Item::Item(const TQPixmap& iconBig, WId id, const TQString& name, int minSize, int maxSize, bool wi) { setId(id); this->name = name; @@ -130,7 +130,7 @@ Item::Item(const QPixmap& iconBig, WId id, const QString& name, int minSize, int this->maxSize = maxSize; command = ""; wIcon=wi; - QImage icon(iconBig.convertToImage()); + TQImage icon(iconBig.convertToImage()); if(minSize <= maxSize) { int count = maxSize - minSize + 1; @@ -142,10 +142,10 @@ Item::Item(const QPixmap& iconBig, WId id, const QString& name, int minSize, int if (i % SIZE_INC == 0) { if (wi) - {icons.append(new QPixmap(icon));} + {icons.append(new TQPixmap(icon));} else { - icons.append(new QPixmap(icon.scale(minSize + i, minSize + i))); + icons.append(new TQPixmap(icon.scale(minSize + i, minSize + i))); } //moothS } @@ -158,14 +158,14 @@ Item::~Item() { } -QPixmap* Item::getIcon(int size) +TQPixmap* Item::getIcon(int size) { if ((size >= minSize) && (size <= maxSize)) { int d = size - minSize; return(icons.at(d / SIZE_INC)); - //return(new QPixmap (icons.at(maxSize-minSize)->convertToImage().scale(size,size))); + //return(new TQPixmap (icons.at(maxSize-minSize)->convertToImage().scale(size,size))); } else { @@ -173,17 +173,17 @@ QPixmap* Item::getIcon(int size) } } -QString Item::getCommand() +TQString Item::getCommand() { return(command); } -QString Item::getName() +TQString Item::getName() { return(name); } -QCString Item::getClass() +TQCString Item::getClass() { return(mClass); } @@ -203,7 +203,7 @@ int Item::getMIndex() return(mMIndex); } -QString Item::getFilename() +TQString Item::getFilename() { return(filename); } @@ -220,10 +220,10 @@ void Item::setId(WId newId) id=newId; } -void Item::setIcon(const QPixmap& iconBig) +void Item::setIcon(const TQPixmap& iconBig) { icons.clear(); - QImage icon(iconBig.convertToImage()); + TQImage icon(iconBig.convertToImage()); int count = maxSize - minSize + 1; @@ -233,17 +233,17 @@ void Item::setIcon(const QPixmap& iconBig) { if (i % SIZE_INC == 0) { - icons.append(new QPixmap(icon.smoothScale(minSize + i, minSize + i))); + icons.append(new TQPixmap(icon.smoothScale(minSize + i, minSize + i))); } } } -void Item::setName(const QString& newName) +void Item::setName(const TQString& newName) { name = newName; } -void Item::setClass(const QCString& newClass) +void Item::setClass(const TQCString& newClass) { mClass = newClass; } |