no more white background, huzzah
svn path=/trunk/KDE/kdelibs/; revision=960564
This commit is contained in:
parent
f4758561a3
commit
12000ecad1
@ -17,15 +17,18 @@
|
|||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <QtGui/QApplication>
|
||||||
#include <QtGui/QGraphicsSceneContextMenuEvent>
|
#include <QtGui/QGraphicsSceneContextMenuEvent>
|
||||||
#include <QtGui/QGraphicsSceneDragDropEvent>
|
#include <QtGui/QGraphicsSceneDragDropEvent>
|
||||||
#include <QtGui/QGraphicsSceneMouseEvent>
|
#include <QtGui/QGraphicsSceneMouseEvent>
|
||||||
#include <QtGui/QGraphicsSceneWheelEvent>
|
#include <QtGui/QGraphicsSceneWheelEvent>
|
||||||
#include <QtGui/QKeyEvent>
|
#include <QtGui/QKeyEvent>
|
||||||
#include <QtGui/QStyleOptionGraphicsItem>
|
#include <QtGui/QStyleOptionGraphicsItem>
|
||||||
|
|
||||||
#include <fixx11h.h>
|
#include <fixx11h.h>
|
||||||
#include <QtWebKit/QWebFrame>
|
#include <QtWebKit/QWebFrame>
|
||||||
#include <QtWebKit/QWebPage>
|
#include <QtWebKit/QWebPage>
|
||||||
|
|
||||||
#include <QtCore/QTimer>
|
#include <QtCore/QTimer>
|
||||||
|
|
||||||
#include <kdebug.h>
|
#include <kdebug.h>
|
||||||
@ -67,9 +70,14 @@ WebView::WebView(QGraphicsItem *parent)
|
|||||||
{
|
{
|
||||||
d->page = 0;
|
d->page = 0;
|
||||||
d->loaded = false;
|
d->loaded = false;
|
||||||
setPage(new QWebPage(this));
|
|
||||||
setAcceptsHoverEvents(true);
|
setAcceptsHoverEvents(true);
|
||||||
setFlags(QGraphicsItem::ItemIsFocusable);
|
setFlags(QGraphicsItem::ItemIsFocusable);
|
||||||
|
|
||||||
|
QWebPage *page = new QWebPage(this);
|
||||||
|
QPalette palette = qApp->palette();
|
||||||
|
palette.setBrush(QPalette::Base, Qt::transparent);
|
||||||
|
page->setPalette(palette);
|
||||||
|
setPage(page);
|
||||||
}
|
}
|
||||||
|
|
||||||
WebView::~WebView()
|
WebView::~WebView()
|
||||||
|
Loading…
Reference in New Issue
Block a user