Skip to content

Commit fefe150

Browse files
committed
App: Remove middle window border
1 parent d2e0506 commit fefe150

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

App/Client/mainwindow.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ MainWindow::MainWindow(QWidget *parent)
8383
//! use a container window to prevent the view window size from changing.
8484
QWidget* pContain = new QWidget(this);
8585
if(pContain) {
86+
pContain->setContentsMargins(0, 0, 0, 0);
8687
setCentralWidget(pContain);
8788
}
8889

@@ -595,6 +596,8 @@ void MainWindow::SetView(CView* pView)
595596
}
596597
auto* pLayout = new QVBoxLayout(pContain);
597598
if(pLayout) {
599+
pLayout->setContentsMargins(0, 0, 0, 0);
600+
pLayout->setSpacing(0);
598601
pContain->setLayout(pLayout);
599602
pLayout->addWidget(m_pView);
600603
}

0 commit comments

Comments
 (0)