diff options
author | Timothy Pearson <[email protected]> | 2013-01-25 00:07:58 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-25 00:07:58 -0600 |
commit | d1a1ded7630ef9c2a69894f62c837f06bf77cc85 (patch) | |
tree | 887745a198486f55a8fe21cfd1a936b683ef421c /src/sources/labelsource.cpp | |
parent | 3f7edc4861d43739e97822be428197d23d81a979 (diff) | |
download | kima-d1a1ded7630ef9c2a69894f62c837f06bf77cc85.tar.gz kima-d1a1ded7630ef9c2a69894f62c837f06bf77cc85.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'src/sources/labelsource.cpp')
-rw-r--r-- | src/sources/labelsource.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sources/labelsource.cpp b/src/sources/labelsource.cpp index ef98492..9e27985 100644 --- a/src/sources/labelsource.cpp +++ b/src/sources/labelsource.cpp @@ -99,21 +99,21 @@ void LabelSource::applyPrefs(){ updateLabel(mValue); } -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->alignment()); +void LabelSource::savePrefs(TDEConfig* inTDEConfig){ + TriggeredSource::savePrefs(inTDEConfig); + inTDEConfig->writeEntry(mID + "_color", mLabelSourcePrefs->colorButton->color()); + inTDEConfig->writeEntry(mID + "_font", mLabelSourcePrefs->fontRequester->font()); + inTDEConfig->writeEntry(mID + "_align", mLabel->alignment()); } -void LabelSource::loadPrefs(KConfig* inKConfig){ - TriggeredSource::loadPrefs(inKConfig); - TQColor color = inKConfig->readColorEntry(mID + "_color"); +void LabelSource::loadPrefs(TDEConfig* inTDEConfig){ + TriggeredSource::loadPrefs(inTDEConfig); + TQColor color = inTDEConfig->readColorEntry(mID + "_color"); if(!color.isValid()) color.setRgb(0,0,0); mLabel->setPaletteForegroundColor(color); - mLabel->setFont(inKConfig->readFontEntry(mID + "_font")); - mLabel->setAlignment(inKConfig->readNumEntry(mID + "_align")); + mLabel->setFont(inTDEConfig->readFontEntry(mID + "_font")); + mLabel->setAlignment(inTDEConfig->readNumEntry(mID + "_align")); } void LabelSource::updateLabel(const TQString& inValue){ |