hello Dirk Stöcker wrote: > On Wed, 17 Dec 2008, Robert Scott wrote: [...] >> your_qwebview.page()->mainFrame()->setScrollBarPolicy ( orientation , >> policy ) >> >> (...sorry I can't test this right now.) > > I will test if I find time, but any working solution is wellcome. > > To test it loading a tile in far north/south is enough. They usually are > very long in N-S direction.
that works for me (see patch). even at more than 60° north I don't get any scrollbars. hermann
--- webkit-image.cpp.orig 2008-12-18 09:48:56.000000000 +0100 +++ webkit-image.cpp 2008-12-18 09:35:44.000000000 +0100 @@ -10,6 +10,7 @@ #include <QtCore/QFile> #include <QtCore/QString> #include <QtWebKit/QWebView> +#include <QtWebKit/QWebFrame> /* using mingw to set binary mode */ #ifdef WIN32 @@ -70,6 +71,8 @@ QWebView *view = new QWebView(); Save *s = new Save(view); view->resize(WIDTH,WIDTH); + view->page()->mainFrame()->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff); + view->page()->mainFrame()->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff); QObject::connect(view, SIGNAL(loadFinished(bool)), s, SLOT(loaded(bool))); QObject::connect(s, SIGNAL(finish(void)), &a, SLOT(quit()));
_______________________________________________ josm-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/josm-dev
