Skip to content

Commit

Permalink
Revert TypeHeader changes
Browse files Browse the repository at this point in the history
Signed-off-by: Nate Koenig <nate@openrobotics.org>
  • Loading branch information
Nate Koenig committed Nov 5, 2021
1 parent 27fe1da commit 0e4e559
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions src/gui/plugins/component_inspector/TypeHeader.qml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,11 @@ import QtQuick.Controls.Styles 1.4

Rectangle {
id: typeHeader
height: headerTextId.height
width: headerTextId.width
height: headerText.height
width: headerText.width
color: "transparent"
property string headerText: ""
property string headerToolTip: ""

function tooltipText(_model) {
if (headerToolTip !== undefined && headerToolTip !== "" ) {
return headerToolTip
}

if (model === null)
return "Unknown component"

Expand All @@ -48,14 +42,8 @@ Rectangle {
}

Text {
id: headerTextId
text: {
if (headerText === undefined || headerText === "") {
model && model.shortName ? model.shortName : ''
} else {
headerText
}
}
id: headerText
text: model && model.shortName ? model.shortName : ''
color: Material.theme == Material.Light ? "#444444" : "#bbbbbb"
font.pointSize: 12

Expand Down

0 comments on commit 0e4e559

Please sign in to comment.