Commit f5f0947d authored by Saheb Preet Singh's avatar Saheb Preet Singh

hided layers pane in a cleaner way

parent 5af8cc58
......@@ -1947,14 +1947,6 @@ void Part::slotRebuildBookmarkMenu()
void Part::enableLayers(bool enable)
{
m_sidebar->hideItem( 1, !enable );
if( enable)
{
m_sidebar->setCurrentIndex( 1 );
}
else if( m_sidebar->currentIndex() == 1 )
{
m_sidebar->setCurrentIndex( 2 );
}
}
void Part::slotShowFindBar()
......
......@@ -656,6 +656,7 @@ void Sidebar::moveSplitter(int sideWidgetSize)
void Sidebar::hideItem( int index, bool hide )
{
d->list->setRowHidden( index, hide );
setItemEnabled( index, ! hide );
}
void Sidebar::itemClicked( QListWidgetItem *item )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment