summaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/doc/src/snippets/code/src_qt3support_widgets_q3datetimeedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/codesnippets/doc/src/snippets/code/src_qt3support_widgets_q3datetimeedit.cpp')
-rw-r--r--doc/codesnippets/doc/src/snippets/code/src_qt3support_widgets_q3datetimeedit.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/doc/codesnippets/doc/src/snippets/code/src_qt3support_widgets_q3datetimeedit.cpp b/doc/codesnippets/doc/src/snippets/code/src_qt3support_widgets_q3datetimeedit.cpp
deleted file mode 100644
index 74070ec..0000000
--- a/doc/codesnippets/doc/src/snippets/code/src_qt3support_widgets_q3datetimeedit.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-
-void wrapInFunction()
-{
-
-//! [0]
-Q3DateEdit *dateEdit = new Q3DateEdit(QDate::currentDate(), this);
-dateEdit->setRange(QDate::currentDate().addDays(-365),
- QDate::currentDate().addDays( 365));
-dateEdit->setOrder(Q3DateEdit::MDY);
-dateEdit->setAutoAdvance(true);
-//! [0]
-
-
-//! [1]
-QTime timeNow = QTime::currentTime();
-Q3TimeEdit *timeEdit = new Q3TimeEdit(timeNow, this);
-timeEdit->setRange(timeNow, timeNow.addSecs(60 * 60));
-//! [1]
-
-
-//! [2]
-Q3DateTimeEdit *dateTimeEdit = new Q3DateTimeEdit(QDateTime::currentDateTime(), this);
-dateTimeEdit->dateEdit()->setRange(QDateTime::currentDate(),
- QDateTime::currentDate().addDays(7));
-//! [2]
-
-}
-