Update of /home/kde/kdeaddons/atlantikdesigner/designer In directory office:/tmp/cvs-serv6999/atlantikdesigner/designer Modified Files: group.cpp Log Message: fix button order Index: group.cpp =================================================================== RCS file: /home/kde/kdeaddons/atlantikdesigner/designer/group.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- group.cpp 23 Jun 2003 04:21:27 -0000 1.10 +++ group.cpp 2 Jul 2004 18:55:48 -0000 1.11 @@ -40,12 +40,12 @@ QVBoxLayout *vlayout = new QVBoxLayout(hlayout, spacingHint()); colorGroupBox = new QVGroupBox(i18n("&Colors"), page); vlayout->addWidget(colorGroupBox); - + (void) new QLabel(i18n("Foreground:"), colorGroupBox); fgButton = new KColorButton(colorGroupBox, "Foreground Button"); connect(fgButton, SIGNAL(changed(const QColor &)), this, SLOT(fgChanged(const QColor &))); connect(fgButton, SIGNAL(changed(const QColor &)), this, SIGNAL(changed())); - + (void) new QLabel(i18n("Background:"), colorGroupBox); bgButton = new KColorButton(colorGroupBox, "Background Button"); connect(bgButton, SIGNAL(changed(const QColor &)), this, SLOT(bgChanged(const QColor &))); @@ -90,14 +90,14 @@ mathLayout->addWidget(rentMathEdit, 1, 1); QHBoxLayout *buttonlayout = new QHBoxLayout(vlayout, spacingHint()); - removeB = new KPushButton(i18n("&Remove"), page); - buttonlayout->addWidget(removeB); - connect(removeB, SIGNAL(clicked()), this, SLOT(remove())); - KPushButton *addB = new KPushButton(i18n("&Add..."), page); buttonlayout->addWidget(addB); connect(addB, SIGNAL(clicked()), this, SLOT(add())); + removeB = new KPushButton(i18n("&Remove"), page); + buttonlayout->addWidget(removeB); + connect(removeB, SIGNAL(clicked()), this, SLOT(remove())); + selectionChanged(); } @@ -115,7 +115,7 @@ return; } } - + mylist.append(ConfigEstateGroup(name)); groups->insertItem(name); @@ -169,11 +169,11 @@ QListBoxItem *item = groups->item(groups->currentItem()); if (!item) return 0; - + for (ConfigEstateGroupList::Iterator it = mylist.begin(); it != mylist.end(); ++it) if ((*it).name() == item->text()) return &(*it); - + return 0; } _______________________________________________ atlantik-cvs mailing list atlantik-cvs@kde.org https://mail.kde.org/mailman/listinfo/atlantik-cvs