From kde-commits Sun Nov 25 18:47:38 2007 From: Kevin Krammer Date: Sun, 25 Nov 2007 18:47:38 +0000 To: kde-commits Subject: KDE/kdenetwork/kppp Message-Id: <1196016458.685991.4492.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=119601649126650 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);