set WA_TranslucentBackground to top level windows
svn path=/trunk/KDE/kdelibs/; revision=927085
This commit is contained in:
parent
604bd19638
commit
f9ab759b8e
@ -171,6 +171,7 @@ Dialog::Dialog(QWidget *parent, Qt::WindowFlags f)
|
|||||||
: QWidget(parent, f),
|
: QWidget(parent, f),
|
||||||
d(new DialogPrivate(this))
|
d(new DialogPrivate(this))
|
||||||
{
|
{
|
||||||
|
setAttribute(Qt::WA_TranslucentBackground);
|
||||||
setWindowFlags(Qt::FramelessWindowHint);
|
setWindowFlags(Qt::FramelessWindowHint);
|
||||||
d->background = new FrameSvg(this);
|
d->background = new FrameSvg(this);
|
||||||
d->background->setImagePath("dialogs/background");
|
d->background->setImagePath("dialogs/background");
|
||||||
|
@ -142,6 +142,7 @@ ToolTip::ToolTip(QWidget *parent)
|
|||||||
: QWidget(parent),
|
: QWidget(parent),
|
||||||
d(new ToolTipPrivate())
|
d(new ToolTipPrivate())
|
||||||
{
|
{
|
||||||
|
setAttribute(Qt::WA_TranslucentBackground);
|
||||||
setWindowFlags(Qt::ToolTip);
|
setWindowFlags(Qt::ToolTip);
|
||||||
QGridLayout *l = new QGridLayout;
|
QGridLayout *l = new QGridLayout;
|
||||||
d->preview = new WindowPreview(this);
|
d->preview = new WindowPreview(this);
|
||||||
|
1
view.cpp
1
view.cpp
@ -98,6 +98,7 @@ public:
|
|||||||
void initGraphicsView()
|
void initGraphicsView()
|
||||||
{
|
{
|
||||||
q->setFrameShape(QFrame::NoFrame);
|
q->setFrameShape(QFrame::NoFrame);
|
||||||
|
q->setAttribute(Qt::WA_TranslucentBackground);
|
||||||
q->setAutoFillBackground(true);
|
q->setAutoFillBackground(true);
|
||||||
q->setDragMode(QGraphicsView::NoDrag);
|
q->setDragMode(QGraphicsView::NoDrag);
|
||||||
//setCacheMode(QGraphicsView::CacheBackground);
|
//setCacheMode(QGraphicsView::CacheBackground);
|
||||||
|
Loading…
Reference in New Issue
Block a user