|
Schim
|
An item in a Database.
More...
#include <database.h>
Public Member Functions | |
| DatabaseItem (const QString &path, DatabaseItem *parentItem=nullptr) | |
| Construct a database item. More... | |
| QImage | getIcon () const |
| Return the icon used to represent the item in the component browser. More... | |
| void | setPath (QString path) |
| Set the path of this database item. | |
| void | setName (const QString &name) |
| Set the friendly name of the item. More... | |
An item in a Database.
|
explicit |
Construct a database item.
| path | The path of the symbol represented by this item. |
| parentItem | The parent of this item in the tree. |
This will automatically resolve whether path points to a directory, symbol file, or a !meta file.
| QImage DatabaseItem::getIcon | ( | ) | const |
Return the icon used to represent the item in the component browser.
The icon is dynamically allocated only when it is to be displayed to the user, and persists subsequently.
| void DatabaseItem::setName | ( | const QString & | name | ) |
Set the friendly name of the item.
This will normally be loaded from the symbol file (or !meta file for directories), but it can be changed manually as well.
1.8.13