summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qcommandlinkbutton
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2012-09-27 15:06:20 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-27 15:21:41 +0200
commit4a9bdbd8ccbe6d825f0a3790c7b22f6012625bb5 (patch)
treec6ce2e73611e19a350dd49c0dac496ca38ce2b09 /tests/auto/widgets/widgets/qcommandlinkbutton
parent570ae40f57f048d53ed32d035804746a11489f48 (diff)
tst_QCommandLinkButton: cleanup whitespace
Change-Id: Ia1aab643f7b93b0532a38b27d7777fbcf5f489bc Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Diffstat (limited to 'tests/auto/widgets/widgets/qcommandlinkbutton')
-rw-r--r--tests/auto/widgets/widgets/qcommandlinkbutton/tst_qcommandlinkbutton.cpp28
1 files changed, 11 insertions, 17 deletions
diff --git a/tests/auto/widgets/widgets/qcommandlinkbutton/tst_qcommandlinkbutton.cpp b/tests/auto/widgets/widgets/qcommandlinkbutton/tst_qcommandlinkbutton.cpp
index e08574ef6c..ad3d57f9c0 100644
--- a/tests/auto/widgets/widgets/qcommandlinkbutton/tst_qcommandlinkbutton.cpp
+++ b/tests/auto/widgets/widgets/qcommandlinkbutton/tst_qcommandlinkbutton.cpp
@@ -57,12 +57,11 @@ Q_DECLARE_METATYPE(QCommandLinkButton*)
class tst_QCommandLinkButton : public QObject
{
-Q_OBJECT
+ Q_OBJECT
public:
tst_QCommandLinkButton();
virtual ~tst_QCommandLinkButton();
-
public slots:
void initTestCase();
void cleanupTestCase();
@@ -106,15 +105,14 @@ void tst_QCommandLinkButton::getSetCheck()
{
QCommandLinkButton obj1;
- QString text("mytext");
- QVERIFY(obj1.description().isEmpty());
- obj1.setDescription(text);
- QVERIFY(obj1.description() == text);
-
- QVERIFY(obj1.text().isEmpty());
- obj1.setText(text);
- QVERIFY(obj1.text() == text);
+ QString text("mytext");
+ QVERIFY(obj1.description().isEmpty());
+ obj1.setDescription(text);
+ QVERIFY(obj1.description() == text);
+ QVERIFY(obj1.text().isEmpty());
+ obj1.setText(text);
+ QVERIFY(obj1.text() == text);
QMenu *var1 = new QMenu;
obj1.setMenu(var1);
@@ -169,7 +167,6 @@ void tst_QCommandLinkButton::cleanup()
{
}
-
void tst_QCommandLinkButton::resetCounters()
{
toggle_count = 0;
@@ -306,11 +303,8 @@ void tst_QCommandLinkButton::pressed()
QCOMPARE( press_count, (uint)2 );
QCOMPARE( release_count, (uint)2 );
testWidget->setAutoDefault(false);
-
}
-
-
void tst_QCommandLinkButton::isCheckable()
{
QVERIFY( !testWidget->isCheckable() );
@@ -495,8 +489,8 @@ void tst_QCommandLinkButton::defaultAndAutoDefault()
// Adding buttons to QDialog through a layout
QDialog dialog;
- QCommandLinkButton button3;
- button3.setAutoDefault(false);
+ QCommandLinkButton button3;
+ button3.setAutoDefault(false);
QCommandLinkButton button1;
QVERIFY(!button1.autoDefault());
@@ -517,7 +511,7 @@ void tst_QCommandLinkButton::defaultAndAutoDefault()
layout.addWidget(&button2, 0, 2);
layout.addWidget(&button1, 0, 1);
dialog.setLayout(&layout);
- button3.setFocus();
+ button3.setFocus();
QVERIFY(button1.autoDefault());
QVERIFY(button1.isDefault());
QVERIFY(button2.autoDefault());