src: More fixes for release

* Show declname in java import error
* Don't clear window stack when saving preferences
* Fixed spacing in source group UI, status view and error view
* Resize graph scene rect when widget is resized
* Graph node centering respect no animation preference
* Fixed undoing of view commands
* Avoid scrollbar jump when restoring graph scroll position
* Deactivate local symbols in code when clicking into empty space
This commit is contained in:
Eberhard Graether
2017-06-08 00:35:31 +02:00
parent 610dbf5bfb
commit 3e62367af0
13 changed files with 65 additions and 63 deletions
+3 -2
View File
@@ -68,7 +68,7 @@ void QtErrorView::initView()
QWidget* widget = QtViewWidgetWrapper::getWidgetOfView(this);
QBoxLayout* layout = new QVBoxLayout();
layout->setContentsMargins(0, 0, 0, 5);
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(0);
widget->setLayout(layout);
@@ -107,7 +107,8 @@ void QtErrorView::initView()
// Setup Checkboxes
QBoxLayout* checkboxes = new QHBoxLayout();
checkboxes->addSpacing(15);
checkboxes->setContentsMargins(10, 0, 0, 0);
checkboxes->setSpacing(0);
{
m_showFatals = createFilterCheckbox("fatals", m_errorFilter.fatal, checkboxes);
+7 -1
View File
@@ -82,6 +82,7 @@ void QtGraphView::initView()
connect(view, SIGNAL(emptySpaceClicked()), this, SLOT(clickedInEmptySpace()));
connect(view, SIGNAL(characterKeyPressed(QChar)), this, SLOT(pressedCharacterKey(QChar)));
connect(view, SIGNAL(resized()), this, SLOT(resized()));
m_scrollSpeedChangeListenerHorizontal.setScrollBar(view->horizontalScrollBar());
m_scrollSpeedChangeListenerVertical.setScrollBar(view->verticalScrollBar());
@@ -337,6 +338,11 @@ void QtGraphView::scrolled(int)
MessageScrollGraph(view->horizontalScrollBar()->value(), view->verticalScrollBar()->value()).dispatch();
}
void QtGraphView::resized()
{
doResize();
}
void QtGraphView::trailDepthChanged(int)
{
if (m_trailDepthSlider->value() == m_trailDepthSlider->maximum())
@@ -1065,7 +1071,7 @@ void QtGraphView::createTransition()
anim->setDuration(300);
if (!remainingNodes.size() || m_scrollToTop)
if (!remainingNodes.size() || m_scrollToTop || m_restoreScroll)
{
connect(anim, SIGNAL(finished()), this, SLOT(updateScrollBars()));
}
+2
View File
@@ -62,7 +62,9 @@ private slots:
void finishedTransition();
void clickedInEmptySpace();
void pressedCharacterKey(QChar c);
void scrolled(int);
void resized();
void trailDepthChanged(int);
+3 -7
View File
@@ -37,7 +37,7 @@ void QtStatusView::initView()
QWidget* widget = QtViewWidgetWrapper::getWidgetOfView(this);
QBoxLayout* layout = new QVBoxLayout();
layout->setContentsMargins(0, 0, 0, 5);
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(0);
widget->setLayout(layout);
@@ -57,7 +57,8 @@ void QtStatusView::initView()
// Setup filters
QHBoxLayout* filters = new QHBoxLayout();
filters->addSpacing(15);
filters->setContentsMargins(10, 0, 0, 0);
filters->setSpacing(25);
const StatusFilter filter = ApplicationSettings::getInstance()->getStatusFilter();
m_showInfo = createFilterCheckbox("info", filters, filter & StatusType::STATUS_INFO);
@@ -100,7 +101,6 @@ QCheckBox* QtStatusView::createFilterCheckbox(const QString& name, QBoxLayout* l
);
layout->addWidget(checkbox);
layout->addSpacing(25);
return checkbox;
}
@@ -168,9 +168,5 @@ void QtStatusView::setStyleSheet() const
QPalette palette(m_showErrors->palette());
palette.setColor(QPalette::WindowText, QColor(ColorScheme::getInstance()->getColor("error/text/normal").c_str()));
// widget->setStyleSheet(
// utility::getStyleSheet(ResourcePaths::getGuiPath() + "error_view/error_view.css").c_str()
// );
m_table->updateRows();
}