Go to the documentation of this file.
30 #include <QTextBrowser>
41 setOrientation(Qt::Vertical);
45 help_ =
new QTextBrowser;
46 help_->setOpenExternalLinks(
true);
51 setStretchFactor(0, 1000);
52 setCollapsible(0,
false);
55 _sizes.push_back(1000);
67 QString body_text =
property->getDescription();
68 QString heading =
property->getName();
69 body_text.replace(
"\n",
"<br>");
70 QString html =
"<html><body><strong>" + heading +
"</strong><br>" + body_text +
"</body></html>";
83 QList<int> _sizes = sizes();
84 config.mapSetValue(
"Tree Height", _sizes.at(0));
85 config.mapSetValue(
"Help Height", _sizes.at(1));
94 if (
config.mapGetInt(
"Tree Height", &tree_height) &&
config.mapGetInt(
"Help Height", &help_height))
97 _sizes.push_back(tree_height);
98 _sizes.push_back(help_height);
void showHelpForProperty(const Property *property)
A single element of a property tree, with a name, value, description, and possibly children.
void save(Config config) const
Write state to the given Config.
void load(const Config &config)
Read state from the given Config.
PropertyTreeWidget * property_tree_
PropertyTreeWithHelp(QWidget *parent=nullptr)
Configuration data storage class.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:10