[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui trade_widget.cpp, 1.46, 1.47
[email protected] Thu, 14 Oct 2004 03:28:24 +0200
| Newsgroups | gmane.comp.kde.devel.atlantik |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/kde/kdegames/atlantik/libatlantikui
In directory office:/tmp/cvs-serv13471/libatlantikui
Modified Files:
trade_widget.cpp
Log Message:
bugfix: show correct amount of players in trade widget
Index: trade_widget.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/trade_widget.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- trade_widget.cpp 10 Feb 2004 19:46:36 -0000 1.46
+++ trade_widget.cpp 14 Oct 2004 01:28:22 -0000 1.47
@@ -143,7 +143,7 @@
m_status = new QLabel(this);
listCompBox->addWidget(m_status);
- m_status->setText(i18n("%1 out of %2 players accept current trade proposal.").arg(m_trade->acceptCount()).arg(m_trade->players().count()));
+ m_status->setText( i18n( "%1 out of %2 players accept current trade proposal." ).arg( m_trade->count( true ) ).arg( m_trade->count( false ) ) );
// mPlayerList->header()->hide();
// mPlayerList->setRootIsDecorated(true);
@@ -216,7 +216,7 @@
{
// TODO: add notification whether playerSelf has accepted or not and
// enable/disable accept button based on that
- m_status->setText(i18n("%1 out of %2 players accept current trade proposal.").arg(m_trade->acceptCount()).arg(m_trade->players().count()));
+ m_status->setText( i18n( "%1 out of %2 players accept current trade proposal." ).arg( m_trade->count( true ) ).arg( m_trade->count( false ) ) );
}
void TradeDisplay::playerChanged(Player *player)