diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-20 14:03:04 (GMT) |
---|---|---|
committer | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-11 15:59:12 (GMT) |
commit | 6613b634fd8175ce6e48bfa958b0f1a4e525303d (patch) | |
tree | 6e76ebbfc236665ba4c4e53f2f41695cd97888ef /Swift/QtUI/QtHistoryWindow.cpp | |
parent | 9ba2c6898b9bfa03f6e4b865966bb8f501f99735 (diff) | |
download | swift-contrib-6613b634fd8175ce6e48bfa958b0f1a4e525303d.zip swift-contrib-6613b634fd8175ce6e48bfa958b0f1a4e525303d.tar.bz2 |
add previous/next button callbacks
Diffstat (limited to 'Swift/QtUI/QtHistoryWindow.cpp')
-rw-r--r-- | Swift/QtUI/QtHistoryWindow.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Swift/QtUI/QtHistoryWindow.cpp b/Swift/QtUI/QtHistoryWindow.cpp index 6e779ea..ba463d3 100644 --- a/Swift/QtUI/QtHistoryWindow.cpp +++ b/Swift/QtUI/QtHistoryWindow.cpp @@ -60,6 +60,8 @@ QtHistoryWindow::QtHistoryWindow(SettingsProvider* settings, UIEventStream* even connect(conversation_, SIGNAL(scrollReachedBottom()), this, SLOT(handleScrollReachedBottom())); connect(ui_.searchBox_->lineEdit(), SIGNAL(returnPressed()), this, SLOT(handleReturnPressed())); connect(ui_.calendarWidget_, SIGNAL(clicked(const QDate&)), this, SLOT(handleCalendarClicked(const QDate&))); + connect(ui_.previousButton_, SIGNAL(clicked(bool)), this SLOT(handlePreviousButtonClicked())); + connect(ui_.nextButton_, SIGNAL(clicked(bool)), this SLOT(handleNextButtonClicked())); } QtHistoryWindow::~QtHistoryWindow() { @@ -68,6 +70,8 @@ QtHistoryWindow::~QtHistoryWindow() { disconnect(conversation_, SIGNAL(scrollReachedBottom()), this, SLOT(handleScrollReachedBottom())); disconnect(ui_.searchBox_->lineEdit(), SIGNAL(returnPressed()), this, SLOT(handleReturnPressed())); disconnect(ui_.calendarWidget_, SIGNAL(clicked(const QDate&)), this, SLOT(handleCalendarClicked(const QDate&))); + disconnect(ui_.previousButton_, SIGNAL(clicked(bool)), this SLOT(handlePreviousButtonClicked())); + disconnect(ui_.nextButton_, SIGNAL(clicked(bool)), this SLOT(handleNextButtonClicked())); delete theme_; delete conversation_; @@ -169,4 +173,12 @@ void QtHistoryWindow::setDate(const boost::gregorian::date& date) { ui_.calendarWidget_->setSelectedDate(QDate::fromJulianDay(date.julian_day())); } +void QtHistoryWindow::handleNextButtonClicked() { + onNextButtonClicked(); +} + +void QtHistoryWindow::handlePreviousButtonClicked() { + onPreviousButtonClicked(); +} + } |