summaryrefslogtreecommitdiffstats
path: root/karm/printdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /karm/printdialog.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'karm/printdialog.cpp')
-rw-r--r--karm/printdialog.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/karm/printdialog.cpp b/karm/printdialog.cpp
index b2e4635d9..92a306a01 100644
--- a/karm/printdialog.cpp
+++ b/karm/printdialog.cpp
@@ -20,17 +20,17 @@
*
*/
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qpixmap.h>
-#include <qpushbutton.h>
-#include <qstring.h>
-#include <qwidget.h>
-#include <qwhatsthis.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqpixmap.h>
+#include <tqpushbutton.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqwhatsthis.h>
#include <kiconloader.h>
#include <klocale.h> // i18n
@@ -44,57 +44,57 @@ PrintDialog::PrintDialog()
: KDialogBase(0, "PrintDialog", true, i18n("Print Dialog"), Ok|Cancel,
Ok, true )
{
- QWidget *page = new QWidget( this );
+ TQWidget *page = new TQWidget( this );
setMainWidget(page);
int year, month;
- QVBoxLayout *layout = new QVBoxLayout(page, KDialog::spacingHint());
+ TQVBoxLayout *layout = new TQVBoxLayout(page, KDialog::spacingHint());
layout->addSpacing(10);
layout->addStretch(1);
// Date Range
- QGroupBox *rangeGroup = new QGroupBox(1, Horizontal, i18n("Date Range"),
+ TQGroupBox *rangeGroup = new TQGroupBox(1, Horizontal, i18n("Date Range"),
page);
layout->addWidget(rangeGroup);
- QWidget *rangeWidget = new QWidget(rangeGroup);
- QHBoxLayout *rangeLayout = new QHBoxLayout(rangeWidget, 0, spacingHint());
+ TQWidget *rangeWidget = new TQWidget(rangeGroup);
+ TQHBoxLayout *rangeLayout = new TQHBoxLayout(rangeWidget, 0, spacingHint());
- rangeLayout->addWidget(new QLabel(i18n("From:"), rangeWidget));
+ rangeLayout->addWidget(new TQLabel(i18n("From:"), rangeWidget));
_from = new KDateEdit(rangeWidget);
// Default from date to beginning of the month
- year = QDate::currentDate().year();
- month = QDate::currentDate().month();
- _from->setDate(QDate(year, month, 1));
+ year = TQDate::currentDate().year();
+ month = TQDate::currentDate().month();
+ _from->setDate(TQDate(year, month, 1));
rangeLayout->addWidget(_from);
- rangeLayout->addWidget(new QLabel(i18n("To:"), rangeWidget));
+ rangeLayout->addWidget(new TQLabel(i18n("To:"), rangeWidget));
_to = new KDateEdit(rangeWidget);
rangeLayout->addWidget(_to);
layout->addSpacing(10);
layout->addStretch(1);
- _allTasks = new QComboBox( page );
+ _allTasks = new TQComboBox( page );
_allTasks->insertItem( i18n( "Selected Task" ) );
_allTasks->insertItem( i18n( "All Tasks" ) );
layout->addWidget( _allTasks );
- _perWeek = new QCheckBox( i18n( "Summarize per week" ), page );
+ _perWeek = new TQCheckBox( i18n( "Summarize per week" ), page );
layout->addWidget( _perWeek );
- _totalsOnly = new QCheckBox( i18n( "Totals only" ), page );
+ _totalsOnly = new TQCheckBox( i18n( "Totals only" ), page );
layout->addWidget( _totalsOnly );
layout->addSpacing(10);
layout->addStretch(1);
}
-QDate PrintDialog::from() const
+TQDate PrintDialog::from() const
{
return _from->date();
}
-QDate PrintDialog::to() const
+TQDate PrintDialog::to() const
{
return _to->date();
}