summaryrefslogtreecommitdiffstats
path: root/src/gui/datewidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:27:15 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:27:15 -0600
commit5b6d393e0a2c88cce8f433607c091ae883ef54f9 (patch)
tree3c54f3e4a9d6fc2ac30a58e96c19ea878fa08459 /src/gui/datewidget.cpp
parenteb52f16dcfba98b043537ea3da6a1b08b8d51b19 (diff)
downloadtellico-5b6d393e0a2c88cce8f433607c091ae883ef54f9.tar.gz
tellico-5b6d393e0a2c88cce8f433607c091ae883ef54f9.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'src/gui/datewidget.cpp')
-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();