[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim] kaddressbook/xxport/vcard: Fix layout
From:       Montel Laurent <montel () kde ! org>
Date:       2015-06-30 20:52:47
Message-ID: E1ZA2WN-0005cx-UM () scm ! kde ! org
[Download RAW message or body]

Git commit 9506cc9f7bc67212335390abe92af0ea7c2e6128 by Montel Laurent.
Committed on 30/06/2015 at 20:51.
Pushed by mlaurent into branch 'master'.

Fix layout

M  +8    -4    kaddressbook/xxport/vcard/vcardexportselectionwidget.cpp

http://commits.kde.org/kdepim/9506cc9f7bc67212335390abe92af0ea7c2e6128

diff --git a/kaddressbook/xxport/vcard/vcardexportselectionwidget.cpp \
b/kaddressbook/xxport/vcard/vcardexportselectionwidget.cpp index 59965bc..7f2fa0c \
                100644
--- a/kaddressbook/xxport/vcard/vcardexportselectionwidget.cpp
+++ b/kaddressbook/xxport/vcard/vcardexportselectionwidget.cpp
@@ -28,10 +28,12 @@
 VCardExportSelectionWidget::VCardExportSelectionWidget(QWidget *parent)
     : QWidget(parent)
 {
-    QGridLayout *layout = new QGridLayout(this);
-
+    QVBoxLayout *mainLayout = new QVBoxLayout(this);
     QGroupBox *gbox = new QGroupBox(
         i18nc("@title:group", "Fields to be exported"), this);
+    mainLayout->addWidget(gbox);
+    QGridLayout *layout = new QGridLayout;
+    gbox->setLayout(layout);
     gbox->setFlat(true);
     layout->addWidget(gbox, 0, 0, 1, 2);
 
@@ -83,7 +85,9 @@ VCardExportSelectionWidget::VCardExportSelectionWidget(QWidget \
*parent)  gbox = new QGroupBox(
         i18nc("@title:group", "Export options"), this);
     gbox->setFlat(true);
-    layout->addWidget(gbox, 4, 0, 1, 2);
+    mainLayout->addWidget(gbox);
+    QHBoxLayout *gbLayout = new QHBoxLayout;
+    gbox->setLayout(gbLayout);
 
     mDisplayNameBox = new QCheckBox(i18nc("@option:check", "Display name as full \
name"), this);  mDisplayNameBox->setToolTip(
@@ -93,7 +97,7 @@ VCardExportSelectionWidget::VCardExportSelectionWidget(QWidget \
                *parent)
               "Check this box if you want to export the contact's display name "
               "in the vCard's full name field.  This may be required to get the "
               "name shown correctly in GMail or Android."));
-    layout->addWidget(mDisplayNameBox, 5, 0, 1, 2);
+    gbLayout->addWidget(mDisplayNameBox);
 
     readSettings();
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic