A tree view widget showing a Workspace hierarchy.
#include <Workspace/Presentation/workspacetreewidget.h>
◆ WorkspaceTreeWidget() [1/2]
- Parameters
-
controller | The controller that this tree widget should keep itself in sync with. The widget does not take ownership of the controller. |
parent | Parent widget. |
When using this constructor, the tree widget will not take ownership of controller. This is the preferred constructor, but it is not always possible to use it. Specifically, it cannot be used to create a widget in Qt Designer.
◆ WorkspaceTreeWidget() [2/2]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
This constructor would not normally be used in client code. It exists primarily to facilitate the use of WorkspaceTreeWidget in Qt Designer. You will generally need to call setController() after construction to give the widget the controller you want. This constructor creates an internal controller object which will be deleted if setController() is called.
- See also
- setController()
◆ ~WorkspaceTreeWidget()
◆ clicked
◆ collapseAll()
◆ doubleClicked
◆ expandAll()
◆ getWorkspace()
- Returns
- The root workspace of the controller.
◆ setController
- Parameters
-
controller | The workspace controller that this tree widget should use. If it is a null pointer, the function call has no effect. |
Normally, this function is only ever called once or not at all. The only time it is generally needed is if a WorkspaceTreeWidget has been created in Qt Designer and it needs to share a workspace controller with another widget. That association has to be done by creating a controller outside of the widget and calling this function with that controller. The other widget would also use the same controller too.
◆ setFilterFlags()
void setFilterFlags |
( |
WorkspaceModelFilter::FilterFlags |
flags | ) |
|
|
protected |
◆ setShowFilterToolBar()
void setShowFilterToolBar |
( |
bool |
val | ) |
|
|
protected |