summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/datewidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/datewidget.cpp b/src/gui/datewidget.cpp
index 7c9345a..375f825 100644
--- a/src/gui/datewidget.cpp
+++ b/src/gui/datewidget.cpp
@@ -43,7 +43,7 @@ SpinBox::SpinBox(int min, int max, TQWidget *parent) : TQSpinBox(min, max, 1, pa
DateWidget::DateWidget(TQWidget* parent_, const char* name_) : TQWidget(parent_, name_) {
TQHBoxLayout* l = new TQHBoxLayout(this, 0, 4);
- KLocale* locale = KGlobal::locale();
+ KLocale* locale = TDEGlobal::locale();
// 0 allows empty value
m_daySpin = new SpinBox(0, 31, this);
@@ -151,7 +151,7 @@ void DateWidget::setDate(const TQDate& date_) {
m_monthCombo->blockSignals(true);
m_yearSpin->blockSignals(true);
- const KCalendarSystem * calendar = KGlobal::locale()->calendar();
+ const KCalendarSystem * calendar = TDEGlobal::locale()->calendar();
m_daySpin->setMaxValue(calendar->daysInMonth(date_));
m_daySpin->setValue(calendar->day(date_));
m_monthCombo->setCurrentItem(calendar->month(date_)); // don't subtract 1 since there's the blank first item
@@ -189,7 +189,7 @@ void DateWidget::setDate(const TQString& date_) {
// for now set date to 1
TQDate date(y, (m == 0 ? 1 : m), 1);
m_daySpin->blockSignals(true);
- m_daySpin->setMaxValue(KGlobal::locale()->calendar()->daysInMonth(date));
+ m_daySpin->setMaxValue(TDEGlobal::locale()->calendar()->daysInMonth(date));
m_daySpin->blockSignals(false);
int day = s.count() > 2 ? s[2].toInt(&ok) : m_daySpin->minValue();
@@ -230,7 +230,7 @@ void DateWidget::clear() {
}
void DateWidget::slotShowPicker() {
- TQRect desk = KGlobalSettings::desktopGeometry(this);
+ TQRect desk = TDEGlobalSettings::desktopGeometry(this);
TQPoint popupPoint = mapToGlobal(TQPoint(0, 0));
int dateFrameHeight = m_frame->sizeHint().height();