Skip to content

Commit 86695a9

Browse files
committed
small changes to topology checker GUI
1 parent b2441f8 commit 86695a9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/plugins/topology/rulesDialog.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <qgslogger.h>
2525
#include <qgisinterface.h>
2626
#include <qgsproject.h>
27+
#include "qgsapplication.h"
2728
#include "rulesDialog.h"
2829
#include "topolTest.h"
2930

@@ -42,6 +43,9 @@ rulesDialog::rulesDialog( QMap<QString, TopologyRule> testMap, QgisInterface *th
4243
mRulesTable->setSelectionBehavior( QAbstractItemView::SelectRows );
4344
mRuleBox->addItems( mTestConfMap.keys() );
4445

46+
mAddTestButton->setIcon( QIcon( QgsApplication::iconPath( "symbologyAdd.png" ) ) );
47+
mDeleteTestButton->setIcon( QIcon( QgsApplication::iconPath( "symbologyRemove.png" ) ) );
48+
4549
connect( mAddTestButton, SIGNAL( clicked() ), this, SLOT( addRule() ) );
4650
connect( mAddTestButton, SIGNAL( clicked() ), mRulesTable, SLOT( resizeColumnsToContents() ) );
4751
// attempt to add new test when Ok clicked

src/plugins/topology/rulesDialog.ui

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,16 @@
8888
<item>
8989
<layout class="QHBoxLayout" name="horizontalLayout_4">
9090
<item>
91-
<widget class="QPushButton" name="mAddTestButton">
91+
<widget class="QPushButton" name="mDeleteTestButton">
9292
<property name="text">
93-
<string>Add New Rule</string>
93+
<string>Delete Rule</string>
9494
</property>
9595
</widget>
9696
</item>
9797
<item>
98-
<widget class="QPushButton" name="mDeleteTestButton">
98+
<widget class="QPushButton" name="mAddTestButton">
9999
<property name="text">
100-
<string>Delete Rule</string>
100+
<string>Add Rule</string>
101101
</property>
102102
</widget>
103103
</item>

0 commit comments

Comments
 (0)