summaryrefslogtreecommitdiffstats
path: root/libkdeedu/extdate/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdeedu/extdate/main.cpp')
-rw-r--r--libkdeedu/extdate/main.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/libkdeedu/extdate/main.cpp b/libkdeedu/extdate/main.cpp
new file mode 100644
index 00000000..f71a6acd
--- /dev/null
+++ b/libkdeedu/extdate/main.cpp
@@ -0,0 +1,30 @@
+#include "testwidget.h"
+#include <kapplication.h>
+#include <kcmdlineargs.h>
+#include <kaboutdata.h>
+
+static const char description[] = I18N_NOOP("ExtDatePicker test program");
+static const char notice[] = I18N_NOOP("Compares KDatePicker and ExtDatePicker");
+
+static KCmdLineOptions options[] =
+{
+ KCmdLineLastOption
+};
+
+int main( int argc, char *argv[] )
+{
+ KAboutData aboutData( "test_extdatepicker", I18N_NOOP("Test ExtDatePicker"),
+ "0.1", description, KAboutData::License_GPL,
+ I18N_NOOP("(c) 2004, Jason Harris"), notice,
+ "http://30doradus.org");
+ aboutData.addAuthor("Jason Harris", 0,
+ "jharris@30doradus.org", "http://www.30doradus.org");
+
+ KCmdLineArgs::init( argc, argv, &aboutData );
+
+ KApplication a;
+ TestWidget *t = new TestWidget(0,0);
+ t->show();
+ QObject::connect(kapp, SIGNAL(lastWindowClosed()), kapp, SLOT(quit()));
+ return a.exec();
+}