Q_OBJECT
public:
+ enum {
+ BookRole = Qt::UserRole + 1,
+ };
+
static Library *instance();
static void close();
int rowCount(const QModelIndex & parent = QModelIndex()) const;
void setCurrent(int index);
signals:
- void bookAdded();
- void bookRemoved(int index);
void currentBookChanged();
private: