Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Games
KGoldrunner
Commits
71d0d396
Commit
71d0d396
authored
Jan 06, 2014
by
Ian Wadham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: 329575 Prevent game selector dialog from spilling into the Taskbar.
parent
caba392e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/kgrselector.cpp
src/kgrselector.cpp
+10
-0
No files found.
src/kgrselector.cpp
View file @
71d0d396
...
...
@@ -37,6 +37,9 @@
#include <QPainter>
#include <QApplication>
#include <QDesktopWidget>
#include <KGlobalSettings>
#include <KConfigGroup>
#include <KIntNumInput>
...
...
@@ -225,6 +228,13 @@ void KGrSLDialog::setupWidgets()
int
cell
=
slParent
->
width
()
/
(
FIELDWIDTH
+
4
);
dad
->
setMinimumSize
((
FIELDWIDTH
*
cell
/
2
),
(
FIELDHEIGHT
-
3
)
*
cell
);
// Avoid spilling into the Taskbar or Apple Dock area if they get too close.
// Otherwise allow the dialog to choose its size and then be resizeable.
const
QRect
avail
=
QApplication
::
desktop
()
->
availableGeometry
(
this
);
if
((
avail
.
height
()
-
slParent
->
height
())
<=
120
)
{
dad
->
setFixedHeight
(
slParent
->
height
()
-
120
);
// Keep 120 for buttons.
}
// Set the default for the level-number in the scrollbar.
number
->
setTracking
(
true
);
number
->
setValue
(
defaultLevel
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment