[prev in list] [next in list] [prev in thread] [next in thread]
List: atlantik-devel
Subject: [atlantik-devel] Another patch
From: "Albert 'TSDgeos' Astals Cid" <tsdgeos () terra ! es>
Date: 2003-06-03 20:56:50
[Download RAW message or body]
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.
["diff" (text/x-diff)]
? 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();
_______________________________________________
atlantik-devel mailing list
atlantik-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic