summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-08-25 14:46:36 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-08-25 14:49:47 (GMT)
commite5db8cdccdb032d82b5562abded95d1dbd743264 (patch)
tree2c384e3cc600e86baf7869286b7af957ade4177e
parent1adc5dbd8f9561b3fbf38759ba5abdca9f3a490b (diff)
downloadQt-e5db8cdccdb032d82b5562abded95d1dbd743264.zip
Qt-e5db8cdccdb032d82b5562abded95d1dbd743264.tar.gz
Qt-e5db8cdccdb032d82b5562abded95d1dbd743264.tar.bz2
Fix a leak in the stylesheet text
Also include some spaces fix
-rw-r--r--tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp b/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
index cbeaebb..60d9787 100644
--- a/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
+++ b/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
@@ -831,7 +831,7 @@ void tst_QStyleSheetStyle::hoverColors()
QDialog frame;
QLayout* layout = new QGridLayout;
- QLineEdit* dummy = new QLineEdit;
+ QLineEdit* dummy = new QLineEdit;
widget->setStyleSheet("*:hover { border:none; background: #e8ff66; color: #ff0084 }");
@@ -1210,6 +1210,7 @@ void tst_QStyleSheetStyle::proxyStyle()
QTest::qWait(100);
delete w;
delete proxy;
+ delete newProxy;
}
void tst_QStyleSheetStyle::dialogButtonBox()
@@ -1400,7 +1401,7 @@ void tst_QStyleSheetStyle::opaquePaintEvent()
QWidget tl;
QWidget cl(&tl);
cl.setAttribute(Qt::WA_OpaquePaintEvent, true);
- cl.setAutoFillBackground(true);
+ cl.setAutoFillBackground(true);
cl.setStyleSheet(stylesheet);
cl.ensurePolished();
QCOMPARE(cl.testAttribute(Qt::WA_OpaquePaintEvent), !transparent);
@@ -1415,7 +1416,7 @@ void tst_QStyleSheetStyle::task188195_baseBackground()
tree.show();
QTest::qWait(20);
QImage image(tree.width(), tree.height(), QImage::Format_ARGB32);
-
+
tree.render(&image);
QVERIFY(testForColors(image, tree.palette().base().color()));
QVERIFY(!testForColors(image, QColor(0xab, 0x12, 0x51)));