Sidebar to show informations about a node. More...
#include <infosidebar.h>
Public Member Functions | |
InfoSidebar (const QString &title, QWidget *parent=0, Qt::WindowFlags flags=0) | |
~InfoSidebar () | |
void | setData (Node *data) |
void | clearInfos () |
Sidebar to show informations about a node.
This sidebar shows informations about a node. It is allowed at the left and right dockingwidgetarea.
It shows, the caption, an icon, the creation and modification date, the labels and all available metainformations of the node.
InfoSidebar::InfoSidebar | ( | const QString & | title, | |
QWidget * | parent = 0 , |
|||
Qt::WindowFlags | flags = 0 | |||
) |
The constructor.
Constructs a InfoSidebar which is a child of parent and has the provided window flags. The InfoSidebar will be placed in the right dock widget area.
The window title is set to title. This title is used when the InfoSidebar is docked and undocked. It is also used in the context menu provided by MainWindow. The parameters will be passed to the QDockWidget constructor.
title | The title of the InfoSidebar. | |
parent | The parent of this InfoSidebar. | |
flags | The window flags of this InfoSidebar. |
InfoSidebar::~InfoSidebar | ( | ) |
The destructor
Destroys the object.
void InfoSidebar::clearInfos | ( | ) |
Clear out the informations shown at this InfoSidebar.
void InfoSidebar::setData | ( | Node * | data | ) |
Provide this InfoSidebar with a node to show information about.
data | The node wich informations will be displayed. |