Skip to content

Commit 627d25c

Browse files
Sandro Santilliwonder-sk
Sandro Santilli
authored andcommittedNov 8, 2011
Disable options related to interpretation and threatment of above/below line labeling when online labeling is requested.
1 parent 62ed7ef commit 627d25c

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
 

‎src/app/qgslabelinggui.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ QgsLabelingGui::QgsLabelingGui( QgsPalLabeling* lbl, QgsVectorLayer* layer, QgsM
190190
connect( chkBuffer, SIGNAL( toggled( bool ) ), this, SLOT( updateUi() ) );
191191
connect( chkScaleBasedVisibility, SIGNAL( toggled( bool ) ), this, SLOT( updateUi() ) );
192192
connect( chkFormattedNumbers, SIGNAL( toggled( bool ) ), this, SLOT( updateUi() ) );
193+
connect( chkLineAbove, SIGNAL( toggled( bool ) ), this, SLOT( updateUi() ) );
194+
connect( chkLineBelow, SIGNAL( toggled( bool ) ), this, SLOT( updateUi() ) );
193195

194196
// setup connection to changes in the placement
195197
QRadioButton* placementRadios[] =
@@ -518,6 +520,9 @@ void QgsLabelingGui::updateUi()
518520
spinScaleMax->setEnabled( scale );
519521

520522
spinDecimals->setEnabled( chkFormattedNumbers->isChecked() );
523+
524+
bool offline = chkLineAbove->isChecked() || chkLineBelow->isChecked();
525+
offlineOptions->setEnabled ( offline );
521526
}
522527

523528
void QgsLabelingGui::changeBufferColor()

‎src/ui/qgslabelingguibase.ui

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,10 @@
821821
</property>
822822
</widget>
823823
</item>
824+
825+
<item><widget class="QWidget" name="offlineOptions"><!-- { -->
826+
<layout class="QVBoxLayout" name="offlineOptionsLayout">
827+
824828
<item>
825829
<layout class="QHBoxLayout" name="horizontalLayout_13">
826830
<item>
@@ -849,6 +853,7 @@
849853
</item>
850854
</layout>
851855
</item>
856+
852857
<item>
853858
<layout class="QHBoxLayout" name="horizontalLayout_14">
854859
<item>
@@ -887,6 +892,11 @@
887892
</item>
888893
</layout>
889894
</item>
895+
896+
</layout><!-- offlineOptionsLayout -->
897+
</widget><!-- offlineOptions } -->
898+
</item>
899+
890900
</layout>
891901
</widget>
892902
<widget class="QWidget" name="pageOptionsEmpty"/>

0 commit comments

Comments
 (0)
Please sign in to comment.