diff options
author | Tobias Markmann <tm@ayena.de> | 2015-04-03 11:14:14 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2015-04-03 11:14:14 (GMT) |
commit | b41695a739c2b75973b8d22e2be39add7051d076 (patch) | |
tree | 9772a7626a65bfbcc539724cdbb0fe3fdb0915ec /Swift/QtUI/QtVCardWidget/QtVCardGeneralField.h | |
parent | ffe36120a0ba5a512dc694955940ce4a8230a407 (diff) | |
download | swift-b41695a739c2b75973b8d22e2be39add7051d076.zip swift-b41695a739c2b75973b8d22e2be39add7051d076.tar.bz2 |
Elide rightmost fields in the VCard dialog
This patch changes the rightmost widget in the VCard fields from a
QLabel to a QtElidingLabel.
It also improves the spacing in the header in VCard profile dialog.
Test-Information:
Tested on OS X 10.9.5 with Qt 5.4.1.
Change-Id: I771ddb555c5990c67550d9e36f001e57644712da
Diffstat (limited to 'Swift/QtUI/QtVCardWidget/QtVCardGeneralField.h')
-rw-r--r-- | Swift/QtUI/QtVCardWidget/QtVCardGeneralField.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Swift/QtUI/QtVCardWidget/QtVCardGeneralField.h b/Swift/QtUI/QtVCardWidget/QtVCardGeneralField.h index 9bb7094..6583d12 100644 --- a/Swift/QtUI/QtVCardWidget/QtVCardGeneralField.h +++ b/Swift/QtUI/QtVCardWidget/QtVCardGeneralField.h @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2014 Isode Limited. + * Copyright (c) 2014-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ @@ -17,15 +17,17 @@ #include <QLabel> #include <QWidget> -#include "QtCloseButton.h" -#include "QtTagComboBox.h" +#include <Swift/QtUI/QtVCardWidget/QtCloseButton.h> +#include <Swift/QtUI/QtVCardWidget/QtTagComboBox.h> namespace Swift { +class QtElidingLabel; + /* * covers features like: * - preffered (star ceckbox) - * - combo check boxh + * - combo check box * - label * - remove button */ @@ -84,7 +86,7 @@ class QtVCardGeneralField : public QWidget { QLabel* label; QString labelText; QtTagComboBox* tagComboBox; - QLabel* tagLabel; + QtElidingLabel* tagLabel; QtCloseButton* closeButton; }; |