diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-20 13:14:32 (GMT) |
---|---|---|
committer | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-11 15:59:12 (GMT) |
commit | 9ba2c6898b9bfa03f6e4b865966bb8f501f99735 (patch) | |
tree | 8354a9bef1afec23e7d68677a61362cc2482472a /Swift/QtUI | |
parent | 461ddac4c336524e2d3ecdb95ae23d5219b5304c (diff) | |
download | swift-contrib-9ba2c6898b9bfa03f6e4b865966bb8f501f99735.zip swift-contrib-9ba2c6898b9bfa03f6e4b865966bb8f501f99735.tar.bz2 |
Set the date when selecting a contact
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtHistoryWindow.cpp | 4 | ||||
-rw-r--r-- | Swift/QtUI/QtHistoryWindow.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Swift/QtUI/QtHistoryWindow.cpp b/Swift/QtUI/QtHistoryWindow.cpp index feec059..6e779ea 100644 --- a/Swift/QtUI/QtHistoryWindow.cpp +++ b/Swift/QtUI/QtHistoryWindow.cpp @@ -165,4 +165,8 @@ void QtHistoryWindow::handleReturnPressed() { void QtHistoryWindow::handleCalendarClicked(const QDate& date) { } +void QtHistoryWindow::setDate(const boost::gregorian::date& date) { + ui_.calendarWidget_->setSelectedDate(QDate::fromJulianDay(date.julian_day())); +} + } diff --git a/Swift/QtUI/QtHistoryWindow.h b/Swift/QtUI/QtHistoryWindow.h index 97b9866..721b4da 100644 --- a/Swift/QtUI/QtHistoryWindow.h +++ b/Swift/QtUI/QtHistoryWindow.h @@ -25,6 +25,7 @@ namespace Swift { void setRosterModel(Roster*); void addMessage(const std::string &message, const std::string &senderName, bool senderIsSelf, const std::string& avatarPath, const boost::posix_time::ptime& time, bool addAtTheTop); void resetConversationView(); + void setDate(const boost::gregorian::date& date); void closeEvent(QCloseEvent* event); void showEvent(QShowEvent* event); |