diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-03 13:17:51 (GMT) |
---|---|---|
committer | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-11 15:52:57 (GMT) |
commit | b9b59d265f44e3e5341635baaac160fe57a5685e (patch) | |
tree | 1e7d85f0b7daa0791c60a2434ee0d65a50bd36c5 /Swift/QtUI | |
parent | 80d2797f246e32edce4083ed7f86389a6c358d43 (diff) | |
download | swift-contrib-b9b59d265f44e3e5341635baaac160fe57a5685e.zip swift-contrib-b9b59d265f44e3e5341635baaac160fe57a5685e.tar.bz2 |
Added message type logging. Fixed handling new messages.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtHistoryWindow.cpp | 5 | ||||
-rw-r--r-- | Swift/QtUI/QtHistoryWindow.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Swift/QtUI/QtHistoryWindow.cpp b/Swift/QtUI/QtHistoryWindow.cpp index 122655a..50fd66e 100644 --- a/Swift/QtUI/QtHistoryWindow.cpp +++ b/Swift/QtUI/QtHistoryWindow.cpp @@ -89,8 +89,11 @@ void QtHistoryWindow::addMessage(const std::string &message, const std::string & void QtHistoryWindow::handleSomethingSelectedChanged(RosterItem* item) { - conversation_->resetView(); onSelectedContactChanged(item); } +void QtHistoryWindow::resetConversationView() { + conversation_->resetView(); +} + } diff --git a/Swift/QtUI/QtHistoryWindow.h b/Swift/QtUI/QtHistoryWindow.h index 965abf7..279657d 100644 --- a/Swift/QtUI/QtHistoryWindow.h +++ b/Swift/QtUI/QtHistoryWindow.h @@ -22,6 +22,7 @@ namespace Swift { void activate(); 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); + void resetConversationView(); private: virtual void closeEvent(QCloseEvent* event); |