summaryrefslogtreecommitdiffstats
path: root/karm/printdialog.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:50:21 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:50:21 -0600
commit3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (patch)
tree89de88213bd261e4ccaade899ab2d6ec34b3a5a7 /karm/printdialog.cpp
parent1dad5f662a09dfc5cc041caffe0f674044a4dcec (diff)
downloadtdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.tar.gz
tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'karm/printdialog.cpp')
-rw-r--r--karm/printdialog.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/karm/printdialog.cpp b/karm/printdialog.cpp
index 197875491..3e57fa092 100644
--- a/karm/printdialog.cpp
+++ b/karm/printdialog.cpp
@@ -24,7 +24,7 @@
#include <tqcheckbox.h>
#include <tqhbox.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlineedit.h>
#include <tqpixmap.h>
#include <tqpushbutton.h>
@@ -48,14 +48,14 @@ PrintDialog::PrintDialog()
setMainWidget(page);
int year, month;
- TQVBoxLayout *tqlayout = new TQVBoxLayout(page, KDialog::spacingHint());
- tqlayout->addSpacing(10);
- tqlayout->addStretch(1);
+ TQVBoxLayout *layout = new TQVBoxLayout(page, KDialog::spacingHint());
+ layout->addSpacing(10);
+ layout->addStretch(1);
// Date Range
TQGroupBox *rangeGroup = new TQGroupBox(1, Qt::Horizontal, i18n("Date Range"),
page);
- tqlayout->addWidget(rangeGroup);
+ layout->addWidget(rangeGroup);
TQWidget *rangeWidget = new TQWidget(rangeGroup);
TQHBoxLayout *rangeLayout = new TQHBoxLayout(rangeWidget, 0, spacingHint());
@@ -64,29 +64,29 @@ PrintDialog::PrintDialog()
_from = new KDateEdit(rangeWidget);
// Default from date to beginning of the month
- year = TQDate::tqcurrentDate().year();
- month = TQDate::tqcurrentDate().month();
+ year = TQDate::currentDate().year();
+ month = TQDate::currentDate().month();
_from->setDate(TQDate(year, month, 1));
rangeLayout->addWidget(_from);
rangeLayout->addWidget(new TQLabel(i18n("To:"), rangeWidget));
_to = new KDateEdit(rangeWidget);
rangeLayout->addWidget(_to);
- tqlayout->addSpacing(10);
- tqlayout->addStretch(1);
+ layout->addSpacing(10);
+ layout->addStretch(1);
_allTasks = new TQComboBox( page );
_allTasks->insertItem( i18n( "Selected Task" ) );
_allTasks->insertItem( i18n( "All Tasks" ) );
- tqlayout->addWidget( _allTasks );
+ layout->addWidget( _allTasks );
_perWeek = new TQCheckBox( i18n( "Summarize per week" ), page );
- tqlayout->addWidget( _perWeek );
+ layout->addWidget( _perWeek );
_totalsOnly = new TQCheckBox( i18n( "Totals only" ), page );
- tqlayout->addWidget( _totalsOnly );
+ layout->addWidget( _totalsOnly );
- tqlayout->addSpacing(10);
- tqlayout->addStretch(1);
+ layout->addSpacing(10);
+ layout->addStretch(1);
}
TQDate PrintDialog::from() const