Skip to content

Commit 5657a36

Browse files
committedOct 12, 2016
[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)
1 parent 4422461 commit 5657a36

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
 

‎src/app/qgslabelinggui.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2126,6 +2126,20 @@ void QgsLabelingGui::on_mChkNoObstacle_toggled( bool active )
21262126
mObstaclePriorityFrame->setEnabled( active );
21272127
}
21282128

2129+
void QgsLabelingGui::on_chkLineOrientationDependent_toggled( bool active )
2130+
{
2131+
if ( active )
2132+
{
2133+
chkLineAbove->setText( tr( "Left of line" ) );
2134+
chkLineBelow->setText( tr( "Right of line" ) );
2135+
}
2136+
else
2137+
{
2138+
chkLineAbove->setText( tr( "Above line" ) );
2139+
chkLineBelow->setText( tr( "Below line" ) );
2140+
}
2141+
}
2142+
21292143
void QgsLabelingGui::on_mToolButtonConfigureSubstitutes_clicked()
21302144
{
21312145
QgsPanelWidget* panel = QgsPanelWidget::findParentPanel( this );

‎src/app/qgslabelinggui.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class APP_EXPORT QgsLabelingGui : public QWidget, private Ui::QgsLabelingGuiBase
9696
void on_mDirectSymbLeftToolBtn_clicked();
9797
void on_mDirectSymbRightToolBtn_clicked();
9898
void on_mChkNoObstacle_toggled( bool active );
99+
void on_chkLineOrientationDependent_toggled( bool active );
99100

100101
void on_mToolButtonConfigureSubstitutes_clicked();
101102

0 commit comments

Comments
 (0)
Please sign in to comment.