List of ButtonObject. More...
#include <UI/Types/ButtonList.h>
Public Member Functions | |
~ButtonList () | |
void | add (ButtonObject *pButton) |
Adds a button in the list. | |
void | add (const QString &title, const QUrl &source) |
Adds a new button constructs from the title and source | |
void | clear () |
Removes and delete all buttons in the list. | |
const QList< QObject * > | getList () const |
Gets the list of buttons (as QObjects) ready to be send to QML. |
List of ButtonObject.
ButtonList::~ButtonList | ( | ) |
Clear the list and deletes the buttons contained
void ButtonList::add | ( | const QString & | title, | |
const QUrl & | source | |||
) |
Adds a new button constructs from the title and source
title | ||
source | source of the image to display with the button |
void ButtonList::add | ( | ButtonObject * | pButton | ) |
Adds a button in the list.
pButton | pointer on the new button |
const QList< QObject * > ButtonList::getList | ( | ) | const [inline] |
Gets the list of buttons (as QObjects) ready to be send to QML.