From 8bce198c48d0d112d40932892a928d13e9f17ebd Mon Sep 17 00:00:00 2001 From: John Fultz Date: Mon, 14 Jan 2019 01:39:32 -0600 Subject: 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:". --- quacker/rackdisplay.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'quacker') 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); } -- cgit v1.2.3