RackWidget: set small margins and draw a border

This commit is contained in:
Olivier Teulière 2013-01-20 11:50:12 +01:00
parent 272867c3ad
commit b5a473a2af
2 changed files with 2 additions and 1 deletions

View file

@ -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*)),

View file

@ -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);