Skip to content

Commit c36c242

Browse files
committedOct 11, 2016
[labeling] When in line orientation placement mode, rename above/
below options to left of line/right of line Makes their meaning clearer
1 parent 01a402c commit c36c242

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed
 

‎src/app/qgslabelinggui.cpp

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

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

‎src/app/qgslabelinggui.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ class APP_EXPORT QgsLabelingGui : public QWidget, private Ui::QgsLabelingGuiBase
9494
void on_mDirectSymbLeftToolBtn_clicked();
9595
void on_mDirectSymbRightToolBtn_clicked();
9696
void on_mChkNoObstacle_toggled( bool active );
97+
void on_chkLineOrientationDependent_toggled( bool active );
9798

9899
void on_mToolButtonConfigureSubstitutes_clicked();
99100

‎src/ui/qgslabelingguibase.ui

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@
618618
<item>
619619
<widget class="QStackedWidget" name="mLabelStackedWidget">
620620
<property name="currentIndex">
621-
<number>0</number>
621+
<number>5</number>
622622
</property>
623623
<widget class="QWidget" name="mLabelPage_Text">
624624
<layout class="QVBoxLayout" name="verticalLayout_6">
@@ -1439,8 +1439,8 @@ font-style: italic;</string>
14391439
<rect>
14401440
<x>0</x>
14411441
<y>0</y>
1442-
<width>466</width>
1443-
<height>356</height>
1442+
<width>342</width>
1443+
<height>338</height>
14441444
</rect>
14451445
</property>
14461446
<layout class="QVBoxLayout" name="verticalLayout_14">
@@ -2074,8 +2074,8 @@ font-style: italic;</string>
20742074
<rect>
20752075
<x>0</x>
20762076
<y>0</y>
2077-
<width>466</width>
2078-
<height>376</height>
2077+
<width>285</width>
2078+
<height>245</height>
20792079
</rect>
20802080
</property>
20812081
<layout class="QVBoxLayout" name="verticalLayout_12">
@@ -2456,7 +2456,7 @@ font-style: italic;</string>
24562456
<rect>
24572457
<x>0</x>
24582458
<y>0</y>
2459-
<width>452</width>
2459+
<width>431</width>
24602460
<height>628</height>
24612461
</rect>
24622462
</property>
@@ -3276,7 +3276,7 @@ font-style: italic;</string>
32763276
<rect>
32773277
<x>0</x>
32783278
<y>0</y>
3279-
<width>452</width>
3279+
<width>305</width>
32803280
<height>398</height>
32813281
</rect>
32823282
</property>

0 commit comments

Comments
 (0)
Please sign in to comment.