diff options
Diffstat (limited to 'Swift/QtUI/ScreenSharing/QtRemoteScreenWindow.cpp')
| -rw-r--r-- | Swift/QtUI/ScreenSharing/QtRemoteScreenWindow.cpp | 10 |
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 @@ -7,8 +7,9 @@ #include "QtRemoteScreenWindow.h" #include "RemoteScreenViewerWidget.h" #include <QToolBar> +#include <QFrame> #include <QVBoxLayout> #include <Swiften/ScreenSharing/IncomingScreenSharing.h> @@ -16,11 +17,16 @@ 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); setCentralWidget(central); |
Swift