ui: Fixes for release
* improved color scheme contrasts * fixed code view single not updated to font size change * fixed tooltip shown when hovering error location * fixed previous reference count shown when fulltext search has no results
This commit is contained in:
@@ -459,11 +459,23 @@ void QtCodeArea::contextMenuEvent(QContextMenuEvent* event)
|
||||
|
||||
void QtCodeArea::focusTokenIds(const std::vector<Id>& tokenIds)
|
||||
{
|
||||
if (m_navigator->hasErrors() && tokenIds.size() == 1)
|
||||
{
|
||||
QtCodeField::focusTokenIds(tokenIds);
|
||||
return;
|
||||
}
|
||||
|
||||
MessageFocusIn(tokenIds, TOOLTIP_ORIGIN_CODE).dispatch();
|
||||
}
|
||||
|
||||
void QtCodeArea::defocusTokenIds(const std::vector<Id>& tokenIds)
|
||||
{
|
||||
if (m_navigator->hasErrors() && tokenIds.size() == 1)
|
||||
{
|
||||
QtCodeField::defocusTokenIds(tokenIds);
|
||||
return;
|
||||
}
|
||||
|
||||
MessageFocusOut(tokenIds).dispatch();
|
||||
}
|
||||
|
||||
|
||||
@@ -88,8 +88,6 @@ QtCodeNavigator::QtCodeNavigator(QWidget* parent)
|
||||
navigation->setLayout(navLayout);
|
||||
layout->addWidget(navigation);
|
||||
|
||||
refreshStyle();
|
||||
|
||||
QHBoxLayout* separatorLayout = new QHBoxLayout();
|
||||
|
||||
QWidget* widget = new QWidget();
|
||||
@@ -128,6 +126,8 @@ QtCodeNavigator::QtCodeNavigator(QWidget* parent)
|
||||
setModeList();
|
||||
}
|
||||
|
||||
refreshStyle();
|
||||
|
||||
connect(this, &QtCodeNavigator::scrollRequest, this, &QtCodeNavigator::handleScrollRequest, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
@@ -260,6 +260,8 @@ void QtCodeNavigator::clearCodeSnippets()
|
||||
void QtCodeNavigator::clearFile()
|
||||
{
|
||||
m_single->clearFile();
|
||||
|
||||
updateRefLabel();
|
||||
}
|
||||
|
||||
void QtCodeNavigator::clearCaches()
|
||||
@@ -543,6 +545,8 @@ void QtCodeNavigator::refreshStyle()
|
||||
m_nextButton->setIconSize(QSize(12, 12));
|
||||
m_listButton->setIconSize(QSize(14, 14));
|
||||
m_fileButton->setIconSize(QSize(14, 14));
|
||||
|
||||
clearCaches();
|
||||
}
|
||||
|
||||
void QtCodeNavigator::scrollToValue(int value, bool inListMode)
|
||||
|
||||
Reference in New Issue
Block a user