summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/datepicker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/datepicker.cpp')
-rw-r--r--kommander/widgets/datepicker.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kommander/widgets/datepicker.cpp b/kommander/widgets/datepicker.cpp
index c1b1f834..928e1b81 100644
--- a/kommander/widgets/datepicker.cpp
+++ b/kommander/widgets/datepicker.cpp
@@ -17,19 +17,19 @@
/* KDE INCLUDES */
/* QT INCLUDES */
-#include <qdatetime.h>
-#include <qstring.h>
-#include <qwidget.h>
-#include <qstringlist.h>
+#include <tqdatetime.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqstringlist.h>
/* OTHER INCLUDES */
#include <specials.h>
#include "datepicker.h"
-DatePicker::DatePicker(QWidget *a_parent, const char *a_name)
+DatePicker::DatePicker(TQWidget *a_parent, const char *a_name)
: KDatePicker(a_parent, a_name), KommanderWidget(this)
{
- QStringList states;
+ TQStringList states;
states << "default";
setStates(states);
setDisplayStates(states);
@@ -39,9 +39,9 @@ DatePicker::~DatePicker()
{
}
-QString DatePicker::currentState() const
+TQString DatePicker::currentState() const
{
- return QString("default");
+ return TQString("default");
}
bool DatePicker::isKommanderWidget() const
@@ -49,22 +49,22 @@ bool DatePicker::isKommanderWidget() const
return true;
}
-QStringList DatePicker::associatedText() const
+TQStringList DatePicker::associatedText() const
{
return KommanderWidget::associatedText();
}
-void DatePicker::setAssociatedText(const QStringList& a_at)
+void DatePicker::setAssociatedText(const TQStringList& a_at)
{
KommanderWidget::setAssociatedText(a_at);
}
-void DatePicker::setPopulationText(const QString& a_text)
+void DatePicker::setPopulationText(const TQString& a_text)
{
KommanderWidget::setPopulationText(a_text);
}
-QString DatePicker::populationText() const
+TQString DatePicker::populationText() const
{
return KommanderWidget::populationText();
}
@@ -74,27 +74,27 @@ void DatePicker::populate()
setWidgetText(KommanderWidget::evalAssociatedText( populationText()));
}
-void DatePicker::setWidgetText(const QString& a_text)
+void DatePicker::setWidgetText(const TQString& a_text)
{
- setDate(QDate::fromString(a_text, Qt::ISODate));
+ setDate(TQDate::fromString(a_text, Qt::ISODate));
emit widgetTextChanged(a_text);
}
-QString DatePicker::widgetText() const
+TQString DatePicker::widgetText() const
{
return date().toString(Qt::ISODate);
}
-void DatePicker::showEvent(QShowEvent *e)
+void DatePicker::showEvent(TQShowEvent *e)
{
KDatePicker::showEvent( e );
emit widgetOpened();
}
-void DatePicker::contextMenuEvent( QContextMenuEvent * e )
+void DatePicker::contextMenuEvent( TQContextMenuEvent * e )
{
e->accept();
- QPoint p = e->globalPos();
+ TQPoint p = e->globalPos();
emit contextMenuRequested(p.x(), p.y());
}
@@ -104,27 +104,27 @@ bool DatePicker::isFunctionSupported(int f)
return f == DCOP::text || f == DCOP::setText || f == DCOP::geometry || f == DCOP::hasFocus ;
}
-QString DatePicker::handleDCOP(int function, const QStringList& args)
+TQString DatePicker::handleDCOP(int function, const TQStringList& args)
{
switch (function) {
case DCOP::text:
return date().toString(Qt::ISODate);
case DCOP::setText:
- setDate(QDate::fromString(args[0], Qt::ISODate));
+ setDate(TQDate::fromString(args[0], Qt::ISODate));
break;
case DCOP::geometry:
{
- QString geo = QString::number(this->x())+" "+QString::number(this->y())+" "+QString::number(this->width())+" "+QString::number(this->height());
+ TQString geo = TQString::number(this->x())+" "+TQString::number(this->y())+" "+TQString::number(this->width())+" "+TQString::number(this->height());
return geo;
break;
}
case DCOP::hasFocus:
- return QString::number(this->hasFocus());
+ return TQString::number(this->hasFocus());
break;
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString();
+ return TQString();
}
#include "datepicker.moc"