Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
eab6b273
Commit
eab6b273
authored
Mar 26, 2013
by
Sebastian Eichelbaum
Browse files
[CHANGE
#263
] Roi Dock branch items now follow the name property.
parent
d522004e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/qt4gui/controlPanel/WQtBranchTreeItem.cpp
src/qt4gui/controlPanel/WQtBranchTreeItem.cpp
+6
-5
No files found.
src/qt4gui/controlPanel/WQtBranchTreeItem.cpp
View file @
eab6b273
...
...
@@ -64,10 +64,11 @@ WQtBranchTreeItem::WQtBranchTreeItem( QTreeWidgetItem* parent, boost::shared_ptr
propertyContainer
->
setLayout
(
propertyContainerLayout
);
propertyContainer
->
setObjectName
(
"propertyContainer"
);
WScaleLabel
*
l
=
new
WScaleLabel
(
QString
::
fromStdString
(
"Branch"
),
5
,
labelContainer
);
l
->
setTextInteractionFlags
(
Qt
::
NoTextInteraction
);
l
->
setToolTip
(
"The name of this branch."
);
labelContainerLayout
->
addWidget
(
l
);
WPropertyStringWidget
*
name
=
new
WPropertyStringWidget
(
branch
->
nameProperty
(),
NULL
,
m_itemWidget
);
name
->
forceInformationMode
();
name
->
disableTextInteraction
();
name
->
setToolTip
(
"The name of this branch."
);
labelContainerLayout
->
addWidget
(
name
);
// color
WPropertyColorWidget
*
color
=
new
WPropertyColorWidget
(
branch
->
colorProperty
(),
NULL
,
m_itemWidget
);
...
...
@@ -93,7 +94,7 @@ WQtBranchTreeItem::WQtBranchTreeItem( QTreeWidgetItem* parent, boost::shared_ptr
// property color
QColor
propertyCol
=
defaultCol
;
l
->
setStyleSheet
(
"background-color:"
+
labelCol
.
name
()
+
";"
);
name
->
setStyleSheet
(
"background-color:"
+
labelCol
.
name
()
+
";"
);
labelContainer
->
setStyleSheet
(
"background-color:"
+
labelCol
.
name
()
+
";"
);
propertyContainer
->
setStyleSheet
(
"QWidget#propertyContainer{ background-color:"
+
propertyCol
.
name
()
+
";}"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment