ui: Fixed switching code view mode shows active reference

This commit is contained in:
Eberhard Graether
2018-04-12 20:22:27 +02:00
parent 0489cac94d
commit a18aa0b9a6
5 changed files with 58 additions and 7 deletions
+19 -1
View File
@@ -821,12 +821,30 @@ void QtCodeNavigator::nextReference(bool fromUI)
void QtCodeNavigator::setModeList()
{
if (m_mode == MODE_LIST)
{
return;
}
m_single->clickedSnippetButton();
}
void QtCodeNavigator::setModeSingle()
{
m_list->maximizeFirstFile();
if (m_mode == MODE_SINGLE)
{
return;
}
QtCodeFile* file = m_list->getFirstFileWithActiveLocationId().first;
if (file)
{
file->clickedMaximizeButton();
}
else
{
m_list->maximizeFirstFile();
}
}
void QtCodeNavigator::showCurrentReference(bool fromUI)