Skip to content

Commit

Permalink
small changes to topology checker GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
mach0 committed Jun 19, 2013
1 parent b2441f8 commit 86695a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/plugins/topology/rulesDialog.cpp
Expand Up @@ -24,6 +24,7 @@
#include <qgslogger.h>
#include <qgisinterface.h>
#include <qgsproject.h>
#include "qgsapplication.h"
#include "rulesDialog.h"
#include "topolTest.h"

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

mAddTestButton->setIcon( QIcon( QgsApplication::iconPath( "symbologyAdd.png" ) ) );
mDeleteTestButton->setIcon( QIcon( QgsApplication::iconPath( "symbologyRemove.png" ) ) );

connect( mAddTestButton, SIGNAL( clicked() ), this, SLOT( addRule() ) );
connect( mAddTestButton, SIGNAL( clicked() ), mRulesTable, SLOT( resizeColumnsToContents() ) );
// attempt to add new test when Ok clicked
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/topology/rulesDialog.ui
Expand Up @@ -88,16 +88,16 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QPushButton" name="mAddTestButton">
<widget class="QPushButton" name="mDeleteTestButton">
<property name="text">
<string>Add New Rule</string>
<string>Delete Rule</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="mDeleteTestButton">
<widget class="QPushButton" name="mAddTestButton">
<property name="text">
<string>Delete Rule</string>
<string>Add Rule</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit 86695a9

Please sign in to comment.