satisfy cppcheck; some gui improvement for 800x480

This commit is contained in:
floty
2012-02-04 20:46:13 +00:00
parent 58a0d3fb2e
commit a76be402b5
4 changed files with 18 additions and 12 deletions
+3 -3
View File
@@ -1566,10 +1566,10 @@ void GameTableStyleReader::setWindowsGeometry(gameTableImpl *gt)
gt->setMaximumSize(FixedWindowWidth.toInt(), FixedWindowHeight.toInt());
gt->resize(FixedWindowWidth.toInt(), FixedWindowHeight.toInt());
#ifndef GUI_800x480
QDesktopWidget dw;
int availableWidth = dw.screenGeometry().width();
int availableHeight = dw.screenGeometry().height();
#ifndef GUI_800x480
if(availableWidth == FixedWindowWidth.toInt() && availableHeight == FixedWindowHeight.toInt()) {
gt->actionFullScreen->setEnabled(TRUE);
} else {
@@ -1585,10 +1585,10 @@ void GameTableStyleReader::setWindowsGeometry(gameTableImpl *gt)
gt->setMaximumSize(MaximumWindowWidth.toInt(), MaximumWindowHeight.toInt());
gt->resize(MinimumWindowWidth.toInt(), MinimumWindowHeight.toInt());
#ifndef GUI_800x480
QDesktopWidget dw;
int availableWidth = dw.screenGeometry().width();
int availableHeight = dw.screenGeometry().height();
#ifndef GUI_800x480
if(availableWidth <= MaximumWindowWidth.toInt() && availableHeight <= MaximumWindowHeight.toInt()) {
gt->actionFullScreen->setEnabled(TRUE);
} else {
@@ -1609,7 +1609,7 @@ void GameTableStyleReader::setSliderStyle(QSlider *s)
QString height("");
#ifdef GUI_800x480
height = " height: 8px;";
height = " height: 10px;";
#else
height = " height: 3px;";
#endif