diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kspread/plugins/insertcalendar/kspread_insertcalendardialog.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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(); } |