Skip to content
Permalink
Browse files

[labeling] When in line orientation placement mode, rename above/

below options to left of line/right of line

Makes their meaning clearer

(cherry-picked from c36c242)
  • Loading branch information
nyalldawson committed Oct 12, 2016
1 parent 4422461 commit 5657a36edfaa8f7921bd76483e1f98c6fc3a69a8
Showing with 15 additions and 0 deletions.
  1. +14 −0 src/app/qgslabelinggui.cpp
  2. +1 −0 src/app/qgslabelinggui.h
@@ -2126,6 +2126,20 @@ void QgsLabelingGui::on_mChkNoObstacle_toggled( bool active )
mObstaclePriorityFrame->setEnabled( active );
}

void QgsLabelingGui::on_chkLineOrientationDependent_toggled( bool active )
{
if ( active )
{
chkLineAbove->setText( tr( "Left of line" ) );
chkLineBelow->setText( tr( "Right of line" ) );
}
else
{
chkLineAbove->setText( tr( "Above line" ) );
chkLineBelow->setText( tr( "Below line" ) );
}
}

void QgsLabelingGui::on_mToolButtonConfigureSubstitutes_clicked()
{
QgsPanelWidget* panel = QgsPanelWidget::findParentPanel( this );
@@ -96,6 +96,7 @@ class APP_EXPORT QgsLabelingGui : public QWidget, private Ui::QgsLabelingGuiBase
void on_mDirectSymbLeftToolBtn_clicked();
void on_mDirectSymbRightToolBtn_clicked();
void on_mChkNoObstacle_toggled( bool active );
void on_chkLineOrientationDependent_toggled( bool active );

void on_mToolButtonConfigureSubstitutes_clicked();

0 comments on commit 5657a36

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