Commit ac3c0f39 authored by Jan Möbius's avatar Jan Möbius
Browse files

Added update all button to scenegraph treeview widget

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17720 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a437d8e4
......@@ -548,6 +548,16 @@ void QtSceneGraphWidget::expandAll() {
resizeColumnToContents(0);
}
void QtSceneGraphWidget::updateAll() {
if(rootNode_) {
update(rootNode_);
QTreeWidget::expandAll();
}
resizeColumnToContents(0);
}
//-----------------------------------------------------------------------------
void
......@@ -639,9 +649,11 @@ QtSceneGraphDialog( QWidget* _parent,
// Add buttons to hbox layout
QPushButton* expAll = new QPushButton("Expand all");
QPushButton* collAll = new QPushButton("Collapse all");
QPushButton* updAll = new QPushButton("Update all");
butLayout->addWidget(expAll);
butLayout->addWidget(collAll);
butLayout->addWidget(updAll);
l->addWidget(buttons);
l->addWidget(sgw_);
......@@ -653,6 +665,7 @@ QtSceneGraphDialog( QWidget* _parent,
connect(expAll, SIGNAL(pressed()), sgw_, SLOT(expandAll()));
connect(collAll, SIGNAL(pressed()), sgw_, SLOT(collapseAll()));
connect(updAll, SIGNAL(pressed()), sgw_, SLOT(updateAll()));
}
......
......@@ -239,6 +239,8 @@ private:
void expandAll();
void updateAll();
public:
/** \brief Add a node widget handler
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment