Skip to content

Commit

Permalink
tst_qwidget: remove sheetOpacity test
Browse files Browse the repository at this point in the history
Sheets are no longer transparent on newer OS X
versions.

Change-Id: Iaaed5aea9c9b130a5d991acd36717b76c3927cfb
Reviewed-by: Timur Pocheptsov <[email protected]>
  • Loading branch information
msorvig authored and Timur Pocheptsov committed May 10, 2016
1 parent 7f5e8a5 commit 95b8dfd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ private slots:

void widgetAt();
#ifdef Q_OS_OSX
void sheetOpacity();
void setMask();
#endif
void optimizedResizeMove();
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 95b8dfd

Please sign in to comment.