[packagechooser] Update other parts of the window on selection

This commit is contained in:
Adriaan de Groot 2019-08-02 16:07:47 +02:00
parent f8d159dfa4
commit dc5cdbb38c
4 changed files with 45 additions and 14 deletions

View file

@ -21,6 +21,7 @@
#include <QAbstractListModel>
#include <QObject>
#include <QPixmap>
#include <QVector>
struct PackageItem
@ -32,9 +33,15 @@ struct PackageItem
QString name;
QString description;
// TODO: may be more than one
// QPixmap screenshot;
QPixmap screenshot;
/// @brief Create blank PackageItem
PackageItem();
/** @brief Creates a PackageItem from given strings
*
* This constructor sets all the text members,
* but leaves the screenshot blank. Set that separately.
*/
PackageItem( const QString& id, const QString& package, const QString& name, const QString& description );
// TODO: implement this