set WA_TranslucentBackground to top level windows

svn path=/trunk/KDE/kdelibs/; revision=927085
This commit is contained in:
Marco Martin 2009-02-16 19:24:05 +00:00
parent 604bd19638
commit f9ab759b8e
3 changed files with 3 additions and 0 deletions

View File

@ -171,6 +171,7 @@ Dialog::Dialog(QWidget *parent, Qt::WindowFlags f)
: QWidget(parent, f),
d(new DialogPrivate(this))
{
setAttribute(Qt::WA_TranslucentBackground);
setWindowFlags(Qt::FramelessWindowHint);
d->background = new FrameSvg(this);
d->background->setImagePath("dialogs/background");

View File

@ -142,6 +142,7 @@ ToolTip::ToolTip(QWidget *parent)
: QWidget(parent),
d(new ToolTipPrivate())
{
setAttribute(Qt::WA_TranslucentBackground);
setWindowFlags(Qt::ToolTip);
QGridLayout *l = new QGridLayout;
d->preview = new WindowPreview(this);

View File

@ -98,6 +98,7 @@ public:
void initGraphicsView()
{
q->setFrameShape(QFrame::NoFrame);
q->setAttribute(Qt::WA_TranslucentBackground);
q->setAutoFillBackground(true);
q->setDragMode(QGraphicsView::NoDrag);
//setCacheMode(QGraphicsView::CacheBackground);