From: sbh Date: Fri, 23 May 2014 08:13:39 +0000 (+0400) Subject: Issue #21 xml property renamed "text" -> "title". X-Git-Tag: V_0.2~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b47fb140a32e47c3fb6f61e53ae57af1c6ca972e;p=modules%2Fshaper.git Issue #21 xml property renamed "text" -> "title". --- 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);