mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled
51 lines
965 B
C++
51 lines
965 B
C++
#ifndef YACREADER_LIBRARY_ITEM_WIDGET_H
|
|
#define YACREADER_LIBRARY_ITEM_WIDGET_H
|
|
|
|
#include "themable.h"
|
|
|
|
#include <QPixmap>
|
|
#include <QWidget>
|
|
|
|
class QLabel;
|
|
class QToolButton;
|
|
class QMouseEvent;
|
|
class QEvent;
|
|
|
|
class YACReaderLibraryItemWidget : public QWidget, protected Themable
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
YACReaderLibraryItemWidget(QString name, QString path, QWidget *parent = 0);
|
|
QString name;
|
|
QString path;
|
|
|
|
signals:
|
|
void selected(QString, QString);
|
|
void showOptions();
|
|
|
|
public slots:
|
|
void showUpDownButtons(bool show);
|
|
|
|
// bool eventFilter(QObject *object, QEvent *event);
|
|
void select();
|
|
void deselect();
|
|
void setName(const QString &name);
|
|
|
|
private:
|
|
QLabel *icon;
|
|
QLabel *nameLabel;
|
|
QLabel *optionsIconLabel;
|
|
|
|
QToolButton *options;
|
|
QToolButton *up;
|
|
QToolButton *down;
|
|
|
|
bool isSelected;
|
|
|
|
protected:
|
|
void applyTheme(const Theme &theme) override;
|
|
};
|
|
|
|
#endif // YACREADER_LIBRARY_ITEM_WIDGET_H
|