summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Badea <catalin.badea392@gmail.com>2012-07-09 19:35:27 (GMT)
committerCătălin Badea <catalin.badea392@gmail.com>2012-08-11 15:52:57 (GMT)
commit782054cbc9d82646e90a8de4086008e8f7bc640c (patch)
treef48b5577371a200e5f2aa43c9c3910fd7052a806 /Swift/QtUI/QtHistoryWindow.h
parentb9b59d265f44e3e5341635baaac160fe57a5685e (diff)
downloadswift-contrib-782054cbc9d82646e90a8de4086008e8f7bc640c.zip
swift-contrib-782054cbc9d82646e90a8de4086008e8f7bc640c.tar.bz2
Calendar widget follows the currently viewed message
Diffstat (limited to 'Swift/QtUI/QtHistoryWindow.h')
-rw-r--r--Swift/QtUI/QtHistoryWindow.h13
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_;
};
}