diff options
author | q5sys <jt@obs-sec.com> | 2016-03-30 13:53:32 -0400 |
---|---|---|
committer | q5sys <jt@obs-sec.com> | 2016-03-30 13:53:32 -0400 |
commit | 421db2abf7d3c224c2988a3327ae05c6e0239a3f (patch) | |
tree | f8b7cefc46ae11cb4c5c5ea5015d01dc08f6db33 /lumina-fm | |
parent | Update MainUI.cpp (diff) | |
download | lumina-421db2abf7d3c224c2988a3327ae05c6e0239a3f.tar.gz lumina-421db2abf7d3c224c2988a3327ae05c6e0239a3f.tar.bz2 lumina-421db2abf7d3c224c2988a3327ae05c6e0239a3f.zip |
Update MainUI.cpp
fixed spacing and cleaned up order
Diffstat (limited to 'lumina-fm')
-rw-r--r-- | lumina-fm/MainUI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index 6db4b932..2e226e12 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -32,10 +32,10 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){ //Reset the UI to the previously used size (if possible) QSize orig = settings->value("preferences/MainWindowSize", QSize()).toSize(); if(!orig.isEmpty() && orig.isValid()){ - //Make sure the old size is larger than the default size hint + //Make sure the old size is larger than the default size hint if(orig.width() < this->sizeHint().width()){ orig.setWidth(this->sizeHint().width()); } if(orig.height() < this->sizeHint().height()){ orig.setHeight(this->sizeHint().height()); } - //Also ensure the old size is smaller than the current screen size + //Also ensure the old size is smaller than the current screen size QSize screen = QApplication::desktop()->availableGeometry(this).size(); if(orig.width() > screen.width()){ orig.setWidth(screen.width()); } if(orig.height() > screen.height()){ orig.setHeight(screen.height()); } |