summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/spinbox2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/lib/spinbox2.cpp')
-rw-r--r--kalarm/lib/spinbox2.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kalarm/lib/spinbox2.cpp b/kalarm/lib/spinbox2.cpp
index 3ec3b68c0..a45a5b4e9 100644
--- a/kalarm/lib/spinbox2.cpp
+++ b/kalarm/lib/spinbox2.cpp
@@ -142,7 +142,7 @@ void SpinBox2::setLineStep(int step)
{
mLineStep = step;
if (reverseButtons())
- mUpdown2->setLineStep(step); // reverse tqlayout, but still set the right buttons
+ mUpdown2->setLineStep(step); // reverse layout, but still set the right buttons
else
mSpinbox->setLineStep(step);
}
@@ -153,7 +153,7 @@ void SpinBox2::setSteps(int line, int page)
mPageStep = page;
if (reverseButtons())
{
- mUpdown2->setLineStep(line); // reverse tqlayout, but still set the right buttons
+ mUpdown2->setLineStep(line); // reverse layout, but still set the right buttons
mSpinbox->setLineStep(page);
}
else
@@ -169,7 +169,7 @@ void SpinBox2::setShiftSteps(int line, int page)
mPageShiftStep = page;
if (reverseButtons())
{
- mUpdown2->setLineShiftStep(line); // reverse tqlayout, but still set the right buttons
+ mUpdown2->setLineShiftStep(line); // reverse layout, but still set the right buttons
mSpinbox->setLineShiftStep(page);
}
else
@@ -225,18 +225,18 @@ void SpinBox2::showEvent(TQShowEvent*)
arrange();
}
-TQSize SpinBox2::tqsizeHint() const
+TQSize SpinBox2::sizeHint() const
{
getMetrics();
- TQSize size = mSpinbox->tqsizeHint();
+ TQSize size = mSpinbox->sizeHint();
size.setWidth(size.width() - xSpinbox + wUpdown2 + wGap);
return size;
}
-TQSize SpinBox2::tqminimumSizeHint() const
+TQSize SpinBox2::minimumSizeHint() const
{
getMetrics();
- TQSize size = mSpinbox->tqminimumSizeHint();
+ TQSize size = mSpinbox->minimumSizeHint();
size.setWidth(size.width() - xSpinbox + wUpdown2 + wGap);
return size;
}
@@ -265,14 +265,14 @@ void SpinBox2::updateMirror()
void SpinBox2::arrange()
{
getMetrics();
- TQRect arrowRect = TQStyle::tqvisualRect(TQRect(0, 0, wUpdown2, height()), this);
+ TQRect arrowRect = TQStyle::visualRect(TQRect(0, 0, wUpdown2, height()), this);
mUpdown2Frame->setGeometry(arrowRect);
mUpdown2->setGeometry(-xUpdown2, 0, mUpdown2->width(), height());
- mSpinboxFrame->setGeometry(TQStyle::tqvisualRect(TQRect(wUpdown2 + wGap, 0, width() - wUpdown2 - wGap, height()), this));
+ mSpinboxFrame->setGeometry(TQStyle::visualRect(TQRect(wUpdown2 + wGap, 0, width() - wUpdown2 - wGap, height()), this));
mSpinbox->setGeometry(-xSpinbox, 0, mSpinboxFrame->width() + xSpinbox, height());
mSpinMirror->resize(wUpdown2, mUpdown2->height());
mSpinMirror->setGeometry(arrowRect);
-//mSpinMirror->setGeometry(TQStyle::tqvisualRect(TQRect(0, 11, wUpdown2, height()), this));
+//mSpinMirror->setGeometry(TQStyle::visualRect(TQRect(0, 11, wUpdown2, height()), this));
mSpinMirror->setNormalButtons(TQPixmap::grabWidget(mUpdown2Frame, 0, 0));
}
@@ -422,7 +422,7 @@ void SpinMirror::redraw()
void SpinMirror::redraw(const TQPixmap& px)
{
TQCanvas* c = canvas();
- c->tqsetBackgroundPixmap(px);
+ c->setBackgroundPixmap(px);
c->setAllChanged();
c->update();
}