tazweb rev 129
Add small Qt port :-)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jan 04 02:11:10 2014 +0100 (2014-01-04) |
parents | 0d23938c27b7 |
children | cf5860f82d24 |
files | Makefile README src/main.cpp src/tazweb.pro |
line diff
1.1 --- a/Makefile Fri Jul 26 14:56:15 2013 +0300 1.2 +++ b/Makefile Sat Jan 04 02:11:10 2014 +0100 1.3 @@ -59,6 +59,7 @@ 1.4 rm -rf po/mo 1.5 rm -f po/*.mo 1.6 rm -f po/*.*~ 1.7 + rm -f src/Makefile src/*.o src/tazweb-qt 1.8 1.9 help: 1.10 @echo "make [ pot | msgmerge | msgfmt | install | clean ]"
2.1 --- a/README Fri Jul 26 14:56:15 2013 +0300 2.2 +++ b/README Sat Jan 04 02:11:10 2014 +0100 2.3 @@ -41,6 +41,15 @@ 2.4 Install with 'make install' (PREFIX and DESTDIR are supported for packaging). 2.5 2.6 2.7 +Qt Build and install 2.8 +-------------------- 2.9 +The Qt port is actually only little toy to play with! 2.10 + 2.11 +$ cd src 2.12 +$ qmake 2.13 +$ make 2.14 + 2.15 + 2.16 Coding notes 2.17 ------------ 2.18 * To get the filename of a WebKitDownload:
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/src/main.cpp Sat Jan 04 02:11:10 2014 +0100 3.3 @@ -0,0 +1,20 @@ 3.4 +/* 3.5 + * TazWeb-Qt is a radically simple web browser providing a single window. 3.6 + * Commented line code starts with // and comments are between * * 3.7 + * 3.8 + * Copyright (C) 2011-2014 SliTaz GNU/Linux - BSD License 3.9 + * See AUTHORS and LICENSE for detailed information 3.10 + * 3.11 + */ 3.12 +#include <QtGui> 3.13 +#include <QtWebKit> 3.14 + 3.15 +int main(int argc, char** argv) 3.16 +{ 3.17 + QApplication app(argc, argv); 3.18 + QWebView view; 3.19 + view.show(); 3.20 + //view.setUrl(QUrl("file:///usr/share/webhome/index.html")); 3.21 + view.load(QUrl("file:///usr/share/webhome/index.html")); 3.22 + return app.exec(); 3.23 +}