summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml4
-rw-r--r--CMakeLists.txt4
-rw-r--r--gui/CMakeLists.txt4
-rw-r--r--gui/mainwindow.cpp14
-rw-r--r--gui/mainwindow.h1
-rw-r--r--gui/ui/mainwindow.ui15
6 files changed, 10 insertions, 32 deletions
diff --git a/.travis.yml b/.travis.yml
index 8f20e2a2..c8046901 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,7 @@ matrix:
- os: linux
env:
- APT_REPOS="ppa:ubuntu-toolchain-r/test"
- - APT_PACKAGES="gcc-4.9 g++-4.9 libdwarf-dev libprocps3-dev qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev"
+ - APT_PACKAGES="gcc-4.9 g++-4.9 libdwarf-dev libprocps3-dev qtbase5-dev qtdeclarative5-dev"
- CMAKE_OPTIONS="-DCMAKE_C_COMPILER=gcc-4.9 -DCMAKE_CXX_COMPILER=g++-4.9 -DENABLE_GUI=1"
- os: linux
env:
@@ -25,7 +25,7 @@ matrix:
- CMAKE_OPTIONS="-DCMAKE_C_COMPILER=gcc-4.9 -DCMAKE_CXX_COMPILER=g++-4.9 -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_SYSTEM_LIBRARY_PATH=/usr/lib32 -DENABLE_GUI=0"
- os: linux
env:
- - APT_PACKAGES="clang-3.6 libc++-dev libc++abi-dev libdwarf-dev libprocps3-dev qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev"
+ - APT_PACKAGES="clang-3.6 libc++-dev libc++abi-dev libdwarf-dev libprocps3-dev qtbase5-dev qtdeclarative5-dev"
- CMAKE_OPTIONS="-DCMAKE_C_COMPILER=clang-3.6 -DCMAKE_CXX_COMPILER=clang++-3.6 -DCMAKE_CXX_FLAGS=-stdlib=libc++ -DENABLE_GUI=1"
- os: linux
env:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index edd20e56..fdf08af7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -112,7 +112,7 @@ if (ENABLE_GUI)
cmake_policy (SET CMP0020 NEW)
endif()
find_package (Qt5Widgets ${REQUIRE_GUI})
- find_package (Qt5WebKitWidgets ${REQUIRE_GUI})
+ find_package (Qt5Network ${REQUIRE_GUI})
endif ()
if (MSVC)
@@ -526,7 +526,7 @@ endif ()
##############################################################################
# GUI
-if (ENABLE_GUI AND Qt5Widgets_FOUND AND Qt5WebKitWidgets_FOUND)
+if (ENABLE_GUI AND Qt5Widgets_FOUND AND Qt5Network_FOUND)
add_subdirectory(gui)
endif ()
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index b74e3ece..2746711a 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -101,11 +101,11 @@ add_executable (qapitrace ${qapitrace_SRCS} ${qapitrace_UIS_H})
if (Qt5Core_VERSION_STRING VERSION_LESS 5.2.0)
qt5_use_modules (qubjson Widgets)
qt5_use_modules (qubjson_test Widgets)
- qt5_use_modules (qapitrace Widgets WebKitWidgets)
+ qt5_use_modules (qapitrace Widgets Network)
else ()
target_link_libraries (qubjson Qt5::Widgets)
target_link_libraries (qubjson_test Qt5::Widgets)
- target_link_libraries (qapitrace Qt5::Widgets Qt5::WebKitWidgets)
+ target_link_libraries (qapitrace Qt5::Widgets Qt5::Network)
endif ()
target_link_libraries (qapitrace
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index 129e634d..e1859973 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -40,8 +40,7 @@
#include <QToolBar>
#include <QUrl>
#include <QVBoxLayout>
-#include <QWebPage>
-#include <QWebView>
+#include <QTextBrowser>
typedef QLatin1String _;
@@ -886,11 +885,6 @@ void MainWindow::leakTraceFinished(){
delete t;
}
-void MainWindow::openHelp(const QUrl &url)
-{
- QDesktopServices::openUrl(url);
-}
-
void MainWindow::showSurfacesMenu(const QPoint &pos)
{
QTreeWidget *tree = m_ui.surfacesTreeWidget;
@@ -1005,9 +999,6 @@ void MainWindow::initObjects()
m_ui.surfacesTreeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
- m_ui.detailsWebView->page()->setLinkDelegationPolicy(
- QWebPage::DelegateExternalLinks);
-
m_jumpWidget = new JumpWidget(this);
m_ui.centralLayout->addWidget(m_jumpWidget);
m_jumpWidget->hide();
@@ -1121,9 +1112,6 @@ void MainWindow::initConnections()
SIGNAL(itemDoubleClicked(QTreeWidgetItem *, int)),
SLOT(showSelectedSurface()));
- connect(m_ui.detailsWebView, SIGNAL(linkClicked(const QUrl&)),
- this, SLOT(openHelp(const QUrl&)));
-
connect(m_ui.nonDefaultsCB, SIGNAL(toggled(bool)),
this, SLOT(fillState(bool)));
diff --git a/gui/mainwindow.h b/gui/mainwindow.h
index 0378d2c0..1f1e5797 100644
--- a/gui/mainwindow.h
+++ b/gui/mainwindow.h
@@ -74,7 +74,6 @@ private slots:
void showSettings();
void leakTrace();
void leakTraceFinished();
- void openHelp(const QUrl &url);
void showSurfacesMenu(const QPoint &pos);
void showSelectedSurface();
void saveSelectedSurface();
diff --git a/gui/ui/mainwindow.ui b/gui/ui/mainwindow.ui
index 376f70e3..89fc378c 100644
--- a/gui/ui/mainwindow.ui
+++ b/gui/ui/mainwindow.ui
@@ -134,17 +134,15 @@
<widget class="QWidget" name="dockWidgetContents">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
- <widget class="QWebView" name="detailsWebView">
+ <widget class="QTextBrowser" name="detailsWebView">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Ignored">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="url">
- <url>
- <string>about:blank</string>
- </url>
+ <property name="openExternalLinks">
+ <bool>true</bool>
</property>
</widget>
</item>
@@ -790,13 +788,6 @@
<zorder>errorsDock</zorder>
<zorder>backtraceDock</zorder>
</widget>
- <customwidgets>
- <customwidget>
- <class>QWebView</class>
- <extends>QWidget</extends>
- <header>QtWebKitWidgets/QWebView</header>
- </customwidget>
- </customwidgets>
<resources>
<include location="../qapitrace.qrc"/>
</resources>