From 3d981141e4597bcd049c69ebd7f4dddd2b0d824e Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 20 Dec 2019 16:35:48 +0300 Subject: [PATCH] Set names for dockable windows. --- src/XGUI/XGUI_FacesPanel.cpp | 2 ++ src/XGUI/XGUI_Workshop.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/XGUI/XGUI_FacesPanel.cpp b/src/XGUI/XGUI_FacesPanel.cpp index 4ce3f4896..e623a7e90 100644 --- a/src/XGUI/XGUI_FacesPanel.cpp +++ b/src/XGUI/XGUI_FacesPanel.cpp @@ -91,6 +91,8 @@ XGUI_FacesPanel::XGUI_FacesPanel(QWidget* theParent, XGUI_Workshop* theWorkshop) : QDockWidget(theParent), myIsActive(false), myWorkshop(theWorkshop) { setWindowTitle(tr("Hide Faces")); + setObjectName("Hide Faces"); + QAction* aViewAct = toggleViewAction(); setStyleSheet("::title { position: relative; padding-left: 5px; text-align: left center }"); diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 56e784cb5..6bd2844a7 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -1472,6 +1472,7 @@ QDockWidget* XGUI_Workshop::createObjectBrowser(QWidget* theParent) myObjectBrowser->initialize(myModule->rootNode()); myModule->customizeObjectBrowser(myObjectBrowser); aObjDock->setWidget(myObjectBrowser); + aObjDock->setObjectName("Object browser"); connect(myObjectBrowser, SIGNAL(sizeChanged()), SLOT(onDockSizeChanged())); -- 2.39.2