summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_iconwidget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/ui/kis_iconwidget.cc')
-rw-r--r--krita/ui/kis_iconwidget.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/krita/ui/kis_iconwidget.cc b/krita/ui/kis_iconwidget.cc
index 20f8838d..3e9ce4f1 100644
--- a/krita/ui/kis_iconwidget.cc
+++ b/krita/ui/kis_iconwidget.cc
@@ -17,11 +17,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qpainter.h>
+#include <tqpainter.h>
#include <koIconChooser.h>
#include "kis_iconwidget.h"
-KisIconWidget::KisIconWidget(QWidget *parent, const char *name) : super(parent, name)
+KisIconWidget::KisIconWidget(TQWidget *tqparent, const char *name) : super(tqparent, name)
{
m_item = 0;
}
@@ -32,18 +32,18 @@ void KisIconWidget::slotSetItem(KoIconItem& item)
update();
}
-void KisIconWidget::drawButtonLabel(QPainter *p)
+void KisIconWidget::drawButtonLabel(TQPainter *p)
{
if (m_item) {
- const QPixmap& pix = m_item->pixmap();
- Q_INT32 x = 2;
- Q_INT32 y = 2;
- Q_INT32 pw = pix.width();
- Q_INT32 ph = pix.height();
- Q_INT32 cw = width();
- Q_INT32 ch = height();
- Q_INT32 itemWidth = 24;
- Q_INT32 itemHeight = 24;
+ const TQPixmap& pix = m_item->pixmap();
+ TQ_INT32 x = 2;
+ TQ_INT32 y = 2;
+ TQ_INT32 pw = pix.width();
+ TQ_INT32 ph = pix.height();
+ TQ_INT32 cw = width();
+ TQ_INT32 ch = height();
+ TQ_INT32 itemWidth = 24;
+ TQ_INT32 itemHeight = 24;
if (pw < itemWidth)
x = (cw - pw) / 2;
@@ -53,7 +53,7 @@ void KisIconWidget::drawButtonLabel(QPainter *p)
if (!m_item->hasValidThumb() || (pw <= itemWidth && ph <= itemHeight)) {
p->drawPixmap(x, y, pix, 0, 0, itemWidth, itemHeight);
} else {
- const QPixmap& thumbpix = m_item->thumbPixmap();
+ const TQPixmap& thumbpix = m_item->thumbPixmap();
x = 2;
y = 2;