summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2013-10-18 11:14:47 (GMT)
committerSwift Review <review@swift.im>2013-10-26 15:35:44 (GMT)
commit08289aadf4065e1c404af50e25ed511b2e839fdb (patch)
tree9dca27a5108406da1f062e20a985861e13db5f2b /Swift/QtUI/QtProfileWindow.cpp
parentc041a9ac96893d64f1b656c9ecb7f03eed1c310f (diff)
downloadswift-08289aadf4065e1c404af50e25ed511b2e839fdb.zip
swift-08289aadf4065e1c404af50e25ed511b2e839fdb.tar.bz2
VCard: Move 'Add Field' button inside the scroll view.
Change-Id: I1259e6de80a5c8781ba71dad1a52228f37a7ce7e License: This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.
Diffstat (limited to 'Swift/QtUI/QtProfileWindow.cpp')
-rw-r--r--Swift/QtUI/QtProfileWindow.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/Swift/QtUI/QtProfileWindow.cpp b/Swift/QtUI/QtProfileWindow.cpp
index b1cdd19..d0d1414 100644
--- a/Swift/QtUI/QtProfileWindow.cpp
+++ b/Swift/QtUI/QtProfileWindow.cpp
@@ -53,13 +53,10 @@ void QtProfileWindow::setEnabled(bool b) {
}
void QtProfileWindow::setEditable(bool b) {
- if (b) {
- ui->savePushButton->show();
- ui->vcard->setEditable(true);
- } else {
- ui->savePushButton->hide();
- ui->vcard->setEditable(false);
- }
+ ui->throbberLabel->setVisible(b);
+ ui->errorLabel->setVisible(b);
+ ui->savePushButton->setVisible(b);
+ ui->vcard->setEditable(b);
updateTitle();
}