Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Show tooltips for layer style dock labeling tabs
(cherry-picked from 7d822f0)
  • Loading branch information
nyalldawson committed Jul 19, 2016
1 parent 09cc759 commit abb013e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/qgslabelinggui.cpp
Expand Up @@ -478,6 +478,14 @@ QgsLabelingGui::QgsLabelingGui( QgsVectorLayer* layer, QgsMapCanvas* mapCanvas,
void QgsLabelingGui::setDockMode( bool enabled )
{
mOptionsTab->setVisible( enabled );
mOptionsTab->setTabToolTip( 0, tr( "Text" ) );
mOptionsTab->setTabToolTip( 1, tr( "Formatting" ) );
mOptionsTab->setTabToolTip( 2, tr( "Buffer" ) );
mOptionsTab->setTabToolTip( 3, tr( "Background" ) );
mOptionsTab->setTabToolTip( 4, tr( "Shadow" ) );
mOptionsTab->setTabToolTip( 5, tr( "Placement" ) );
mOptionsTab->setTabToolTip( 6, tr( "Rendering" ) );

mLabelingOptionsListFrame->setVisible( !enabled );
groupBox_mPreview->setVisible( !enabled );
mDockMode = enabled;
Expand Down

0 comments on commit abb013e

Please sign in to comment.