Skip to content
Permalink
Browse files

small changes to topology checker GUI

  • Loading branch information
mach0 committed Jun 19, 2013
1 parent b2441f8 commit 86695a9f371b1e82b588527cc35da15a73f4f0cf
Showing with 8 additions and 4 deletions.
  1. +4 −0 src/plugins/topology/rulesDialog.cpp
  2. +4 −4 src/plugins/topology/rulesDialog.ui
@@ -24,6 +24,7 @@
#include <qgslogger.h>
#include <qgisinterface.h>
#include <qgsproject.h>
#include "qgsapplication.h"
#include "rulesDialog.h"
#include "topolTest.h"

@@ -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
@@ -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>

0 comments on commit 86695a9

Please sign in to comment.
You can’t perform that action at this time.