diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-16 16:06:06 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-16 16:06:06 -0600 |
commit | 34784ccef6ac9dd33b4460560c68e5422a73560a (patch) | |
tree | a206e2a4050c2861ce0706a8fd3542ff29e234e1 /libkdeedu/extdate/testwidget.cpp | |
parent | 89354dfc31a795bae9415f79bb07b32be643e4f4 (diff) | |
download | tdeedu-34784ccef6ac9dd33b4460560c68e5422a73560a.tar.gz tdeedu-34784ccef6ac9dd33b4460560c68e5422a73560a.zip |
Finish rename from prior commit
Diffstat (limited to 'libkdeedu/extdate/testwidget.cpp')
-rw-r--r-- | libkdeedu/extdate/testwidget.cpp | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/libkdeedu/extdate/testwidget.cpp b/libkdeedu/extdate/testwidget.cpp deleted file mode 100644 index a6489cce..00000000 --- a/libkdeedu/extdate/testwidget.cpp +++ /dev/null @@ -1,68 +0,0 @@ -/*************************************************************************** - testwidget.h - description - ------------------- - begin : Sun Apr 11 2004 - copyright : (C) 2004 by Jason Harris - email : kstars@30doradus.org - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#include <kdatepicker.h> -#include <kdatewidget.h> -#include <klineedit.h> -#include <tqlayout.h> -#include <tqlabel.h> - -#include "extdatepicker.h" -#include "extdatewidget.h" -#include "testwidget.h" - -TestWidget::TestWidget( TQWidget *p=0, const char *name=0 ) : KMainWindow( p, name ) { - TQWidget *w = new TQWidget(this); - - glay = new TQGridLayout(w, 3, 2); - - TQLabel *kdpLabel = new TQLabel( TQString("KDatePicker"), w ); - TQLabel *edpLabel = new TQLabel( TQString("ExtDatePicker"), w ); - kdp = new KDatePicker(w); - edp = new ExtDatePicker(w); - kdpEdit = new KLineEdit(w); - kdpEdit->setReadOnly( TRUE ); - edpEdit = new KLineEdit(w); - edpEdit->setReadOnly( TRUE ); - - kdw = new KDateWidget( TQDate::tqcurrentDate(), w ); - edw = new ExtDateWidget( ExtDate::tqcurrentDate(), w ); - - glay->addWidget( kdpLabel, 0, 0 ); - glay->addWidget( edpLabel, 0, 1 ); - glay->addWidget( kdp, 1, 0 ); - glay->addWidget( edp, 1, 1 ); - glay->addWidget( kdpEdit, 2, 0 ); - glay->addWidget( edpEdit, 2, 1 ); - glay->addWidget( kdw, 3, 0 ); - glay->addWidget( edw, 3, 1 ); - - setCentralWidget(w); - - connect( kdp, TQT_SIGNAL( dateChanged(TQDate) ), this, TQT_SLOT( slotKDateChanged(TQDate) ) ); - connect( edp, TQT_SIGNAL( dateChanged(const ExtDate&) ), this, TQT_SLOT( slotExtDateChanged(const ExtDate&) ) ); -} - -void TestWidget::slotKDateChanged(TQDate d) { - kdpEdit->setText( d.toString() ); -} - -void TestWidget::slotExtDateChanged(const ExtDate &d) { - edpEdit->setText( d.toString() ); -} - -#include "testwidget.moc" |