From 6981c239dedc72969f6f539afeef646a19c867c0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:30:39 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- src/sources/labelsource.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sources/labelsource.cpp') 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){ -- cgit v1.2.3