ui: Fixed color scheme not updated on refresh

This commit is contained in:
Eberhard Graether
2016-10-21 15:38:07 +02:00
parent e557e04000
commit 9473e62aaf
5 changed files with 4 additions and 19 deletions
+4 -7
View File
@@ -158,7 +158,6 @@ void Application::createAndLoadProject(const FilePath& projectSettingsFilePath)
m_mainView->hideStartScreen();
m_componentManager->clearComponents();
m_componentManager->refreshViews();
}
}
else
@@ -248,14 +247,12 @@ void Application::handleMessage(MessageRefresh* message)
loadSettings();
}
if (message->uiOnly)
if (m_hasGUI)
{
if (m_hasGUI)
{
m_componentManager->refreshViews();
}
m_componentManager->refreshViews();
}
else
if (!message->uiOnly)
{
refreshProject(message->all);
}
-1
View File
@@ -127,7 +127,6 @@ void QtCodeView::scrollToLine(const FilePath filePath, unsigned int line)
void QtCodeView::doRefreshView()
{
setStyleSheet();
m_widget->clearCodeSnippets();
QtCodeArea::clearAnnotationColors();
QtHighlighter::clearHighlightingRules();
-9
View File
@@ -131,15 +131,6 @@ void QtErrorView::setErrorId(Id errorId)
void QtErrorView::doRefreshView()
{
m_model->removeRows(0, m_model->rowCount());
for (ErrorInfo error : m_errors)
{
addErrorToTable(error);
}
m_table->updateRows();
setStyleSheet();
}
-1
View File
@@ -304,7 +304,6 @@ void QtGraphView::doResize()
void QtGraphView::doRefreshView()
{
doClear();
doResize();
QtGraphicsView* view = getView();
-1
View File
@@ -61,7 +61,6 @@ void QtSearchView::doRefreshView()
{
setStyleSheet();
m_widget->refreshStyle();
m_widget->setMatches(std::vector<SearchMatch>());
}
void QtSearchView::doSetMatches(const std::vector<SearchMatch>& matches)