ui: Added show errors button to title bar of incomplete files (issue #246)
* Shows all errors within the file and all included files.
This commit is contained in:
@@ -158,6 +158,7 @@ void QtErrorView::initView()
|
||||
|
||||
{
|
||||
m_allButton = new QPushButton("");
|
||||
m_allButton->setObjectName("screen_button");
|
||||
connect(m_allButton, &QPushButton::clicked,
|
||||
[=]()
|
||||
{
|
||||
@@ -173,17 +174,17 @@ void QtErrorView::initView()
|
||||
|
||||
|
||||
{
|
||||
QPushButton* editButton = new QPushButton("Edit Project");
|
||||
connect(editButton, &QPushButton::clicked,
|
||||
m_editButton = new QPushButton("Edit Project");
|
||||
m_editButton->setObjectName("screen_button");
|
||||
connect(m_editButton, &QPushButton::clicked,
|
||||
[]()
|
||||
{
|
||||
MessageProjectEdit().dispatch();
|
||||
}
|
||||
);
|
||||
checkboxes->addWidget(editButton);
|
||||
checkboxes->addWidget(m_editButton);
|
||||
|
||||
editButton->setToolTip("edit project");
|
||||
editButton->setIcon(QPixmap(QString::fromStdWString(ResourcePaths::getGuiPath().concatenate(L"code_view/images/edit.png").wstr())));
|
||||
m_editButton->setToolTip("edit project");
|
||||
}
|
||||
|
||||
checkboxes->addSpacing(10);
|
||||
@@ -308,6 +309,11 @@ void QtErrorView::setStyleSheet() const
|
||||
|
||||
m_helpButton->setColor(QColor(ColorScheme::getInstance()->getColor("table/text/normal").c_str()));
|
||||
|
||||
m_editButton->setIcon(utility::createButtonIcon(
|
||||
ResourcePaths::getGuiPath().concatenate(L"code_view/images/edit.png"),
|
||||
"window/button"
|
||||
));
|
||||
|
||||
m_table->updateRows();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user