mirror of
https://github.com/AskDavis/Casinotest.git
synced 2026-01-05 04:39:47 -08:00
Adverts widget v0.2 added:
*Querying webAPI for adverts content; *Starting browsers new tab with url specified in json file *Basic QML items and models *Overview tab layout changes *Storing images on harddrive (temporary solution) *Sending queries to webAPI straight from widget (temporary solution) coming next: -store whole json file as url/desription need to be stored for further use -display images of adverts from QImage, not from file stored on harddrive -hide/show adverts button tweaking -proper webAPI base class for querying various servers for data (prypto for instance) *
This commit is contained in:
19
src/qt/qtquick_controls/cpp/listiteminterface.h
Normal file
19
src/qt/qtquick_controls/cpp/listiteminterface.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef LISTITEMINTERFACE_H
|
||||
#define LISTITEMINTERFACE_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class ListItemInterface : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
ListItemInterface( QObject* a_pParent = 0 ) : QObject( a_pParent ){} /** Constructor **/
|
||||
virtual ~ListItemInterface() {} /** Destructor **/
|
||||
|
||||
virtual QVariant GetData( int a_iRole ) const = 0; /** Data Accesor **/
|
||||
virtual bool SetData( int a_iRole, QVariant a_variantData ) = 0; /** Sets given value at specified role **/
|
||||
virtual QHash<int, QByteArray> RoleNames() const = 0; /** User roles in model **/
|
||||
};
|
||||
|
||||
#endif // LISTITEMINTERFACE_H
|
||||
Reference in New Issue
Block a user