tst_QLabel: remove QSKIP, wrap Q_OS_MAC
Change-Id: If67dbb07900bfa8f1bcf55aa457bd90ef0550900 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
This commit is contained in:
parent
41dc50edff
commit
171c638a89
@ -87,7 +87,9 @@ private slots:
|
|||||||
void setText_data();
|
void setText_data();
|
||||||
void setText();
|
void setText();
|
||||||
void setTextFormat();
|
void setTextFormat();
|
||||||
|
#ifndef Q_OS_MAC
|
||||||
void setBuddy();
|
void setBuddy();
|
||||||
|
#endif
|
||||||
void setNum();
|
void setNum();
|
||||||
void clear();
|
void clear();
|
||||||
void wordWrap();
|
void wordWrap();
|
||||||
@ -193,11 +195,10 @@ void tst_QLabel::cleanup()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set buddy doesn't make much sense on Mac OS X
|
||||||
|
#ifndef Q_OS_MAC
|
||||||
void tst_QLabel::setBuddy()
|
void tst_QLabel::setBuddy()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_MAC
|
|
||||||
QSKIP("Set buddy doesn't make much sense on Mac OS X");
|
|
||||||
#endif
|
|
||||||
testWidget->hide();
|
testWidget->hide();
|
||||||
|
|
||||||
test_box = new Widget;
|
test_box = new Widget;
|
||||||
@ -218,6 +219,7 @@ void tst_QLabel::setBuddy()
|
|||||||
QVERIFY( test_edit->hasFocus() );
|
QVERIFY( test_edit->hasFocus() );
|
||||||
delete test_box;
|
delete test_box;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void tst_QLabel::setText_data()
|
void tst_QLabel::setText_data()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user