mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
4a104522f5
A local books database is maintained at `/data/onboard/.inkbox/LocalLibrary.db`. It contains compressed JSON read by the GUI. URGENT TODO: Fix `*** Error in '/mnt/onboard/.adds/inkbox/inkbox-bin': double free or corruption (out): 0x00648708 ***` error whenever we try to delete localLibraryWidget
26 lines
506 B
C++
26 lines
506 B
C++
#ifndef QCLICKABLELABEL_H
|
|
#define QCLICKABLELABEL_H
|
|
|
|
#include <QLabel>
|
|
#include <QWidget>
|
|
#include <Qt>
|
|
|
|
class QClickableLabel : public QLabel {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit QClickableLabel(QWidget* parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
|
|
~QClickableLabel();
|
|
|
|
signals:
|
|
void clicked();
|
|
void unclicked();
|
|
void bookID(int id);
|
|
|
|
protected:
|
|
void mousePressEvent(QMouseEvent * event);
|
|
void mouseReleaseEvent(QMouseEvent * event);
|
|
|
|
};
|
|
|
|
#endif // CLICKABLELABEL_H
|