From 76d71e75c0f8d8c707b011caec606cb0199a6df3 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 5 Oct 2011 18:09:57 +1000 Subject: [PATCH] Fixed Slot Connection warning message --- overview.cpp | 12 ++++++------ overview.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/overview.cpp b/overview.cpp index 5a03b5a3..a834a677 100644 --- a/overview.cpp +++ b/overview.cpp @@ -145,14 +145,14 @@ Overview::Overview(QWidget *parent,gGraphView * shared) : ui->dateEnd->calendarWidget()->setWeekdayTextFormat(Qt::Saturday, format); ui->dateEnd->calendarWidget()->setWeekdayTextFormat(Qt::Sunday, format); - connect(ui->dateStart->calendarWidget(),SIGNAL(currentPageChanged(int,int)),SLOT(on_dateStart_currentPageChanged(int,int))); - connect(ui->dateEnd->calendarWidget(),SIGNAL(currentPageChanged(int,int)),SLOT(on_dateEnd_currentPageChanged(int,int))); + connect(ui->dateStart->calendarWidget(),SIGNAL(currentPageChanged(int,int)),SLOT(dateStart_currentPageChanged(int,int))); + connect(ui->dateEnd->calendarWidget(),SIGNAL(currentPageChanged(int,int)),SLOT(dateEnd_currentPageChanged(int,int))); report=NULL; } Overview::~Overview() { - disconnect(this,SLOT(on_dateStart_currentPageChanged(int,int))); - disconnect(this,SLOT(on_dateEnd_currentPageChanged(int,int))); + disconnect(this,SLOT(dateStart_currentPageChanged(int,int))); + disconnect(this,SLOT(dateEnd_currentPageChanged(int,int))); if (report) { report->close(); delete report; @@ -201,7 +201,7 @@ void Overview::UpdateCalendarDay(QDateEdit * dateedit,QDate date) } calendar->setHorizontalHeaderFormat(QCalendarWidget::ShortDayNames); } -void Overview::on_dateStart_currentPageChanged(int year, int month) +void Overview::dateStart_currentPageChanged(int year, int month) { QDate d(year,month,1); int dom=d.daysInMonth(); @@ -211,7 +211,7 @@ void Overview::on_dateStart_currentPageChanged(int year, int month) UpdateCalendarDay(ui->dateStart,d); } } -void Overview::on_dateEnd_currentPageChanged(int year, int month) +void Overview::dateEnd_currentPageChanged(int year, int month) { QDate d(year,month,1); int dom=d.daysInMonth(); diff --git a/overview.h b/overview.h index 35aac3a9..54e04a1e 100644 --- a/overview.h +++ b/overview.h @@ -51,8 +51,8 @@ private slots: void on_dateStart_dateChanged(const QDate &date); void on_dateEnd_dateChanged(const QDate &date); - void on_dateStart_currentPageChanged(int year, int month); - void on_dateEnd_currentPageChanged(int year, int month); + void dateStart_currentPageChanged(int year, int month); + void dateEnd_currentPageChanged(int year, int month); void on_toolButton_clicked();