diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-09 19:35:27 (GMT) |
---|---|---|
committer | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-09 19:35:27 (GMT) |
commit | b629b5c198020e0992ee6cf01669b7a5191e23ef (patch) | |
tree | ef351a65acedcfd9bf77d72a2fc9b7ffc3ac7e59 /Swift/QtUI/QtHistoryWindow.h | |
parent | 40dc0541e60549cc2db83005f45b51f93d42cc00 (diff) | |
download | swift-contrib-b629b5c198020e0992ee6cf01669b7a5191e23ef.zip swift-contrib-b629b5c198020e0992ee6cf01669b7a5191e23ef.tar.bz2 |
Calendar widget follows the currently viewed message
Diffstat (limited to 'Swift/QtUI/QtHistoryWindow.h')
-rw-r--r-- | Swift/QtUI/QtHistoryWindow.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Swift/QtUI/QtHistoryWindow.h b/Swift/QtUI/QtHistoryWindow.h index 279657d..448780f 100644 --- a/Swift/QtUI/QtHistoryWindow.h +++ b/Swift/QtUI/QtHistoryWindow.h @@ -11,6 +11,8 @@ #include <QtChatView.h> #include <QtTabbable.h> #include <Swift/QtUI/Roster/QtTreeWidget.h> +#include <set> +#include <QDate> namespace Swift { class QtHistoryWindow : public QtTabbable, public HistoryWindow { @@ -24,15 +26,20 @@ namespace Swift { void addMessage(const std::string &message, const std::string &senderName, bool senderIsSelf, const std::string& avatarPath, const boost::posix_time::ptime& time); void resetConversationView(); - private: - virtual void closeEvent(QCloseEvent* event); - virtual void showEvent(QShowEvent* event); + void closeEvent(QCloseEvent* event); + void showEvent(QShowEvent* event); + + protected slots: + void handleScrollRequested(int pos); + private: void handleSomethingSelectedChanged(RosterItem* item); Ui::QtHistoryWindow ui_; QtChatTheme* theme_; QtChatView* conversation_; QtTreeWidget* conversationRoster_; + std::set<QDate> dates_; + QDate currentDate_; }; } |