summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/ScreenSharing/QtRemoteScreenWindow.cpp')
-rw-r--r--Swift/QtUI/ScreenSharing/QtRemoteScreenWindow.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/Swift/QtUI/ScreenSharing/QtRemoteScreenWindow.cpp b/Swift/QtUI/ScreenSharing/QtRemoteScreenWindow.cpp
index a1f1a88..090ab6b 100644
--- a/Swift/QtUI/ScreenSharing/QtRemoteScreenWindow.cpp
+++ b/Swift/QtUI/ScreenSharing/QtRemoteScreenWindow.cpp
@@ -8,6 +8,7 @@
#include "RemoteScreenViewerWidget.h"
#include <QToolBar>
+#include <QFrame>
#include <QVBoxLayout>
#include <Swiften/ScreenSharing/IncomingScreenSharing.h>
@@ -17,9 +18,14 @@ namespace Swift {
QtRemoteScreenWindow::QtRemoteScreenWindow(boost::shared_ptr<IncomingScreenSharing> incScreenSharing, QWidget *parent)
: QMainWindow(parent), RemoteScreenWindow(incScreenSharing), viewer(new RemoteScreenViewerWidget(iss))
{
- QVBoxLayout* centralLayout = new QVBoxLayout;
- centralLayout->addWidget(viewer);
+ QVBoxLayout* frameLayout = new QVBoxLayout;
+ frameLayout->addWidget(viewer);
+ QFrame* frame = new QFrame;
+ frame->setLayout(frameLayout);
+ frame->setContentsMargins(QMargins(0, 0, 0, 0));
+ QVBoxLayout* centralLayout = new QVBoxLayout;
+ centralLayout->addWidget(frame);
QWidget* central = new QWidget(this);
central->setLayout(centralLayout);