diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:30:39 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:30:39 -0600 |
commit | 6981c239dedc72969f6f539afeef646a19c867c0 (patch) | |
tree | 44e5e93a8ed355a26920da44467d4b18be8fcc05 /src/sources/labelsource.cpp | |
parent | dfe4a152e1587751bbb3e63e46c4d727e318caaf (diff) | |
download | kima-6981c239dedc72969f6f539afeef646a19c867c0.tar.gz kima-6981c239dedc72969f6f539afeef646a19c867c0.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/sources/labelsource.cpp')
-rw-r--r-- | src/sources/labelsource.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sources/labelsource.cpp b/src/sources/labelsource.cpp index d4d2182..ef98492 100644 --- a/src/sources/labelsource.cpp +++ b/src/sources/labelsource.cpp @@ -60,7 +60,7 @@ void LabelSource::updatePrefsGUI(){ TriggeredSource::updatePrefsGUI(); // update prefs of the super class mLabelSourcePrefs->colorButton->setColor(mLabel->paletteForegroundColor()); mLabelSourcePrefs->fontRequester->setFont(mLabel->font()); - switch (mLabel->tqalignment()) { + switch (mLabel->alignment()) { case TQt::AlignCenter: mLabelSourcePrefs->alignmentComboBox->setCurrentItem(1); break; @@ -95,7 +95,7 @@ void LabelSource::applyPrefs(){ }else if(alignID == 2){ align = TQt::AlignRight; } - mLabel->tqsetAlignment(align); + mLabel->setAlignment(align); updateLabel(mValue); } @@ -103,7 +103,7 @@ void LabelSource::savePrefs(KConfig* inKConfig){ TriggeredSource::savePrefs(inKConfig); inKConfig->writeEntry(mID + "_color", mLabelSourcePrefs->colorButton->color()); inKConfig->writeEntry(mID + "_font", mLabelSourcePrefs->fontRequester->font()); - inKConfig->writeEntry(mID + "_align", mLabel->tqalignment()); + inKConfig->writeEntry(mID + "_align", mLabel->alignment()); } void LabelSource::loadPrefs(KConfig* inKConfig){ @@ -113,7 +113,7 @@ void LabelSource::loadPrefs(KConfig* inKConfig){ color.setRgb(0,0,0); mLabel->setPaletteForegroundColor(color); mLabel->setFont(inKConfig->readFontEntry(mID + "_font")); - mLabel->tqsetAlignment(inKConfig->readNumEntry(mID + "_align")); + mLabel->setAlignment(inKConfig->readNumEntry(mID + "_align")); } void LabelSource::updateLabel(const TQString& inValue){ |