summaryrefslogtreecommitdiffstats
path: root/kalarm/lib
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:23:13 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:23:13 -0600
commitba2a3ce341c0c71bbbcf350fcbcd60c552220b31 (patch)
tree08ba9504290f461f1244dded6b37fc4db00847ab /kalarm/lib
parentd5b298be14c173d62e8fbc6a3803ba8f657f3dcb (diff)
downloadtdepim-ba2a3ce341c0c71bbbcf350fcbcd60c552220b31.tar.gz
tdepim-ba2a3ce341c0c71bbbcf350fcbcd60c552220b31.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'kalarm/lib')
-rw-r--r--kalarm/lib/spinbox2.cpp18
-rw-r--r--kalarm/lib/spinbox2.h2
2 files changed, 10 insertions, 10 deletions
diff --git a/kalarm/lib/spinbox2.cpp b/kalarm/lib/spinbox2.cpp
index 2eceec29c..360d2a2a5 100644
--- a/kalarm/lib/spinbox2.cpp
+++ b/kalarm/lib/spinbox2.cpp
@@ -87,7 +87,7 @@ void SpinBox2::init()
setFocusProxy(mSpinbox);
mUpdown2->setFocusPolicy(TQ_NoFocus);
mSpinMirror = new SpinMirror(mUpdown2, mUpdown2Frame, this);
- if (!mirrorStyle(tqstyle()))
+ if (!mirrorStyle(style()))
mSpinMirror->hide(); // hide mirrored spin buttons when they are inappropriate
connect(mSpinbox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(valueChange()));
connect(mSpinbox, TQT_SIGNAL(valueChanged(int)), TQT_SIGNAL(valueChanged(int)));
@@ -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
@@ -243,7 +243,7 @@ TQSize SpinBox2::minimumSizeHint() const
void SpinBox2::styleChange(TQStyle&)
{
- if (mirrorStyle(tqstyle()))
+ if (mirrorStyle(style()))
mSpinMirror->show(); // show rounded corners with Plastik etc.
else
mSpinMirror->hide(); // keep normal shading with other styles
@@ -282,16 +282,16 @@ void SpinBox2::arrange()
*/
void SpinBox2::getMetrics() const
{
- TQRect rect = mUpdown2->tqstyle().querySubControlMetrics(TQStyle::CC_SpinWidget, mUpdown2, TQStyle::SC_SpinWidgetButtonField);
- if (tqstyle().inherits("PlastikStyle"))
+ TQRect rect = mUpdown2->style().querySubControlMetrics(TQStyle::CC_SpinWidget, mUpdown2, TQStyle::SC_SpinWidgetButtonField);
+ if (style().inherits("PlastikStyle"))
rect.setLeft(rect.left() - 1); // Plastik excludes left border from spin widget rectangle
xUpdown2 = mReverseLayout ? 0 : rect.left();
wUpdown2 = mUpdown2->width() - rect.left();
- xSpinbox = mSpinbox->tqstyle().querySubControlMetrics(TQStyle::CC_SpinWidget, mSpinbox, TQStyle::SC_SpinWidgetEditField).left();
+ xSpinbox = mSpinbox->style().querySubControlMetrics(TQStyle::CC_SpinWidget, mSpinbox, TQStyle::SC_SpinWidgetEditField).left();
wGap = 0;
// Make style-specific adjustments for a better appearance
- if (tqstyle().inherits(TQMOTIFPLUSSTYLE_OBJECT_NAME_STRING))
+ if (style().inherits(TQMOTIFPLUSSTYLE_OBJECT_NAME_STRING))
{
xSpinbox = 0; // show the edit control left border
wGap = 2; // leave a space to the right of the left-hand pair of spin buttons
diff --git a/kalarm/lib/spinbox2.h b/kalarm/lib/spinbox2.h
index 188cba526..14c2f16e1 100644
--- a/kalarm/lib/spinbox2.h
+++ b/kalarm/lib/spinbox2.h
@@ -310,7 +310,7 @@ class SpinBox2 : public TQFrame
int mLineShiftStep; // right button increment with shift pressed
int mPageStep; // left button increment
int mPageShiftStep; // left button increment with shift pressed
- bool mReverseWithLayout; // reverse button positions if reverse tqlayout (default = true)
+ bool mReverseWithLayout; // reverse button positions if reverse layout (default = true)
friend class MainSpinBox;
};