From a7189ce21257b93322dfd68eaf390605f85a8bf6 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 10 Sep 2015 16:40:18 +0300 Subject: [PATCH] Issue #946: Use black color for enabled items in object browser --- src/PartSet/PartSet_Module.cpp | 8 ++++---- src/XGUI/XGUI_DataModel.cpp | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index e0b7c9774..1bc9bfbef 100755 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -836,10 +836,10 @@ void PartSet_Module::customizeObjectBrowser(QWidget* theObjectBrowser) { XGUI_ObjectsBrowser* aOB = dynamic_cast(theObjectBrowser); if (aOB) { - QLineEdit* aLabel = aOB->activeDocLabel(); - QPalette aPalet = aLabel->palette(); - aPalet.setColor(QPalette::Text, QColor(0, 72, 140)); - aLabel->setPalette(aPalet); + //QLineEdit* aLabel = aOB->activeDocLabel(); + //QPalette aPalet = aLabel->palette(); + //aPalet.setColor(QPalette::Text, QColor(0, 72, 140)); + //aLabel->setPalette(aPalet); aOB->treeView()->setExpandsOnDoubleClick(false); #ifdef ModuleDataModel connect(aOB->treeView(), SIGNAL(doubleClicked(const QModelIndex&)), diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index c08fd734b..a8fa72080 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -26,7 +26,8 @@ #include #include -#define ACTIVE_COLOR QColor(0,72,140) +#define ACTIVE_COLOR Qt::black +//#define ACTIVE_COLOR QColor(0,72,140) //#define PASSIVE_COLOR Qt::black /// Returns ResultPart object if the given object is a Part feature -- 2.39.2