diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2012-09-27 10:20:43 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2012-10-02 10:17:03 +0200 |
commit | dff0761406c89ece9a562bbac02323a886ed3e34 (patch) | |
tree | 0ebf7e63cfd75fac8660f53e073a7a3cc10e8383 /src/plugins/qnx/blackberrydeviceconfigurationwidget.cpp | |
parent | 30b553466797ddf7e3252f1cab2d02d6ea0bee5a (diff) | |
download | qt-creator-dff0761406c89ece9a562bbac02323a886ed3e34.tar.gz |
Device support: Ensure UI changes are always propagated to the device.
The original problem was that we cannot assume
QLineEdit::editingFinished() is emitted when clicking a button while a
QLineEdit has the focus (QTCREATORBUG-1675). The original solution to
that introduced two more bugs, namely that changes are not visible in
other tabs until the dialog has been closed and reopened and that
pressing "Apply" also applies changes that are done later and which the
user intends to revert by by pressing "Cancel" (QTCREATORBUG-7288).
This patch intends to fix all of these issues.
Task-number: QTCREATORBUG-1675
Task-number: QTCREATORBUG-7288
Change-Id: I569a89f64843e08ee389e3eba6bdcb473ba22393
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/qnx/blackberrydeviceconfigurationwidget.cpp')
-rw-r--r-- | src/plugins/qnx/blackberrydeviceconfigurationwidget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/qnx/blackberrydeviceconfigurationwidget.cpp b/src/plugins/qnx/blackberrydeviceconfigurationwidget.cpp index c4d94d9023..0cc62a6a69 100644 --- a/src/plugins/qnx/blackberrydeviceconfigurationwidget.cpp +++ b/src/plugins/qnx/blackberrydeviceconfigurationwidget.cpp @@ -93,6 +93,14 @@ void BlackBerryDeviceConfigurationWidget::debugTokenEditingFinished() deviceConfiguration()->setDebugToken(ui->debugToken->path()); } +void BlackBerryDeviceConfigurationWidget::updateDeviceFromUi() +{ + hostNameEditingFinished(); + passwordEditingFinished(); + keyFileEditingFinished(); + debugTokenEditingFinished(); +} + void BlackBerryDeviceConfigurationWidget::initGui() { ui->debugToken->setExpectedKind(Utils::PathChooser::File); |