diff options
Diffstat (limited to 'src/sources/labelsource.cpp')
-rw-r--r-- | src/sources/labelsource.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sources/labelsource.cpp b/src/sources/labelsource.cpp index d088cc7..d4d2182 100644 --- a/src/sources/labelsource.cpp +++ b/src/sources/labelsource.cpp @@ -50,8 +50,8 @@ void LabelSource::createSubPrefs(TQWidget* inParent){ connect(mSourcePrefs->taskbarCheckBox, TQT_SIGNAL(toggled(bool)), mLabelSourcePrefs->colorButton, TQT_SLOT(setEnabled(bool))); connect(mSourcePrefs->taskbarCheckBox, TQT_SIGNAL(toggled(bool)), mLabelSourcePrefs->fontLabel, TQT_SLOT(setEnabled(bool))); connect(mSourcePrefs->taskbarCheckBox, TQT_SIGNAL(toggled(bool)), mLabelSourcePrefs->fontRequester, TQT_SLOT(setEnabled(bool))); - connect(mSourcePrefs->taskbarCheckBox, TQT_SIGNAL(toggled(bool)), mLabelSourcePrefs->tqalignmentLabel, TQT_SLOT(setEnabled(bool))); - connect(mSourcePrefs->taskbarCheckBox, TQT_SIGNAL(toggled(bool)), mLabelSourcePrefs->tqalignmentComboBox, TQT_SLOT(setEnabled(bool))); + connect(mSourcePrefs->taskbarCheckBox, TQT_SIGNAL(toggled(bool)), mLabelSourcePrefs->alignmentLabel, TQT_SLOT(setEnabled(bool))); + connect(mSourcePrefs->taskbarCheckBox, TQT_SIGNAL(toggled(bool)), mLabelSourcePrefs->alignmentComboBox, TQT_SLOT(setEnabled(bool))); addPrefs(mLabelSourcePrefs); } } @@ -62,14 +62,14 @@ void LabelSource::updatePrefsGUI(){ mLabelSourcePrefs->fontRequester->setFont(mLabel->font()); switch (mLabel->tqalignment()) { case TQt::AlignCenter: - mLabelSourcePrefs->tqalignmentComboBox->setCurrentItem(1); + mLabelSourcePrefs->alignmentComboBox->setCurrentItem(1); break; case TQt::AlignRight: - mLabelSourcePrefs->tqalignmentComboBox->setCurrentItem(2); + mLabelSourcePrefs->alignmentComboBox->setCurrentItem(2); break; default: // TQt::AlignLeft break; - mLabelSourcePrefs->tqalignmentComboBox->setCurrentItem(0); + mLabelSourcePrefs->alignmentComboBox->setCurrentItem(0); } } @@ -80,15 +80,15 @@ void LabelSource::setPrefsWidgetsEnabled(bool isEnabled, bool isShownOnApplet){ mLabelSourcePrefs->colorButton->setEnabled(isEnabled && isShownOnApplet); mLabelSourcePrefs->fontLabel->setEnabled(isEnabled && isShownOnApplet); mLabelSourcePrefs->fontRequester->setEnabled(isEnabled && isShownOnApplet); - mLabelSourcePrefs->tqalignmentLabel->setEnabled(isEnabled && isShownOnApplet); - mLabelSourcePrefs->tqalignmentComboBox->setEnabled(isEnabled && isShownOnApplet); + mLabelSourcePrefs->alignmentLabel->setEnabled(isEnabled && isShownOnApplet); + mLabelSourcePrefs->alignmentComboBox->setEnabled(isEnabled && isShownOnApplet); } void LabelSource::applyPrefs(){ TriggeredSource::applyPrefs(); // call apply prefs of the super class mLabel->setPaletteForegroundColor(mLabelSourcePrefs->colorButton->color()); mLabel->setFont(mLabelSourcePrefs->fontRequester->font()); - int alignID = mLabelSourcePrefs->tqalignmentComboBox->currentItem(); + int alignID = mLabelSourcePrefs->alignmentComboBox->currentItem(); TQt::AlignmentFlags align = TQt::AlignCenter; if(alignID == 0){ align = TQt::AlignLeft; |