From 448d9e877c8a5cfeaefe80d3e6a81b92ff67cb00 Mon Sep 17 00:00:00 2001 From: Tats Date: Wed, 16 Mar 2016 01:12:21 -0400 Subject: [PATCH] Made source and destination panel QWidgets part of the MainWindow class. --- MainWindow.cpp | 4 ++-- MainWindow.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MainWindow.cpp b/MainWindow.cpp index d110865..2d35171 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -1398,7 +1398,7 @@ void MainWindow::createLayout() sourceCanvasToolbar = new MapperGLCanvasToolbar(sourceCanvas, this); QVBoxLayout* sourceLayout = new QVBoxLayout; - QWidget* sourcePanel = new QWidget(this); + sourcePanel = new QWidget(this); sourceLayout->setContentsMargins(0, 0, 0, 0); sourceLayout->addWidget(sourceCanvas); @@ -1412,7 +1412,7 @@ void MainWindow::createLayout() destinationCanvasToolbar = new MapperGLCanvasToolbar(destinationCanvas, this); QVBoxLayout* destinationLayout = new QVBoxLayout; - QWidget* destinationPanel = new QWidget(this); + destinationPanel = new QWidget(this); destinationLayout->setContentsMargins(0, 0, 0, 0); destinationLayout->addWidget(destinationCanvas); diff --git a/MainWindow.h b/MainWindow.h index 3a51dfb..fec4b4d 100644 --- a/MainWindow.h +++ b/MainWindow.h @@ -370,8 +370,10 @@ private: MapperGLCanvas* sourceCanvas; MapperGLCanvasToolbar* sourceCanvasToolbar; + QWidget* sourcePanel; MapperGLCanvas* destinationCanvas; MapperGLCanvasToolbar* destinationCanvasToolbar; + QWidget* destinationPanel; OutputGLWindow* outputWindow; ConsoleWindow* consoleWindow;