Skip to content

Commit

Permalink
Further small fixes to labeling widget interface
Browse files Browse the repository at this point in the history
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
  • Loading branch information
wonder-sk committed Sep 24, 2015
1 parent be2cbe8 commit 9970b45
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5186,7 +5186,6 @@ void QgisApp::labeling()

QDialogButtonBox *buttonBox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Apply, Qt::Horizontal, &dlg );
layout->addWidget( buttonBox );
layout->setContentsMargins( 0, 0, 0, 0 );

dlg.setLayout( layout );

Expand All @@ -5195,7 +5194,7 @@ void QgisApp::labeling()

connect( buttonBox->button( QDialogButtonBox::Ok ), SIGNAL( clicked() ), &dlg, SLOT( accept() ) );
connect( buttonBox->button( QDialogButtonBox::Cancel ), SIGNAL( clicked() ), &dlg, SLOT( reject() ) );
connect( buttonBox->button( QDialogButtonBox::Apply ), SIGNAL( clicked() ), labelingGui, SLOT( apply() ) );
connect( buttonBox->button( QDialogButtonBox::Apply ), SIGNAL( clicked() ), labelingGui, SLOT( writeSettingsToLayer() ) );

if ( dlg.exec() )
{
Expand Down
3 changes: 1 addition & 2 deletions src/app/qgslabelingwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ class QgsLabelingWidget : public QWidget, private Ui::QgsLabelingWidget
public:
QgsLabelingWidget( QgsVectorLayer* layer, QgsMapCanvas* canvas, QWidget* parent = 0 );

public slots:
//! save config to layer
void writeSettingsToLayer();

signals:

protected slots:
void labelModeChanged( int index );
void showEngineConfigDialog();
Expand Down
3 changes: 3 additions & 0 deletions src/ui/qgsrulebasedlabelingwidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QTreeView" name="viewRules">
<property name="acceptDrops">
Expand Down

0 comments on commit 9970b45

Please sign in to comment.