summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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_;
};
}