summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-10-04 10:26:17 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-10-04 10:26:17 (GMT)
commit168405b68c8ce2dd174c86ce3938fbabff93efd7 (patch)
tree3d7a49add14b26b06435b214dcaae9af6cbd948e /Swift/QtUI/QtChatView.h
parent219b1e5e4684323e0dbd0f1ad7de7beaf4d75f50 (diff)
downloadswift-168405b68c8ce2dd174c86ce3938fbabff93efd7.zip
swift-168405b68c8ce2dd174c86ce3938fbabff93efd7.tar.bz2
Fix chat logs scrolling to bottom.
(bug introduced since beta6) Resolves: #591
Diffstat (limited to 'Swift/QtUI/QtChatView.h')
-rw-r--r--Swift/QtUI/QtChatView.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatView.h b/Swift/QtUI/QtChatView.h
index 8c1a99a..84738d4 100644
--- a/Swift/QtUI/QtChatView.h
+++ b/Swift/QtUI/QtChatView.h
@@ -30,7 +30,7 @@ namespace Swift {
void addMessage(boost::shared_ptr<ChatSnippet> snippet);
void replaceLastMessage(const QString& newMessage);
void replaceLastMessage(const QString& newMessage, const QString& note);
- bool isScrolledToBottom() const;
+ void rememberScrolledToBottom();
void setAckXML(const QString& id, const QString& xml);
signals:
@@ -45,6 +45,7 @@ namespace Swift {
private slots:
void handleViewLoadFinished(bool);
+ void handleFrameSizeChanged();
private:
void headerEncode();
@@ -54,6 +55,7 @@ namespace Swift {
QWebElement snippetToDOM(boost::shared_ptr<ChatSnippet> snippet);
bool viewReady_;
+ bool isAtBottom_;
QtWebView* webView_;
QWebPage* webPage_;
QList<boost::shared_ptr<ChatSnippet> > queuedSnippets_;