Skip to content
Permalink
Browse files

[styledock] Hide/Show back button correctly

  • Loading branch information
NathanW2 committed Jun 20, 2016
1 parent 0914b74 commit b015fb4ceae5dd8960c14b63e6879892a29b2c8b
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/gui/qgspanelwidget.cpp
@@ -127,9 +127,12 @@ void QgsPanelWidgetStack::clear()
{
widget->deleteLater();
}

}
}
mTitles.clear();
mTitleText->hide();
mBackButton->hide();
this->updateBreadcrumb();
}

void QgsPanelWidgetStack::acceptCurrentPanel()
@@ -144,8 +147,6 @@ void QgsPanelWidgetStack::acceptCurrentPanel()

void QgsPanelWidgetStack::showPanel( QgsPanelWidget *panel )
{
QgsDebugMsg( QString( "SHOW PANEL!! %1" ).arg( panel->panelTitle() ) );

mTitles.push( panel->panelTitle() );

connect( panel, SIGNAL( panelAccepted( QgsPanelWidget* ) ), this, SLOT( closePanel( QgsPanelWidget* ) ) );
@@ -161,7 +162,6 @@ void QgsPanelWidgetStack::showPanel( QgsPanelWidget *panel )

void QgsPanelWidgetStack::closePanel( QgsPanelWidget *panel )
{
QgsDebugMsg( QString( "CLOSE PANEL!! %1" ).arg( panel->panelTitle() ) );
mTitles.pop();
mStackedWidget->setCurrentIndex( mStackedWidget->currentIndex() - 1 );
mStackedWidget->removeWidget( panel );

0 comments on commit b015fb4

Please sign in to comment.
You can’t perform that action at this time.