[prev in list] [next in list] [prev in thread] [next in thread] 

List:       atlantik-devel
Subject:    [atlantik-cvs] CVS: kdegames/atlantik/client monopigator.cpp,1.9,1.10 monopigator.h,1.8,1.9 selectse
From:       kde () office ! kde ! org
Date:       2003-01-07 22:52:07
[Download RAW message or body]

Update of /home/kde/kdegames/atlantik/client
In directory office:/tmp/cvs-serv19754/client

Modified Files:
	monopigator.cpp monopigator.h selectserver_widget.cpp 
	selectserver_widget.h 
Log Message:
clear the listview in the correct place

Index: monopigator.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/monopigator.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- monopigator.cpp	29 Jun 2002 12:51:33 -0000	1.9
+++ monopigator.cpp	7 Jan 2003 22:52:04 -0000	1.10
@@ -61,8 +61,6 @@
 			if (eTop.tagName() != "monopigator")
 				return;
 
-			emit monopigatorClear();
-
 			QDomNode n = eTop.firstChild();
 			while(!n.isNull())
 			{

Index: monopigator.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/monopigator.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- monopigator.h	29 Jun 2002 12:51:33 -0000	1.8
+++ monopigator.h	7 Jan 2003 22:52:04 -0000	1.9
@@ -32,7 +32,6 @@
 	void loadData(const KURL &);
 
 signals:
-	void monopigatorClear();
 	void monopigatorAdd(QString host, QString port, QString version, int users);
 	void finished();
 

Index: selectserver_widget.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/selectserver_widget.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- selectserver_widget.cpp	7 Jan 2003 22:23:31 -0000	1.19
+++ selectserver_widget.cpp	7 Jan 2003 22:52:04 -0000	1.20
@@ -81,7 +81,6 @@
 	// Monopigator
 	m_monopigator = new Monopigator();
 
-	connect(m_monopigator, SIGNAL(monopigatorClear()), this, \
SLOT(slotMonopigatorClear()));  connect(m_monopigator, SIGNAL(monopigatorAdd(QString, \
QString, QString, int)), this, SLOT(slotMonopigatorAdd(QString, QString, QString, \
int)));  connect(m_monopigator, SIGNAL(finished()), SLOT(monopigatorFinished()));
 
@@ -114,16 +113,6 @@
 	m_localSocket->startAsyncConnect();
 }
 
-void SelectServer::slotMonopigatorClear()
-{
-	m_serverList->clear();
-	if (m_localServerAvailable)
-		slotLocalConnected();
-
-	validateConnectButton();
-//	emit statusChanged();
-}
-
 void SelectServer::slotMonopigatorAdd(QString host, QString port, QString version, \
int users)  {
 	QListViewItem *item = new QListViewItem(m_serverList, host, version, (users == -1) \
? i18n("unknown") : QString::number(users), port); @@ -190,6 +179,9 @@
 void SelectServer::slotRefresh()
 {
 	m_localServerAvailable = false;
+
+	m_serverList->clear();
+	validateConnectButton();
 
 	checkLocalServer();
 	initMonopigator();

Index: selectserver_widget.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/selectserver_widget.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- selectserver_widget.h	7 Jan 2003 22:23:31 -0000	1.10
+++ selectserver_widget.h	7 Jan 2003 22:52:04 -0000	1.11
@@ -46,7 +46,6 @@
 		void validateRadioButtons();
 		void validateConnectButton();
 
-		void slotMonopigatorClear();
 		void slotMonopigatorAdd(QString host, QString port, QString version, int users);
 		void slotListClicked(QListViewItem *);
 

_______________________________________________
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