diff options
author | Tobias Markmann <tm@ayena.de> | 2015-05-20 20:51:16 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2015-05-20 20:51:16 (GMT) |
commit | 79af3d5aed669839a916f8973953b608e4177e9b (patch) | |
tree | 9e87ae9385d0b2848ae8c6a4f8c49adefc1f270a | |
parent | ed23f4578d6a5776b77e743ad54802d55f54f7e1 (diff) | |
download | swift-79af3d5aed669839a916f8973953b608e4177e9b.zip swift-79af3d5aed669839a916f8973953b608e4177e9b.tar.bz2 |
Limit Qt placeholder text workaround to affected versions
The workaround was fixed with QTBUG-33237 and is not needed anymore.
Test-Information:
Tested on OS X 10.9.5 with Qt 5.4.0.
Change-Id: Ie6a101749c816a082f31ac83085e098b3aa328aa
-rw-r--r-- | Swift/QtUI/QtJoinMUCWindow.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Swift/QtUI/QtJoinMUCWindow.cpp b/Swift/QtUI/QtJoinMUCWindow.cpp index 537b861..d111756 100644 --- a/Swift/QtUI/QtJoinMUCWindow.cpp +++ b/Swift/QtUI/QtJoinMUCWindow.cpp @@ -1,14 +1,16 @@ /* - * Copyright (c) 2010-2012 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ -#include "QtJoinMUCWindow.h" +#include <Swift/QtUI/QtJoinMUCWindow.h> + #include <boost/smart_ptr/make_shared.hpp> -#include <Swift/Controllers/UIEvents/UIEventStream.h> + #include <Swift/Controllers/UIEvents/JoinMUCUIEvent.h> +#include <Swift/Controllers/UIEvents/UIEventStream.h> namespace Swift { @@ -21,10 +23,13 @@ QtJoinMUCWindow::QtJoinMUCWindow(UIEventStream* uiEventStream) : uiEventStream(u connect(ui.room, SIGNAL(returnPressed()), this, SLOT(handleJoin())); connect(ui.searchButton, SIGNAL(clicked()), this, SLOT(handleSearch())); connect(ui.joinButton, SIGNAL(clicked()), this, SLOT(handleJoin())); +#if QT_VERSION < 0x050200 // FIXME: Temporarily set focus on the nickName field first, so that the // placeholder for the room is visible. This is just because Qt hides // the placeholder when a widget is focused for some reason. + // Tracked upstream as QTBUG-33237 and fixed with Qt 5.2.0. ui.nickName->setFocus(); +#endif ui.instantRoom->setChecked(true); ui.nickName->setValidator(new NickValidator(this)); } |