mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-25 21:59:30 +01:00
RackWidget: set small margins and draw a border
This commit is contained in:
parent
272867c3ad
commit
b5a473a2af
2 changed files with 2 additions and 1 deletions
|
@ -167,7 +167,6 @@ MainWindow::MainWindow(QWidget *iParent)
|
|||
// Rack widget below the board (hidden until there is a game)
|
||||
m_rackWidget = new RackWidget;
|
||||
m_rackWidget->setPlayModel(&m_playModel);
|
||||
m_rackWidget->setFrameStyle(QFrame::WinPanel | QFrame::Raised);
|
||||
QObject::connect(m_rackWidget, SIGNAL(gameUpdated()),
|
||||
m_gameSignals, SLOT(notifyGameUpdated()));
|
||||
QObject::connect(m_gameSignals, SIGNAL(gameChanged(const PublicGame*)),
|
||||
|
|
|
@ -50,9 +50,11 @@ RackWidget::RackWidget(QWidget *parent)
|
|||
m_dragOrigin(-1)
|
||||
{
|
||||
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
setFrameStyle(QFrame::Box | QFrame::Raised);
|
||||
|
||||
TileLayout *layout = new TileLayout(1);
|
||||
layout->setSpacing(5);
|
||||
layout->setContentsMargins(3, 3, 3, 3);
|
||||
layout->setAlignment(Qt::AlignCenter);
|
||||
setLayout(layout);
|
||||
|
||||
|
|
Loading…
Reference in a new issue