diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:51 -0600 |
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:51 -0600 |
| commit | 2781e27b871150395a5a82e221684108641002b2 (patch) | |
| tree | 57f4d7c01a48faef1a840fbe0de8f4ec1e5f606f /src/gui/datewidget.cpp | |
| parent | 031454e56009d576589c28757f6c6fcf4884095e (diff) | |
| download | tellico-2781e27b871150395a5a82e221684108641002b2.tar.gz tellico-2781e27b871150395a5a82e221684108641002b2.zip | |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 031454e56009d576589c28757f6c6fcf4884095e.
Diffstat (limited to 'src/gui/datewidget.cpp')
| -rw-r--r-- | src/gui/datewidget.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/datewidget.cpp b/src/gui/datewidget.cpp index 31de509..c43ca26 100644 --- a/src/gui/datewidget.cpp +++ b/src/gui/datewidget.cpp @@ -27,14 +27,14 @@ #include <kcalendarsystem.h> #include <tqvbox.h> -#include <layout.h> +#include <tqlayout.h> using Tellico::GUI::SpinBox; using Tellico::GUI::DateWidget; SpinBox::SpinBox(int min, int max, TQWidget *parent) : TQSpinBox(min, max, 1, parent) { - editor()->setAlignment(AlignRight); + editor()->tqsetAlignment(AlignRight); // I want to be able to omit the day // an empty string just removes the special value, so set white space setSpecialValueText(TQChar(' ')); @@ -71,7 +71,7 @@ DateWidget::DateWidget(TQWidget* parent_, const char* name_) : TQWidget(parent_, connect(m_yearSpin, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotDateChanged())); m_dateButton = new KPushButton(this); - m_dateButton->setIconSet(SmallIconSet(TQString::fromLatin1("date"))); + m_dateButton->setIconSet(SmallIconSet(TQString::tqfromLatin1("date"))); connect(m_dateButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotShowPicker())); l->addWidget(m_dateButton, 0); @@ -221,7 +221,7 @@ void DateWidget::clear() { m_daySpin->setValue(m_daySpin->minValue()); m_monthCombo->setCurrentItem(0); m_yearSpin->setValue(m_yearSpin->minValue()); - m_picker->setDate(TQDate::currentDate()); + m_picker->setDate(TQDate::tqcurrentDate()); m_daySpin->blockSignals(false); m_monthCombo->blockSignals(false); @@ -233,13 +233,13 @@ void DateWidget::slotShowPicker() { TQRect desk = KGlobalSettings::desktopGeometry(this); TQPoint popupPoint = mapToGlobal(TQPoint(0, 0)); - int dateFrameHeight = m_frame->sizeHint().height(); + int dateFrameHeight = m_frame->tqsizeHint().height(); if(popupPoint.y() + height() + dateFrameHeight > desk.bottom()) { popupPoint.setY(popupPoint.y() - dateFrameHeight); } else { popupPoint.setY(popupPoint.y() + height()); } - int dateFrameWidth = m_frame->sizeHint().width(); + int dateFrameWidth = m_frame->tqsizeHint().width(); if(popupPoint.x() + dateFrameWidth > desk.right()) { popupPoint.setX(desk.right() - dateFrameWidth); } |
