tst_qwidget: remove sheetOpacity test
Sheets are no longer transparent on newer OS X versions. Change-Id: Iaaed5aea9c9b130a5d991acd36717b76c3927cfb Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
This commit is contained in:
parent
7f5e8a5e34
commit
95b8dfdb6f
@ -269,7 +269,6 @@ private slots:
|
||||
|
||||
void widgetAt();
|
||||
#ifdef Q_OS_OSX
|
||||
void sheetOpacity();
|
||||
void setMask();
|
||||
#endif
|
||||
void optimizedResizeMove();
|
||||
@ -3545,18 +3544,6 @@ void tst_QWidget::testDeletionInEventHandlers()
|
||||
}
|
||||
|
||||
#ifdef Q_OS_OSX
|
||||
void tst_QWidget::sheetOpacity()
|
||||
{
|
||||
QSKIP("QTBUG-52974: this test will most probably be deleted - to be investigated.");
|
||||
QWidget tmpWindow;
|
||||
QWidget sheet(&tmpWindow, Qt::Sheet);
|
||||
tmpWindow.show();
|
||||
sheet.show();
|
||||
QCOMPARE(int(sheet.windowOpacity() * 255), 242); // 95%
|
||||
sheet.setParent(0, Qt::Dialog);
|
||||
QCOMPARE(int(sheet.windowOpacity() * 255), 255);
|
||||
}
|
||||
|
||||
class MaskedPainter : public QWidget
|
||||
{
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user