summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-05-12 17:51:41 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-05-12 17:51:41 (GMT)
commit201e2a9a3a2d074166fb975277515a667e5cab4e (patch)
tree3f83500fa8e748d7405b5456a84ab9be1ea25a66 /Swift/QtUI/QtChatView.h
parent8a18d6692c246adf14a8b0aec270f9b96d1b4baf (diff)
downloadswift-201e2a9a3a2d074166fb975277515a667e5cab4e.zip
swift-201e2a9a3a2d074166fb975277515a667e5cab4e.tar.bz2
Allow Chat Window Font resizing
Resolves: #812 Release-Notes: It is now possible to resize the font in the chat window conversations.
Diffstat (limited to 'Swift/QtUI/QtChatView.h')
-rw-r--r--Swift/QtUI/QtChatView.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatView.h b/Swift/QtUI/QtChatView.h
index 8b8d330..eda7e42 100644
--- a/Swift/QtUI/QtChatView.h
+++ b/Swift/QtUI/QtChatView.h
@@ -37,6 +37,7 @@ namespace Swift {
signals:
void gotFocus();
+ void fontResized(int);
public slots:
void copySelectionToClipboard();
@@ -44,6 +45,9 @@ namespace Swift {
void handleLinkClicked(const QUrl&);
void handleKeyPressEvent(QKeyEvent* event);
void resetView();
+ void increaseFontSize(int numSteps = 1);
+ void decreaseFontSize();
+ void resizeFont(int fontSizeSteps);
private slots:
void handleViewLoadFinished(bool);
@@ -60,7 +64,7 @@ namespace Swift {
bool isAtBottom_;
QtWebView* webView_;
QWebPage* webPage_;
-
+ int fontSizeSteps_;
QtChatTheme* theme_;
QWebElement newInsertPoint_;
QWebElement lineSeparator_;