Skip to content

Commit

Permalink
[labeling] When in line orientation placement mode, rename above/
Browse files Browse the repository at this point in the history
below options to left of line/right of line

Makes their meaning clearer
  • Loading branch information
nyalldawson committed Oct 11, 2016
1 parent 01a402c commit c36c242
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
14 changes: 14 additions & 0 deletions src/app/qgslabelinggui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2124,6 +2124,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 );
Expand Down
1 change: 1 addition & 0 deletions src/app/qgslabelinggui.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,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();

Expand Down
14 changes: 7 additions & 7 deletions src/ui/qgslabelingguibase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@
<item>
<widget class="QStackedWidget" name="mLabelStackedWidget">
<property name="currentIndex">
<number>0</number>
<number>5</number>
</property>
<widget class="QWidget" name="mLabelPage_Text">
<layout class="QVBoxLayout" name="verticalLayout_6">
Expand Down Expand Up @@ -1439,8 +1439,8 @@ font-style: italic;</string>
<rect>
<x>0</x>
<y>0</y>
<width>466</width>
<height>356</height>
<width>342</width>
<height>338</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_14">
Expand Down Expand Up @@ -2074,8 +2074,8 @@ font-style: italic;</string>
<rect>
<x>0</x>
<y>0</y>
<width>466</width>
<height>376</height>
<width>285</width>
<height>245</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_12">
Expand Down Expand Up @@ -2456,7 +2456,7 @@ font-style: italic;</string>
<rect>
<x>0</x>
<y>0</y>
<width>452</width>
<width>431</width>
<height>628</height>
</rect>
</property>
Expand Down Expand Up @@ -3276,7 +3276,7 @@ font-style: italic;</string>
<rect>
<x>0</x>
<y>0</y>
<width>452</width>
<width>305</width>
<height>398</height>
</rect>
</property>
Expand Down

0 comments on commit c36c242

Please sign in to comment.