Loading isis/src/qisis/apps/ipce/IpceMainWindow.cpp +0 −13 Original line number Diff line number Diff line Loading @@ -25,13 +25,11 @@ #include <QApplication> #include <QColor> #include <QDebug> #include <QDesktopWidget> #include <QDockWidget> #include <QMap> #include <QMapIterator> #include <QMdiArea> #include <QObject> #include <QRect> #include <QRegExp> #include <QStringList> #include <QtWidgets> Loading Loading @@ -80,17 +78,6 @@ namespace Isis { QMainWindow(parent) { m_maxThreadCount = -1; // Set the initialize size of the mainwindow to fullscreen so that created views do not // get squished. Saved projects with view had the internal widgets squished because the // initial size of this mainwindow was small and it does not get restored to the saved project // size until after views are created. For instance, the viewports within a CubeDnView were // restored to a small size based on the original mainwindow size. If the internal state // of the views such as the viewport sizes, zooms, etc get serialized, this code will not be // needed. QDesktopWidget deskTop; QRect mainScreenSize = deskTop.availableGeometry(deskTop.primaryScreen()); resize(mainScreenSize.width(), mainScreenSize.height()); QWidget *centralWidget = new QWidget; setCentralWidget(centralWidget); setTabPosition(Qt::LeftDockWidgetArea, QTabWidget::South); Loading isis/src/qisis/apps/ipce/IpceMainWindow.h +5 −1 Original line number Diff line number Diff line Loading @@ -159,6 +159,10 @@ namespace Isis { * state can be reset after the IpceMainWindow::show() causes resize and * move events which in turn cause the project clean flag to be false * even though the project has just opened. * @history 2018-07-11 Kaitlyn Lee - Added a value in the project settings that stores whether a * project was in fullscreen or not when saved. If not, we call showNormal() * to restore the poject's window size. This also fixes the warning/history tabs * being misplaced when opening a project. Fixes #5175. */ class IpceMainWindow : public QMainWindow { Q_OBJECT Loading Loading
isis/src/qisis/apps/ipce/IpceMainWindow.cpp +0 −13 Original line number Diff line number Diff line Loading @@ -25,13 +25,11 @@ #include <QApplication> #include <QColor> #include <QDebug> #include <QDesktopWidget> #include <QDockWidget> #include <QMap> #include <QMapIterator> #include <QMdiArea> #include <QObject> #include <QRect> #include <QRegExp> #include <QStringList> #include <QtWidgets> Loading Loading @@ -80,17 +78,6 @@ namespace Isis { QMainWindow(parent) { m_maxThreadCount = -1; // Set the initialize size of the mainwindow to fullscreen so that created views do not // get squished. Saved projects with view had the internal widgets squished because the // initial size of this mainwindow was small and it does not get restored to the saved project // size until after views are created. For instance, the viewports within a CubeDnView were // restored to a small size based on the original mainwindow size. If the internal state // of the views such as the viewport sizes, zooms, etc get serialized, this code will not be // needed. QDesktopWidget deskTop; QRect mainScreenSize = deskTop.availableGeometry(deskTop.primaryScreen()); resize(mainScreenSize.width(), mainScreenSize.height()); QWidget *centralWidget = new QWidget; setCentralWidget(centralWidget); setTabPosition(Qt::LeftDockWidgetArea, QTabWidget::South); Loading
isis/src/qisis/apps/ipce/IpceMainWindow.h +5 −1 Original line number Diff line number Diff line Loading @@ -159,6 +159,10 @@ namespace Isis { * state can be reset after the IpceMainWindow::show() causes resize and * move events which in turn cause the project clean flag to be false * even though the project has just opened. * @history 2018-07-11 Kaitlyn Lee - Added a value in the project settings that stores whether a * project was in fullscreen or not when saved. If not, we call showNormal() * to restore the poject's window size. This also fixes the warning/history tabs * being misplaced when opening a project. Fixes #5175. */ class IpceMainWindow : public QMainWindow { Q_OBJECT Loading