summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_iconwidget.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /krita/ui/kis_iconwidget.cc
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;