From 5e2a9164c677b8d8cff7b2c0eff7e6e6dc68e160 Mon Sep 17 00:00:00 2001 From: hekra Date: Sat, 8 Apr 2017 23:44:57 +0200 Subject: [PATCH] example WD widgets --- examples/widgets/mainwindows/mainwindow/main.cpp | 2 ++ examples/widgets/mainwindows/mainwindow/mainwindow.pro | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/widgets/mainwindows/mainwindow/main.cpp b/examples/widgets/mainwindows/mainwindow/main.cpp index 21920747910..72150156543 100644 --- a/examples/widgets/mainwindows/mainwindow/main.cpp +++ b/examples/widgets/mainwindows/mainwindow/main.cpp @@ -32,6 +32,7 @@ ****************************************************************************/ #include "mainwindow.h" +#include "Headers.h" #include #include @@ -149,6 +150,7 @@ int main(int argc, char **argv) { QApplication app(argc, argv); QMap customSizeHints = parseCustomSizeHints(argc, argv); + wd_setup(argc, argv); MainWindow mainWin(customSizeHints); mainWin.resize(800, 600); mainWin.show(); diff --git a/examples/widgets/mainwindows/mainwindow/mainwindow.pro b/examples/widgets/mainwindows/mainwindow/mainwindow.pro index bf92d0e3ca3..452ddc9005a 100644 --- a/examples/widgets/mainwindows/mainwindow/mainwindow.pro +++ b/examples/widgets/mainwindows/mainwindow/mainwindow.pro @@ -1,5 +1,10 @@ TEMPLATE = app -QT += widgets +QT += widgets quick +INCLUDEPATH += /home/user/qtwebdriver/out/dist/desktop/release/Test +INCLUDEPATH += /home/user/qtwebdriver/out/dist/desktop/release/h +LIBS += -L/home/user/qtwebdriver/out/dist/desktop/release/libs +LIBS += -lchromium_base -lWebDriver_core -lWebDriver_extension_qt_base -lWebDriver_extension_qt_quick -lWebDriver_extension_qt_quick_web -lWebDriver_extension_qt_web +DEFINES += QT_NO_SAMPLES="1" HEADERS += colorswatch.h mainwindow.h toolbar.h SOURCES += colorswatch.cpp mainwindow.cpp toolbar.cpp main.cpp