[prev in list] [next in list] [prev in thread] [next in thread]
List: atlantik-devel
Subject: [atlantik-devel] CVS: kdegames/atlantik/libatlantikui board.cpp,1.82,1.83 board.h,1.52,1.53 display_
From: kde () office ! kde ! org
Date: 2002-07-01 16:23:42
[Download RAW message or body]
Update of /home/kde/kdegames/atlantik/libatlantikui
In directory office:/tmp/cvs-serv4666/libatlantikui
Modified Files:
board.cpp board.h display_widget.cpp
Log Message:
fix tax buttons: they work now ;)
Index: board.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/board.cpp,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- board.cpp 2002/07/01 08:43:43 1.82
+++ board.cpp 2002/07/01 16:23:33 1.83
@@ -393,9 +393,13 @@
if (m_center != 0)
delete m_center;
- m_center = new BoardDisplay(caption, body, this);
+
+ BoardDisplay *display = new BoardDisplay(caption, body, this);
+ m_center = display;
m_gridLayout->addMultiCellWidget(m_center, 1, m_gridLayout->numRows()-2, 1, m_gridLayout->numCols()-2);
m_center->show();
+
+ connect(display, SIGNAL(buttonCommand(QString)), this, SIGNAL(buttonCommand(QString)));
// QTimer::singleShot(3000, this, SLOT(displayCenter()));
}
Index: board.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/board.h,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- board.h 2002/07/01 08:43:43 1.52
+++ board.h 2002/07/01 16:23:33 1.53
@@ -61,6 +61,7 @@
signals:
void tokenConfirmation(Estate *estate);
+ void buttonCommand(QString command);
protected:
void resizeEvent(QResizeEvent *);
Index: display_widget.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/display_widget.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- display_widget.cpp 2002/07/01 08:43:43 1.9
+++ display_widget.cpp 2002/07/01 16:23:33 1.10
@@ -52,7 +52,8 @@
void BoardDisplay::buttonPressed()
{
- emit buttonCommand(m_buttonCommandMap[(QObject *)QObject::sender()]);
+ kdDebug() << "emiting button" << endl;
+ emit buttonCommand(QString(m_buttonCommandMap[(QObject *)QObject::sender()]));
}
void BoardDisplay::slotClicked()
_______________________________________________
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