[prev in list] [next in list] [prev in thread] [next in thread]
List: atlantik-devel
Subject: [atlantik-cvs] CVS: kdegames/atlantik/client selectconfiguration_widget.cpp,1.23,1.24 selectconfigur
From: kde () office ! kde ! org
Date: 2002-08-01 15:16:28
[Download RAW message or body]
Update of /home/kde/kdegames/atlantik/client
In directory office:/tmp/cvs-serv13686
Modified Files:
selectconfiguration_widget.cpp selectconfiguration_widget.h
selectgame_widget.cpp selectgame_widget.h
selectserver_widget.cpp selectserver_widget.h
Log Message:
- You want to connect to clicked() instead of pressed() here
Index: selectconfiguration_widget.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/selectconfiguration_widget.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- selectconfiguration_widget.cpp 2002/08/01 15:08:08 1.23
+++ selectconfiguration_widget.cpp 2002/08/01 15:16:25 1.24
@@ -46,7 +46,7 @@
m_playerList->setFullWidth(true);
// m_mainLayout->addWidget(m_playerList);
- connect(m_playerList, SIGNAL(doubleClicked(QListViewItem *)), this, \
SLOT(connectPressed())); + connect(m_playerList, SIGNAL(doubleClicked(QListViewItem \
*)), this, SLOT(connectClicked()));
// Game configuration.
m_configBox = new QVGroupBox(i18n("Game Configuration"), this, "configBox");
@@ -58,14 +58,14 @@
m_backButton = new KPushButton(SmallIcon("back"), i18n("Leave game"), this);
buttonBox->addWidget(m_backButton);
- connect(m_backButton, SIGNAL(pressed()), this, SIGNAL(leaveGame()));
+ connect(m_backButton, SIGNAL(clicked()), this, SIGNAL(leaveGame()));
buttonBox->addItem(new QSpacerItem(20, 20, QSizePolicy::Expanding, \
QSizePolicy::Minimum));
m_connectButton = new KPushButton(SmallIcon("forward"), i18n("Start Game"), this);
buttonBox->addWidget(m_connectButton);
- connect(m_connectButton, SIGNAL(pressed()), this, SLOT(connectPressed()));
+ connect(m_connectButton, SIGNAL(clicked()), this, SLOT(connectClicked()));
// Status indicator
status_label = new QLabel(this);
@@ -120,7 +120,7 @@
// emit statusChanged();
}
-void SelectConfiguration::connectPressed()
+void SelectConfiguration::connectClicked()
{
emit startGame();
return;
Index: selectconfiguration_widget.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/selectconfiguration_widget.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- selectconfiguration_widget.h 2002/07/21 20:10:15 1.11
+++ selectconfiguration_widget.h 2002/08/01 15:16:25 1.12
@@ -46,7 +46,7 @@
void slotPlayerListDel(QString playerId);
private slots:
- void connectPressed();
+ void connectClicked();
void slotClicked();
void gameOption(QString title, QString type, QString value, QString edit, QString \
command); void optionChanged();
Index: selectgame_widget.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/selectgame_widget.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- selectgame_widget.cpp 2002/08/01 15:08:08 1.20
+++ selectgame_widget.cpp 2002/08/01 15:16:25 1.21
@@ -43,7 +43,7 @@
// m_mainLayout->addWidget(m_gameList);
connect(m_gameList, SIGNAL(clicked(QListViewItem *)), this, \
SLOT(validateConnectButton()));
- connect(m_gameList, SIGNAL(doubleClicked(QListViewItem *)), this, \
SLOT(connectPressed())); + connect(m_gameList, SIGNAL(doubleClicked(QListViewItem \
*)), this, SLOT(connectClicked())); connect(m_gameList, \
SIGNAL(rightButtonClicked(QListViewItem *, const QPoint &, int)), this, \
SLOT(validateConnectButton())); connect(m_gameList, \
SIGNAL(selectionChanged(QListViewItem *)), this, SLOT(validateConnectButton()));
@@ -53,7 +53,7 @@
KPushButton *backButton = new KPushButton(SmallIcon("back"), i18n("Server List"), \
this); buttonBox->addWidget(backButton);
- connect(backButton, SIGNAL(pressed()), this, SIGNAL(leaveServer()));
+ connect(backButton, SIGNAL(clicked()), this, SIGNAL(leaveServer()));
buttonBox->addItem(new QSpacerItem(20, 20, QSizePolicy::Expanding, \
QSizePolicy::Minimum));
@@ -61,7 +61,7 @@
m_connectButton->setEnabled(false);
buttonBox->addWidget(m_connectButton);
- connect(m_connectButton, SIGNAL(pressed()), this, SLOT(connectPressed()));
+ connect(m_connectButton, SIGNAL(clicked()), this, SLOT(connectClicked()));
// Status indicator
m_statusLabel = new QLabel(this);
@@ -144,7 +144,7 @@
m_connectButton->setEnabled(false);
}
-void SelectGame::connectPressed()
+void SelectGame::connectClicked()
{
if (QListViewItem *item = m_gameList->selectedItem())
{
Index: selectgame_widget.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/selectgame_widget.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- selectgame_widget.h 2002/07/26 05:34:48 1.13
+++ selectgame_widget.h 2002/08/01 15:16:25 1.14
@@ -45,7 +45,7 @@
void slotGameListDel(QString gameId);
private slots:
- void connectPressed();
+ void connectClicked();
signals:
void joinGame(int gameId);
Index: selectserver_widget.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/selectserver_widget.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- selectserver_widget.cpp 2002/08/01 15:08:08 1.16
+++ selectserver_widget.cpp 2002/08/01 15:16:25 1.17
@@ -53,7 +53,7 @@
connect(m_serverList, SIGNAL(clicked(QListViewItem *)), this, \
SLOT(validateConnectButton())); // connect(m_serverList, \
SIGNAL(clicked(QListViewItem *)), this, \
SLOT(slotListClicked(QListViewItem *)));
- connect(m_serverList, SIGNAL(doubleClicked(QListViewItem *)), this, \
SLOT(connectPressed())); + connect(m_serverList, SIGNAL(doubleClicked(QListViewItem \
*)), this, SLOT(connectClicked())); connect(m_serverList, \
SIGNAL(rightButtonClicked(QListViewItem *, const QPoint &, int)), this, \
SLOT(validateConnectButton())); connect(m_serverList, \
SIGNAL(selectionChanged(QListViewItem *)), this, SLOT(validateConnectButton()));
@@ -65,13 +65,13 @@
m_refreshButton = new KPushButton(BarIcon("reload", KIcon::SizeSmall), \
i18n("Refresh"), this); buttonBox->addWidget(m_refreshButton);
- connect(m_refreshButton, SIGNAL(pressed()), this, SLOT(initMonopigator()));
+ connect(m_refreshButton, SIGNAL(clicked()), this, SLOT(initMonopigator()));
m_connectButton = new KPushButton(BarIcon("forward", KIcon::SizeSmall), \
i18n("Connect"), this); m_connectButton->setEnabled(false);
buttonBox->addWidget(m_connectButton);
- connect(m_connectButton, SIGNAL(pressed()), this, SLOT(connectPressed()));
+ connect(m_connectButton, SIGNAL(clicked()), this, SLOT(connectClicked()));
// Status indicator
status_label = new QLabel(this);
@@ -154,7 +154,7 @@
m_onlineGameButton->toggle();
}
-void SelectServer::connectPressed()
+void SelectServer::connectClicked()
{
if (QListViewItem *item = m_serverList->selectedItem())
emit serverConnect(item->text(0), item->text(3).toInt());
Index: selectserver_widget.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/selectserver_widget.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- selectserver_widget.h 2002/06/29 12:51:33 1.8
+++ selectserver_widget.h 2002/08/01 15:16:25 1.9
@@ -50,7 +50,7 @@
void slotListClicked(QListViewItem *);
private slots:
- void connectPressed();
+ void connectClicked();
void monopigatorFinished();
signals:
_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic