diff options
Diffstat (limited to 'Swift/QtUI/QtChatView.h')
-rw-r--r-- | Swift/QtUI/QtChatView.h | 4 |
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_; |