Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
6befb657
Commit
6befb657
authored
May 06, 2021
by
Felipe Kinoshita
🌎
Committed by
Nate Graham
May 06, 2021
Browse files
[klipper] fix warning
parent
0a83cc73
Changes
1
Hide whitespace changes
Inline
Side-by-side
klipper/klipperpopup.cpp
View file @
6befb657
...
...
@@ -24,6 +24,7 @@
#include <QApplication>
#include <QDesktopWidget>
#include <QKeyEvent>
#include <QScreen>
#include <QWidgetAction>
#include <KHelpMenu>
...
...
@@ -83,9 +84,12 @@ KlipperPopup::KlipperPopup(History *history)
ensurePolished
();
KWindowInfo
windowInfo
(
winId
(),
NET
::
WMGeometry
);
QRect
geometry
=
windowInfo
.
geometry
();
QRect
screen
=
qApp
->
desktop
()
->
screenGeometry
(
geometry
.
center
());
int
menuHeight
=
(
screen
.
height
())
*
3
/
4
;
int
menuWidth
=
(
screen
.
width
())
*
1
/
3
;
QScreen
*
screen
=
QGuiApplication
::
screenAt
(
geometry
.
center
());
if
(
screen
==
nullptr
)
{
return
;
}
int
menuHeight
=
(
screen
->
geometry
().
height
())
*
3
/
4
;
int
menuWidth
=
(
screen
->
geometry
().
width
())
*
1
/
3
;
m_popupProxy
=
new
PopupProxy
(
this
,
menuHeight
,
menuWidth
);
...
...
Write
Preview
Supports
Markdown
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