# HG changeset patch # User Christophe Lincoln # Date 1388797870 -3600 # Node ID 0940993683ef48ac71414e85a00cb131a514ee4c # Parent 0d23938c27b73cdc4245283da21cbae6cc73d826 Add small Qt port :-) diff -r 0d23938c27b7 -r 0940993683ef Makefile --- a/Makefile Fri Jul 26 14:56:15 2013 +0300 +++ b/Makefile Sat Jan 04 02:11:10 2014 +0100 @@ -59,6 +59,7 @@ rm -rf po/mo rm -f po/*.mo rm -f po/*.*~ + rm -f src/Makefile src/*.o src/tazweb-qt help: @echo "make [ pot | msgmerge | msgfmt | install | clean ]" diff -r 0d23938c27b7 -r 0940993683ef README --- a/README Fri Jul 26 14:56:15 2013 +0300 +++ b/README Sat Jan 04 02:11:10 2014 +0100 @@ -41,6 +41,15 @@ Install with 'make install' (PREFIX and DESTDIR are supported for packaging). +Qt Build and install +-------------------- +The Qt port is actually only little toy to play with! + +$ cd src +$ qmake +$ make + + Coding notes ------------ * To get the filename of a WebKitDownload: diff -r 0d23938c27b7 -r 0940993683ef src/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main.cpp Sat Jan 04 02:11:10 2014 +0100 @@ -0,0 +1,20 @@ +/* + * TazWeb-Qt is a radically simple web browser providing a single window. + * Commented line code starts with // and comments are between * * + * + * Copyright (C) 2011-2014 SliTaz GNU/Linux - BSD License + * See AUTHORS and LICENSE for detailed information + * + */ +#include +#include + +int main(int argc, char** argv) +{ + QApplication app(argc, argv); + QWebView view; + view.show(); + //view.setUrl(QUrl("file:///usr/share/webhome/index.html")); + view.load(QUrl("file:///usr/share/webhome/index.html")); + return app.exec(); +} diff -r 0d23938c27b7 -r 0940993683ef src/tazweb.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/tazweb.pro Sat Jan 04 02:11:10 2014 +0100 @@ -0,0 +1,4 @@ + +TARGET = tazweb-qt +QT += webkit +SOURCES = main.cpp