Add Qt::WindowTransparentForInput to Window flags manual test.
Change-Id: If27567a93d5a2e910289c680643503d02831d742 Reviewed-by: jian liang <jianliang79@gmail.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
94a81928ac
commit
23994a364e
@ -65,6 +65,7 @@ HintControl::HintControl(QWidget *parent)
|
|||||||
, windowStaysOnTopCheckBox(new QCheckBox(tr("Window stays on top")))
|
, windowStaysOnTopCheckBox(new QCheckBox(tr("Window stays on top")))
|
||||||
, windowStaysOnBottomCheckBox(new QCheckBox(tr("Window stays on bottom")))
|
, windowStaysOnBottomCheckBox(new QCheckBox(tr("Window stays on bottom")))
|
||||||
, customizeWindowHintCheckBox(new QCheckBox(tr("Customize window")))
|
, customizeWindowHintCheckBox(new QCheckBox(tr("Customize window")))
|
||||||
|
, transparentForInputCheckBox(new QCheckBox(tr("Transparent for input")))
|
||||||
{
|
{
|
||||||
connect(msWindowsFixedSizeDialogCheckBox, SIGNAL(clicked()), this, SLOT(slotCheckBoxChanged()));
|
connect(msWindowsFixedSizeDialogCheckBox, SIGNAL(clicked()), this, SLOT(slotCheckBoxChanged()));
|
||||||
connect(x11BypassWindowManagerCheckBox, SIGNAL(clicked()), this, SLOT(slotCheckBoxChanged()));
|
connect(x11BypassWindowManagerCheckBox, SIGNAL(clicked()), this, SLOT(slotCheckBoxChanged()));
|
||||||
@ -79,6 +80,7 @@ HintControl::HintControl(QWidget *parent)
|
|||||||
connect(windowStaysOnTopCheckBox, SIGNAL(clicked()), this, SLOT(slotCheckBoxChanged()));
|
connect(windowStaysOnTopCheckBox, SIGNAL(clicked()), this, SLOT(slotCheckBoxChanged()));
|
||||||
connect(windowStaysOnBottomCheckBox, SIGNAL(clicked()), this, SLOT(slotCheckBoxChanged()));
|
connect(windowStaysOnBottomCheckBox, SIGNAL(clicked()), this, SLOT(slotCheckBoxChanged()));
|
||||||
connect(customizeWindowHintCheckBox, SIGNAL(clicked()), this, SLOT(slotCheckBoxChanged()));
|
connect(customizeWindowHintCheckBox, SIGNAL(clicked()), this, SLOT(slotCheckBoxChanged()));
|
||||||
|
connect(transparentForInputCheckBox, SIGNAL(clicked()), this, SLOT(slotCheckBoxChanged()));
|
||||||
QGridLayout *layout = new QGridLayout(this);
|
QGridLayout *layout = new QGridLayout(this);
|
||||||
layout->setSpacing(0);
|
layout->setSpacing(0);
|
||||||
layout->setMargin(ControlLayoutMargin);
|
layout->setMargin(ControlLayoutMargin);
|
||||||
@ -95,6 +97,7 @@ HintControl::HintControl(QWidget *parent)
|
|||||||
layout->addWidget(windowStaysOnTopCheckBox, 5, 1);
|
layout->addWidget(windowStaysOnTopCheckBox, 5, 1);
|
||||||
layout->addWidget(windowStaysOnBottomCheckBox, 6, 1);
|
layout->addWidget(windowStaysOnBottomCheckBox, 6, 1);
|
||||||
layout->addWidget(customizeWindowHintCheckBox, 5, 0);
|
layout->addWidget(customizeWindowHintCheckBox, 5, 0);
|
||||||
|
layout->addWidget(transparentForInputCheckBox, 6, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Qt::WindowFlags HintControl::hints() const
|
Qt::WindowFlags HintControl::hints() const
|
||||||
@ -126,6 +129,8 @@ Qt::WindowFlags HintControl::hints() const
|
|||||||
flags |= Qt::WindowStaysOnBottomHint;
|
flags |= Qt::WindowStaysOnBottomHint;
|
||||||
if (customizeWindowHintCheckBox->isChecked())
|
if (customizeWindowHintCheckBox->isChecked())
|
||||||
flags |= Qt::CustomizeWindowHint;
|
flags |= Qt::CustomizeWindowHint;
|
||||||
|
if (transparentForInputCheckBox->isChecked())
|
||||||
|
flags |= Qt::WindowTransparentForInput;
|
||||||
return flags;
|
return flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,6 +149,7 @@ void HintControl::setHints(Qt::WindowFlags flags)
|
|||||||
windowStaysOnTopCheckBox->setChecked(flags & Qt::WindowStaysOnTopHint);
|
windowStaysOnTopCheckBox->setChecked(flags & Qt::WindowStaysOnTopHint);
|
||||||
windowStaysOnBottomCheckBox->setChecked(flags & Qt::WindowStaysOnBottomHint);
|
windowStaysOnBottomCheckBox->setChecked(flags & Qt::WindowStaysOnBottomHint);
|
||||||
customizeWindowHintCheckBox->setChecked(flags & Qt::CustomizeWindowHint);
|
customizeWindowHintCheckBox->setChecked(flags & Qt::CustomizeWindowHint);
|
||||||
|
transparentForInputCheckBox->setChecked(flags & Qt::WindowTransparentForInput);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HintControl::slotCheckBoxChanged()
|
void HintControl::slotCheckBoxChanged()
|
||||||
|
@ -82,6 +82,7 @@ private:
|
|||||||
QCheckBox *windowStaysOnTopCheckBox;
|
QCheckBox *windowStaysOnTopCheckBox;
|
||||||
QCheckBox *windowStaysOnBottomCheckBox;
|
QCheckBox *windowStaysOnBottomCheckBox;
|
||||||
QCheckBox *customizeWindowHintCheckBox;
|
QCheckBox *customizeWindowHintCheckBox;
|
||||||
|
QCheckBox *transparentForInputCheckBox;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Control for the Qt::WindowState enum, optional with a "visible" QCheckbox
|
// Control for the Qt::WindowState enum, optional with a "visible" QCheckbox
|
||||||
|
Loading…
Reference in New Issue
Block a user