summaryrefslogtreecommitdiffstats
path: root/khotkeys/kcontrol/gesturedrawer.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /khotkeys/kcontrol/gesturedrawer.cpp
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khotkeys/kcontrol/gesturedrawer.cpp')
-rw-r--r--khotkeys/kcontrol/gesturedrawer.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/khotkeys/kcontrol/gesturedrawer.cpp b/khotkeys/kcontrol/gesturedrawer.cpp
index 817eeab89..d0d144382 100644
--- a/khotkeys/kcontrol/gesturedrawer.cpp
+++ b/khotkeys/kcontrol/gesturedrawer.cpp
@@ -20,7 +20,7 @@ namespace KHotKeys
GestureDrawer::GestureDrawer(TQWidget *parent, const char *name)
: TQFrame(parent, name), _data(TQString::null)
{
- setBackgroundColor( colorGroup().base());
+ setBackgroundColor( tqcolorGroup().base());
setFrameStyle(TQFrame::Panel | TQFrame::Sunken);
setMinimumSize(30, 30);
}
@@ -33,14 +33,14 @@ void GestureDrawer::setData(const TQString &data)
{
_data = data;
- repaint();
+ tqrepaint();
}
void GestureDrawer::paintEvent(TQPaintEvent *ev)
{
// Iterate through the data points and draw a line to each of them
- Q_UINT32 startCell = 0;
- Q_UINT32 endCell = 0;
+ TQ_UINT32 startCell = 0;
+ TQ_UINT32 endCell = 0;
TQPoint startPoint;
TQPoint endPoint;
@@ -51,7 +51,7 @@ void GestureDrawer::paintEvent(TQPaintEvent *ev)
startCell = TQString(_data[0]).toUInt();
}
- for (Q_UINT32 index = 1; index < _data.length(); ++index)
+ for (TQ_UINT32 index = 1; index < _data.length(); ++index)
{
endCell = TQString(_data[index]).toUInt();
@@ -77,14 +77,14 @@ void GestureDrawer::paintEvent(TQPaintEvent *ev)
TQFrame::paintEvent(ev);
}
-TQPoint GestureDrawer::lookupCellCoords(Q_UINT32 cell)
+TQPoint GestureDrawer::lookupCellCoords(TQ_UINT32 cell)
{
// First divide the widget into thirds, horizontally and vertically
- Q_UINT32 w = width();
- Q_UINT32 h = height();
+ TQ_UINT32 w = width();
+ TQ_UINT32 h = height();
- Q_UINT32 wThird = w / 3;
- Q_UINT32 hThird = h / 3;
+ TQ_UINT32 wThird = w / 3;
+ TQ_UINT32 hThird = h / 3;
switch(cell)
{