From b47fb140a32e47c3fb6f61e53ae57af1c6ca972e Mon Sep 17 00:00:00 2001 From: sbh Date: Fri, 23 May 2014 12:13:39 +0400 Subject: [PATCH] Issue #21 xml property renamed "text" -> "title". --- src/Config/Config_Keywords.h | 2 +- src/ConstructionPlugin/plugin-Construction.xml | 6 +++--- src/PartSetPlugin/plugin-PartSet.xml | 6 +++--- src/SketchPlugin/plugin-Sketch.xml | 10 +++++----- src/XGUI/XGUI_PropertyPanel.cpp | 1 + src/XGUI/XGUI_Workshop.cpp | 1 + 6 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/Config/Config_Keywords.h b/src/Config/Config_Keywords.h index 25433ffa9..2056a658b 100644 --- a/src/Config/Config_Keywords.h +++ b/src/Config/Config_Keywords.h @@ -34,7 +34,7 @@ const static char* _ID = "id"; //const static char* WORKBENCH_ID = "id"; //const static char* GROUP_ID = "id"; //const static char* FEATURE_ID = "id"; -const static char* FEATURE_TEXT = "text"; +const static char* FEATURE_TEXT = "title"; const static char* FEATURE_TOOLTIP = "tooltip"; const static char* FEATURE_ICON = "icon"; const static char* FEATURE_KEYSEQUENCE = "keysequence"; diff --git a/src/ConstructionPlugin/plugin-Construction.xml b/src/ConstructionPlugin/plugin-Construction.xml index 26a27bc83..8e8699687 100644 --- a/src/ConstructionPlugin/plugin-Construction.xml +++ b/src/ConstructionPlugin/plugin-Construction.xml @@ -1,11 +1,11 @@ - + - - + + diff --git a/src/PartSetPlugin/plugin-PartSet.xml b/src/PartSetPlugin/plugin-PartSet.xml index 4b3391da8..07438b2d2 100644 --- a/src/PartSetPlugin/plugin-PartSet.xml +++ b/src/PartSetPlugin/plugin-PartSet.xml @@ -1,9 +1,9 @@ - - - + + + diff --git a/src/SketchPlugin/plugin-Sketch.xml b/src/SketchPlugin/plugin-Sketch.xml index ab6db0ae8..706d85f3b 100644 --- a/src/SketchPlugin/plugin-Sketch.xml +++ b/src/SketchPlugin/plugin-Sketch.xml @@ -1,16 +1,16 @@ - - diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index 506748471..ccf0469cf 100644 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -24,6 +24,7 @@ XGUI_PropertyPanel::XGUI_PropertyPanel(QWidget* theParent) this->setWindowTitle(tr("Property Panel")); QAction* aViewAct = this->toggleViewAction(); this->setObjectName(XGUI::PROP_PANEL); + setStyleSheet("::title { position: relative; padding-left: 5px; text-align: left center }"); QWidget* aContent = new QWidget(this); QVBoxLayout* aMainLay = new QVBoxLayout(aContent); diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 40a31159a..db3d1b214 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -662,6 +662,7 @@ QDockWidget* XGUI_Workshop::createObjectBrowser(QWidget* theParent) QDockWidget* aObjDock = new QDockWidget(theParent); aObjDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea); aObjDock->setWindowTitle(tr("Object browser")); + aObjDock->setStyleSheet("::title { position: relative; padding-left: 5px; text-align: left center }"); myObjectBrowser = new XGUI_ObjectsBrowser(aObjDock); connect(myObjectBrowser, SIGNAL(activePartChanged(FeaturePtr)), this, SLOT(changeCurrentDocument(FeaturePtr))); aObjDock->setWidget(myObjectBrowser); -- 2.39.2