From baaf615ede1adf957c9482eec1d16f4a50b29a83 Mon Sep 17 00:00:00 2001 From: Goutough Date: Mon, 17 Sep 2012 15:52:37 +0200 Subject: [PATCH] Eliminate spacing and margins. --- src/main.cpp | 2 ++ src/playerpanel.cpp | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 2763006..248c1eb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -102,6 +102,8 @@ int main (int argc, char **argv) { WallPlayerMainWindow mainWindow; QGridLayout layout(&mainWindow); + layout.setSpacing(0); + layout.setMargin(0); mainWindow.setLayout(&layout); QStringList appArgs = QApplication::arguments(); diff --git a/src/playerpanel.cpp b/src/playerpanel.cpp index beebcfc..72a0d51 100644 --- a/src/playerpanel.cpp +++ b/src/playerpanel.cpp @@ -35,12 +35,14 @@ PlayerPanel::PlayerPanel(QWidget* parent) setPalette(palette); setFrameStyle(QFrame::Plain | QFrame::Box); - setLineWidth(3); + setLineWidth(1); m_controlpanel = new ControlPanel(this, this); m_controlpanel->installEventFilter(this); + m_layout.setSpacing(0); + m_layout.setMargin(0); m_layout.addWidget(m_controlpanel); setLayout(&m_layout); -- 2.11.4.GIT