From 3caa2fe4677c4c49c3ffd15e9cf7f443e6dc0d3a Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Thu, 6 Sep 2018 20:06:25 -0700 Subject: [PATCH] Added icon to TaskPanel tab in CombiView to indicate if an edit session is in progress. --- src/Gui/CombiView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Gui/CombiView.cpp b/src/Gui/CombiView.cpp index c0e7a29349..38e6c62160 100644 --- a/src/Gui/CombiView.cpp +++ b/src/Gui/CombiView.cpp @@ -90,9 +90,12 @@ CombiView::~CombiView() void CombiView::showDialog(Gui::TaskView::TaskDialog *dlg) { + static QIcon icon = Gui::BitmapFactory().pixmap("edit-edit.svg"); + // switch to the TaskView tab oldTabIndex = tabs->currentIndex(); tabs->setCurrentIndex(1); + tabs->setTabIcon(1, icon); // set the dialog taskPanel->showDialog(dlg); } @@ -105,8 +108,11 @@ void CombiView::closeDialog() void CombiView::closedDialog() { + static QIcon icon = QIcon(); + // dialog has been closed tabs->setCurrentIndex(oldTabIndex); + tabs->setTabIcon(1, icon); } void CombiView::showTreeView()