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
Utilities
Filelight
Commits
322fc224
Commit
322fc224
authored
Jun 01, 2021
by
Laurent Montel
😁
Browse files
We depend against qt5.15
parent
7de8d482
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/radialMap/widgetEvents.cpp
View file @
322fc224
...
...
@@ -39,9 +39,7 @@
#include <cmath> //::segmentAt()
#if KIO_VERSION >= QT_VERSION_CHECK(5, 71, 0)
#include <KIO/OpenUrlJob>
#endif
void
RadialMap
::
Widget
::
resizeEvent
(
QResizeEvent
*
)
{
...
...
@@ -331,17 +329,9 @@ void RadialMap::Widget::mousePressEvent(QMouseEvent *e)
QAction
*
clicked
=
popup
.
exec
(
e
->
globalPos
(),
nullptr
);
if
(
openFileManager
&&
clicked
==
openFileManager
)
{
#if KIO_VERSION < QT_VERSION_CHECK(5, 71, 0)
KRun
::
runUrl
(
url
,
QStringLiteral
(
"inode/directory"
),
this
#if KIO_VERSION >= QT_VERSION_CHECK(5, 31, 0)
,
KRun
::
RunFlags
()
#endif
);
#else // KIO 5.71
KIO
::
OpenUrlJob
*
job
=
new
KIO
::
OpenUrlJob
(
url
,
QStringLiteral
(
"inode/directory"
),
this
);
job
->
setUiDelegate
(
new
KIO
::
JobUiDelegate
(
KJobUiDelegate
::
AutoHandlingEnabled
,
window
()));
job
->
start
();
#endif
}
else
if
(
openTerminal
&&
clicked
==
openTerminal
)
{
KToolInvocation
::
invokeTerminal
(
QString
(),
QStringList
(),
url
.
path
());
}
else
if
(
centerMap
&&
clicked
==
centerMap
)
{
...
...
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