summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2016-06-25 17:18:04 +0200
committerDavid Faure <[email protected]>2016-06-25 17:18:04 +0200
commit4f522fcac359224b52daf70762a2122b89175b7c (patch)
treeea2060f59232cc97d2f3f9f517586af589ef4b3d
parent807941fefac5b0628bf33693c506e73771385372 (diff)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING) + fix compilationv16.08.3v16.08.2v16.08.1v16.08.0v16.07.90v16.07.80Applications/16.08
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/mypopup.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c1ccec0..8e2d61f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,6 +26,7 @@ include(ECMAddAppIcon)
include(ECMInstallIcons)
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
+add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
# global include directories
include_directories (${CMAKE_CURRENT_BINARY_DIR})
diff --git a/src/mypopup.cpp b/src/mypopup.cpp
index 6c2190e..2e45b74 100644
--- a/src/mypopup.cpp
+++ b/src/mypopup.cpp
@@ -86,7 +86,7 @@ bool myPopup::eventFilter(QObject *obj, QEvent *event)
if (event -> type() == QEvent::MouseButtonPress)
{
- QDesktopServices::openUrl(wikipedia);
+ QDesktopServices::openUrl(QUrl(wikipedia));
return true;
}
else