diff options
Diffstat (limited to 'src/datepicker.cpp')
-rw-r--r-- | src/datepicker.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/datepicker.cpp b/src/datepicker.cpp index 360c713..7a7b589 100644 --- a/src/datepicker.cpp +++ b/src/datepicker.cpp @@ -29,51 +29,51 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include <klocale.h> #include <kwin.h> -DatePicker::DatePicker(QWidget *parent, const QDate& date) - : QVBox( parent, 0,(WType_TopLevel | WDestructiveClose | WStyle_StaysOnTop)) +DatePicker::DatePicker(TQWidget *parent, const TQDate& date) + : TQVBox( parent, 0,(WType_TopLevel | WDestructiveClose | WStyle_StaysOnTop)) { - setFrameStyle( QFrame::PopupPanel | QFrame::Raised ); + setFrameStyle( TQFrame::PopupPanel | TQFrame::Raised ); KWin::setType( winId(), NET::Utility ); KWin::setOnAllDesktops( handle(), true ); picker = new KDatePicker(this, date); picker->setCloseButton(true); - connect( picker, SIGNAL(dateSelected(QDate)),this, - SLOT(slotEmitSelectedDate(QDate)) ); + connect( picker, SIGNAL(dateSelected(TQDate)),this, + SLOT(slotEmitSelectedDate(TQDate)) ); /* name and icon for kicker's taskbar */ setCaption(i18n("Calendar")); setIcon(SmallIcon("date")); } -void DatePicker::closeEvent(QCloseEvent* e) +void DatePicker::closeEvent(TQCloseEvent* e) { /* prefs->setCalendarSize(size());*/ - QVBox::closeEvent(e); + TQVBox::closeEvent(e); } -void DatePicker::keyPressEvent(QKeyEvent *e) +void DatePicker::keyPressEvent(TQKeyEvent *e) { - QVBox::keyPressEvent(e); + TQVBox::keyPressEvent(e); - if (e->key() == Qt::Key_Escape) + if (e->key() == TQt::Key_Escape) { close(); } } -bool DatePicker::setDate(const QDate& date) +bool DatePicker::setDate(const TQDate& date) { return picker->setDate(date); } -void DatePicker::slotEmitSelectedDate(QDate newdate) +void DatePicker::slotEmitSelectedDate(TQDate newdate) { emit signalSelectedDate(newdate); //kdDebug() << "here date" << endl; close(); } -QDate DatePicker::date() +TQDate DatePicker::date() { return picker->date(); } |