summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2013-10-16 21:19:19 (GMT)
committerSwift Review <review@swift.im>2013-10-26 15:35:24 (GMT)
commitc041a9ac96893d64f1b656c9ecb7f03eed1c310f (patch)
tree44bb5bf804b8aa810440593f71b15da60a9ba5b0
parent806157b94327f8c41f5e4402a73608cd9e5225b0 (diff)
downloadswift-c041a9ac96893d64f1b656c9ecb7f03eed1c310f.zip
swift-c041a9ac96893d64f1b656c9ecb7f03eed1c310f.tar.bz2
VCard: Set a adequate initial size for VCard window.
Change-Id: If2723134132d2e766149b89170e9d3452a28c535 License: This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.
-rw-r--r--Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp b/Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp
index 160482e..ee3ef96 100644
--- a/Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp
+++ b/Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp
@@ -176,6 +176,7 @@ void QtVCardWidget::setVCard(VCard::ref vcard) {
}
setEditable(editable);
+ window()->resize(sizeHint().width(), size().height() < 200 ? 200 : size().height());
}
VCard::ref QtVCardWidget::getVCard() {