diff options
author | John Fultz <jfultz@wolfram.com> | 2019-01-14 01:39:32 -0600 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2019-01-14 01:39:32 -0600 |
commit | 8bce198c48d0d112d40932892a928d13e9f17ebd (patch) | |
tree | 1430e8def10de62f032b4011b032335d03b28894 /quacker/rackdisplay.cpp | |
parent | 0f9bcf3239e39db6eca8fb9ee8a12dd1395a9920 (diff) |
Remove player name from rack label text.
The player name in the label in the rack text
was being updated after every play. Not
unreasonable, but this was the principle
cause for layout elements bouncing horizontally
across the window when plays alternated.
So, now, it just has the fixed text "Rack:".
Diffstat (limited to 'quacker/rackdisplay.cpp')
-rw-r--r-- | quacker/rackdisplay.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/quacker/rackdisplay.cpp b/quacker/rackdisplay.cpp index c8bd82c..5910d75 100644 --- a/quacker/rackdisplay.cpp +++ b/quacker/rackdisplay.cpp @@ -43,7 +43,7 @@ QuickEntryRack::QuickEntryRack(QWidget *parent) QPushButton *shuffleButton = new QPushButton(tr("Shu&ffle")); connect(shuffleButton, SIGNAL(clicked()), this, SLOT(shuffle())); - m_label = new QLabel(tr("&Rack")); + m_label = new QLabel(tr("&Rack:")); m_label->setBuddy(m_lineEdit); textLayout->addWidget(m_label, 1); textLayout->addWidget(m_lineEdit, 4); @@ -71,7 +71,6 @@ void QuickEntryRack::positionChanged(const Quackle::GamePosition &position) m_rackTiles = position.currentPlayer().rack().tiles(); QString tiles = QuackleIO::Util::letterStringToQString(m_rackTiles); m_lineEdit->setText(tiles); - m_label->setText(QString("%1's &rack:").arg(QuackleIO::Util::uvStringToQString(position.currentPlayer().name()))); m_tiles->setText(m_rackTiles); } |