Skip to content

Commit

Permalink
Add minimal C++ testbrowser
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed Apr 5, 2016
1 parent 1e740aa commit b9b2297
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ __pycache__
/.hypothesis
/prof
TODO
/scripts/testbrowser_cpp/Makefile
/scripts/testbrowser_cpp/main.o
/scripts/testbrowser_cpp/testbrowser
13 changes: 13 additions & 0 deletions scripts/testbrowser_cpp/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include <QApplication>
#include <QWebView>
#include <QUrl>


int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QWebView view;
view.load(QUrl(argv[1]));
view.show();
return app.exec();
}
6 changes: 6 additions & 0 deletions scripts/testbrowser_cpp/testbrowser.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
QT += core widgets webkit webkitwidgets

TARGET = testbrowser
TEMPLATE = app

SOURCES += main.cpp

0 comments on commit b9b2297

Please sign in to comment.