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
19 lines
602 B
C++
19 lines
602 B
C++
#include "qclickablelabel.h"
|
|
|
|
QClickableLabel::QClickableLabel(QWidget* parent, Qt::WindowFlags f)
|
|
: QLabel(parent) {
|
|
|
|
}
|
|
|
|
QClickableLabel::~QClickableLabel() {}
|
|
|
|
void QClickableLabel::mousePressEvent(QMouseEvent * event) {
|
|
emit clicked();
|
|
QClickableLabel::setStyleSheet("color: white; background-color: black; border-radius: 10px; padding: 10px");
|
|
}
|
|
|
|
void QClickableLabel::mouseReleaseEvent(QMouseEvent * event) {
|
|
emit unclicked();
|
|
emit bookID(objectName().toInt());
|
|
QClickableLabel::setStyleSheet("color: black; background-color: white; border-radius: 10px; padding: 10px");
|
|
}
|