diff options
Diffstat (limited to 'kspread/plugins/insertcalendar/kspread_insertcalendardialog.cc')
-rw-r--r-- | kspread/plugins/insertcalendar/kspread_insertcalendardialog.cc | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kspread/plugins/insertcalendar/kspread_insertcalendardialog.cc b/kspread/plugins/insertcalendar/kspread_insertcalendardialog.cc index 541783b8..4a465eed 100644 --- a/kspread/plugins/insertcalendar/kspread_insertcalendardialog.cc +++ b/kspread/plugins/insertcalendar/kspread_insertcalendardialog.cc @@ -28,31 +28,31 @@ #include <kdatewidget.h> #include <kdebug.h> -#include <qpushbutton.h> +#include <tqpushbutton.h> namespace KSpread { -InsertCalendarDialog::InsertCalendarDialog(QWidget* parent, const char* name) -: InsertCalendarDialogBase(parent,name) +InsertCalendarDialog::InsertCalendarDialog(TQWidget* tqparent, const char* name) +: InsertCalendarDialogBase(tqparent,name) { this->m_datePicker = NULL; //we start with a default calendar for the current month; - QDate first_day_in_month = QDate::currentDate(); + TQDate first_day_in_month = TQDate::tqcurrentDate(); first_day_in_month.setYMD(first_day_in_month.year(),first_day_in_month.month(),1); - QDate last_day_in_month(first_day_in_month.year(),first_day_in_month.month(),first_day_in_month.daysInMonth()); + TQDate last_day_in_month(first_day_in_month.year(),first_day_in_month.month(),first_day_in_month.daysInMonth()); this->m_startDateWidget->setDate(first_day_in_month); this->m_endDateWidget->setDate(last_day_in_month); - connect(this->m_selectStartDateButton,SIGNAL(clicked()),this,SLOT(showStartDatePicker())); - connect(this->m_selectEndDateButton,SIGNAL(clicked()),this,SLOT(showEndDatePicker())); + connect(this->m_selectStartDateButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(showStartDatePicker())); + connect(this->m_selectEndDateButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(showEndDatePicker())); - connect(this->m_insertButton,SIGNAL(clicked()),this,SLOT(accept())); - connect(this->m_cancelButton,SIGNAL(clicked()),this,SLOT(reject())); + connect(this->m_insertButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(accept())); + connect(this->m_cancelButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(reject())); } InsertCalendarDialog::~InsertCalendarDialog() @@ -73,7 +73,7 @@ bool InsertCalendarDialog::buildDatePickerFrame() if (!m_datePicker) return false; - connect(m_datePicker,SIGNAL(destroyed()),this,SLOT(datePickerDeleted())); + connect(m_datePicker,TQT_SIGNAL(destroyed()),this,TQT_SLOT(datePickerDeleted())); m_datePicker->setCloseButton(true); m_datePicker->move(this->x()+this->width(),this->y()); @@ -93,7 +93,7 @@ void InsertCalendarDialog::accept() if (m_datePicker) m_datePicker->deleteLater(); kdDebug() << "insert calendar dialog accepted (insert button clicked)" << endl; - done(QDialog::Accepted); + done(TQDialog::Accepted); emit insertCalendar(startDate(),endDate()); } @@ -102,15 +102,15 @@ void InsertCalendarDialog::reject() if (m_datePicker) m_datePicker->deleteLater(); kdDebug() << "insert calendar dialog rejected (cancel button clicked)" << endl; - done(QDialog::Rejected); + done(TQDialog::Rejected); } void InsertCalendarDialog::showStartDatePicker() { if (buildDatePickerFrame()) { - connect(m_datePicker,SIGNAL(dateSelected(QDate)),this,SLOT(setStartDate(QDate))); - connect(m_datePicker,SIGNAL(dateEntered(QDate)),this,SLOT(setStartDate(QDate))); + connect(m_datePicker,TQT_SIGNAL(dateSelected(TQDate)),this,TQT_SLOT(setStartDate(TQDate))); + connect(m_datePicker,TQT_SIGNAL(dateEntered(TQDate)),this,TQT_SLOT(setStartDate(TQDate))); m_datePicker->setDate(startDate()); } } @@ -119,28 +119,28 @@ void InsertCalendarDialog::showEndDatePicker() { if (buildDatePickerFrame()) { - connect(m_datePicker,SIGNAL(dateSelected(QDate)),this,SLOT(setEndDate(QDate))); - connect(m_datePicker,SIGNAL(dateEntered(QDate)),this,SLOT(setEndDate(QDate))); + connect(m_datePicker,TQT_SIGNAL(dateSelected(TQDate)),this,TQT_SLOT(setEndDate(TQDate))); + connect(m_datePicker,TQT_SIGNAL(dateEntered(TQDate)),this,TQT_SLOT(setEndDate(TQDate))); m_datePicker->setDate(endDate()); } } -void InsertCalendarDialog::setStartDate(QDate date) +void InsertCalendarDialog::setStartDate(TQDate date) { this->m_startDateWidget->setDate(date); } -void InsertCalendarDialog::setEndDate(QDate date) +void InsertCalendarDialog::setEndDate(TQDate date) { this->m_endDateWidget->setDate(date); } -QDate InsertCalendarDialog::startDate() const +TQDate InsertCalendarDialog::startDate() const { return this->m_startDateWidget->date(); } -QDate InsertCalendarDialog::endDate() const +TQDate InsertCalendarDialog::endDate() const { return this->m_endDateWidget->date(); } |