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/QtChatWindow.cpp
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/QtChatWindow.cpp')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index 95aecb7..b2644b2 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -97,12 +97,17 @@ QtChatWindow::QtChatWindow(const QString &contact, QtChatTheme* theme, UIEventSt
connect(qApp, SIGNAL(focusChanged(QWidget*, QWidget*)), this, SLOT(qAppFocusChanged(QWidget*, QWidget*)));
connect(messageLog_, SIGNAL(gotFocus()), input_, SLOT(setFocus()));
resize(400,300);
+ connect(messageLog_, SIGNAL(fontResized(int)), this, SIGNAL(fontResized(int)));
}
QtChatWindow::~QtChatWindow() {
}
+void QtChatWindow::handleFontResized(int fontSizeSteps) {
+ messageLog_->resizeFont(fontSizeSteps);
+}
+
void QtChatWindow::setTabComplete(TabComplete* completer) {
completer_ = completer;
}