Another patch
Albert 'TSDgeos' Astals Cid <[email protected]>
| Newsgroups | gmane.comp.kde.devel.atlantik |
|---|---|
| Message-ID | <[email protected]> |
This one fixes two little more things. Two QLayout "unnamed" added to SelectConfiguration "selectConfiguration", which already has a layout that appear when in the Game Configuration section and a problem regarding "Select Token" button, if you click it, close the dialog using the [x], the dialog doesn't reappears when you click "Select Token" button again. I attach the diff. _______________________________________________ atlantik-devel mailing list [email protected] http://mail.kde.org/mailman/listinfo/atlantik-devel
diff
(text/x-diff, 1.8 KB)
? diff
Index: selectconfiguration_widget.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/selectconfiguration_widget.cpp,v
retrieving revision 1.35
diff -u -r1.35 selectconfiguration_widget.cpp
--- selectconfiguration_widget.cpp 18 May 2003 19:56:00 -0000 1.35
+++ selectconfiguration_widget.cpp 3 Jun 2003 20:54:27 -0000
@@ -28,7 +28,7 @@
#include <player.h>
-#include "tokenwidget.h"
+#include "tokenwidget.h"
#include "selectconfiguration_widget.moc"
SelectConfiguration::SelectConfiguration(QWidget *parent, const char *name) : QWidget(parent, name)
@@ -40,10 +40,11 @@
// Game configuration.
m_configBox = new QVGroupBox(i18n("Game Configuration"), this, "configBox");
- m_mainLayout->addWidget(m_configBox);
+ m_mainLayout->addWidget(m_configBox);
// Player buttons.
- QHBoxLayout *playerButtons = new QHBoxLayout(this, 0, KDialog::spacingHint());
+ QHBoxLayout *playerButtons = new QHBoxLayout(m_mainLayout, KDialog::spacingHint());
+ playerButtons->setMargin(0);
m_mainLayout->addItem(playerButtons);
playerButtons->addItem(new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum));
@@ -57,7 +58,8 @@
m_mainLayout->addItem(new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding));
// Server buttons.
- QHBoxLayout *serverButtons = new QHBoxLayout(this, 0, KDialog::spacingHint());
+ QHBoxLayout *serverButtons = new QHBoxLayout(m_mainLayout, KDialog::spacingHint());
+ serverButtons->setMargin(0);
m_mainLayout->addItem(serverButtons);
m_backButton = new KPushButton(SmallIcon("back"), i18n("Leave Game"), this);
@@ -92,7 +94,10 @@
void SelectConfiguration::slotTokenButtonClicked()
{
if (m_tokenWidget)
+ {
+ m_tokenWidget->show();
return;
+ }
m_tokenWidget = new TokenWidget(0);
m_tokenWidget->show();