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

List:       kde-commits
Subject:    KDE/kdenetwork/kppp
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2007-11-25 18:47:38
Message-ID: 1196016458.685991.4492.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 741486 by krake:

Fixing layouting isses with widgets of "Edit..." tab dialogs


 M  +10 -1     edit.cpp  
 M  +10 -0     general.cpp  


--- trunk/KDE/kdenetwork/kppp/edit.cpp #741485:741486
@@ -50,6 +50,10 @@
 DialWidget::DialWidget( QWidget *parent, bool isnewaccount )
   : QWidget(parent)
 {
+  QVBoxLayout *topLayout = new QVBoxLayout(parent);
+  topLayout->setSpacing(KDialog::spacingHint());
+  topLayout->addWidget(this);
+
   QGridLayout *tl = new QGridLayout(this );
   tl->setSpacing( KDialog::spacingHint() );
 
@@ -593,6 +597,10 @@
 DNSWidget::DNSWidget( QWidget *parent, bool isnewaccount )
   : QWidget(parent)
 {
+  QVBoxLayout *topLayout = new QVBoxLayout(parent);
+  topLayout->setSpacing(KDialog::spacingHint());
+  topLayout->addWidget(this);
+
   //  box = new QGroupBox(this);
   QGridLayout *tl = new QGridLayout(this );
   tl->setSpacing( KDialog::spacingHint() );
@@ -826,9 +834,10 @@
 
   QWidget *gateBox = new QWidget(box);
   QHBoxLayout *hboxLayout1 = new QHBoxLayout(gateBox);
-  gateBox->setLayout(hboxLayout1);
   gate_label = new QLabel(i18n("Gateway &IP address:"), gateBox);
+  hboxLayout1->addWidget(gate_label);
   gatewayaddr = new IPLineEdit(gateBox);
+  hboxLayout1->addWidget(gatewayaddr);
   gate_label->setBuddy(gatewayaddr);
 
   defaultroute = new QCheckBox(i18n("&Assign the default route to this gateway"),
--- trunk/KDE/kdenetwork/kppp/general.cpp #741485:741486
@@ -217,6 +217,11 @@
 ModemWidget::ModemWidget(QWidget *parent, bool isnewmodem)
   : QWidget(parent)
 {
+  QVBoxLayout *topLayout = new QVBoxLayout(parent);
+  topLayout->setSpacing(KDialog::spacingHint());
+  topLayout->setMargin(0);
+  topLayout->addWidget(this);
+
   QGridLayout *tl = new QGridLayout(this );
   tl->setSpacing( KDialog::spacingHint() );
 
@@ -461,6 +466,11 @@
 {
   setObjectName(name);
 
+  QVBoxLayout *topLayout = new QVBoxLayout(parent);
+  topLayout->setSpacing(KDialog::spacingHint());
+  topLayout->setMargin(0);
+  topLayout->addWidget(this);
+
   QVBoxLayout *l1 = new QVBoxLayout(this);
   l1->setSpacing(KDialog::spacingHint());
   l1->setMargin(0);
[prev in list] [next in list] [prev in thread] [next in thread] 

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