Diffstat (limited to 'noncore/settings/networksettings/ppp/edit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/edit.cpp | 54 |
1 files changed, 29 insertions, 25 deletions
diff --git a/noncore/settings/networksettings/ppp/edit.cpp b/noncore/settings/networksettings/ppp/edit.cpp index 6132b80..eee643d 100644 --- a/noncore/settings/networksettings/ppp/edit.cpp +++ b/noncore/settings/networksettings/ppp/edit.cpp | |||
@@ -73,3 +73,3 @@ DialWidget::DialWidget( QWidget *parent, bool isnewaccount, const char *name ) | |||
73 | numbers = new QListBox(this); | 73 | numbers = new QListBox(this); |
74 | numbers->setMinimumSize(120, 70); | 74 | // numbers->setMinimumSize(120, 70); |
75 | lpn->addWidget(numbers); | 75 | lpn->addWidget(numbers); |
@@ -828,3 +828,4 @@ ScriptWidget::ScriptWidget( QWidget *parent, bool isnewaccount, const char *name | |||
828 | { | 828 | { |
829 | QVBoxLayout *tl = new QVBoxLayout(this, 0 );//, KDialog::spacingHint()); | 829 | |
830 | QVBoxLayout *tl = new QVBoxLayout(this, 0 ); | ||
830 | se = new ScriptEdit(this); | 831 | se = new ScriptEdit(this); |
@@ -834,16 +835,13 @@ ScriptWidget::ScriptWidget( QWidget *parent, bool isnewaccount, const char *name | |||
834 | // insert equal-sized buttons | 835 | // insert equal-sized buttons |
835 | QButtonGroup *bbox = new QButtonGroup(this); | 836 | QHBoxLayout *hl = new QHBoxLayout( this ); |
836 | add = new QPushButton( bbox, i18n("Add") ); | 837 | tl->addLayout( hl ); |
837 | bbox->insert(add); | 838 | add = new QPushButton( i18n("Add"), this ); |
839 | hl->addWidget( add ); | ||
838 | connect(add, SIGNAL(clicked()), SLOT(addButton())); | 840 | connect(add, SIGNAL(clicked()), SLOT(addButton())); |
839 | // bbox->addStretch(1); | 841 | insert = new QPushButton( i18n("Insert"), this ); |
840 | insert = new QPushButton( bbox, i18n("Insert") ); | 842 | hl->addWidget( insert ); |
841 | bbox->insert(insert); | ||
842 | connect(insert, SIGNAL(clicked()), SLOT(insertButton())); | 843 | connect(insert, SIGNAL(clicked()), SLOT(insertButton())); |
843 | // bbox->addStretch(1); | 844 | remove = new QPushButton( i18n("Remove"), this ); |
844 | remove = new QPushButton( bbox, i18n("Remove") ); | 845 | hl->addWidget( remove ); |
845 | bbox->insert(remove); | ||
846 | connect(remove, SIGNAL(clicked()), SLOT(removeButton())); | 846 | connect(remove, SIGNAL(clicked()), SLOT(removeButton())); |
847 | bbox->layout(); | ||
848 | tl->addWidget(bbox); | ||
849 | 847 | ||
@@ -852,10 +850,10 @@ ScriptWidget::ScriptWidget( QWidget *parent, bool isnewaccount, const char *name | |||
852 | stl = new QListBox(this); | 850 | stl = new QListBox(this); |
853 | stl->setVScrollBarMode( QScrollView::AlwaysOff ); | 851 | // stl->setVScrollBarMode( QScrollView::AlwaysOff ); |
854 | connect(stl, SIGNAL(highlighted(int)), SLOT(stlhighlighted(int))); | 852 | connect(stl, SIGNAL(highlighted(int)), SLOT(stlhighlighted(int))); |
855 | stl->setMinimumSize(QSize(70, 140)); | 853 | // stl->setMinimumSize(QSize(70, 140)); |
856 | 854 | ||
857 | sl = new QListBox(this); | 855 | sl = new QListBox(this); |
858 | sl->setVScrollBarMode( QScrollView::AlwaysOff ); | 856 | // sl->setVScrollBarMode( QScrollView::AlwaysOff ); |
859 | connect(sl, SIGNAL(highlighted(int)), SLOT(slhighlighted(int))); | 857 | connect(sl, SIGNAL(highlighted(int)), SLOT(slhighlighted(int))); |
860 | sl->setMinimumSize(QSize(150, 140)); | 858 | // sl->setMinimumSize(QSize(150, 140)); |
861 | 859 | ||
@@ -1156,15 +1154,21 @@ void ScriptWidget::removeButton() { | |||
1156 | PhoneNumberDialog::PhoneNumberDialog(QWidget *parent) | 1154 | PhoneNumberDialog::PhoneNumberDialog(QWidget *parent) |
1157 | : QDialog(parent,"PhoneNumberDialog",true) { | 1155 | : QDialog(parent,"PhoneNumberDialog",true) |
1156 | { | ||
1158 | setCaption( i18n("Add Phone Number") ); | 1157 | setCaption( i18n("Add Phone Number") ); |
1159 | // KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon()); | ||
1160 | 1158 | ||
1161 | QHBox *hbox = new QHBox(this); | 1159 | |
1160 | QVBoxLayout *layout = new QVBoxLayout( this ); | ||
1161 | layout->setSpacing( 3 ); | ||
1162 | layout->setMargin( 3 ); | ||
1163 | |||
1164 | // QHBox *hbox = new QHBox(this); | ||
1162 | // setMainWidget(hbox); | 1165 | // setMainWidget(hbox); |
1163 | 1166 | ||
1164 | hbox->setSpacing( 2 );//KDialog::spacingHint()); | 1167 | // hbox->setSpacing( 2 );//KDialog::spacingHint()); |
1165 | 1168 | ||
1166 | new QLabel(i18n("Enter a phone number:"), hbox); | 1169 | QLabel *label = new QLabel(this, tr("Enter a phone number:")); |
1170 | layout->addWidget( label ); | ||
1167 | 1171 | ||
1168 | le = new QLineEdit(hbox); | 1172 | le = new QLineEdit(this, "lineEdit"); |
1169 | // le->setMinimumWidth(125); | 1173 | layout->addWidget( le ); |
1170 | 1174 | ||
@@ -1176,3 +1180,3 @@ PhoneNumberDialog::PhoneNumberDialog(QWidget *parent) | |||
1176 | 1180 | ||
1177 | // enableButtonSeparator(true); | 1181 | |
1178 | } | 1182 | } |