| 10 | #include <QThread> |
| 11 | |
| 12 | class AddLibraryDialog : public QDialog, protected Themable |
| 13 | { |
| 14 | Q_OBJECT |
| 15 | public: |
| 16 | AddLibraryDialog(QWidget *parent = nullptr); |
| 17 | |
| 18 | protected: |
| 19 | void applyTheme(const Theme &theme) override; |
| 20 | |
| 21 | private: |
| 22 | QLabel *imgLabel; |
| 23 | QLabel *nameLabel; |
| 24 | QLabel *textLabel; |
| 25 | QLineEdit *path; |
| 26 | QLineEdit *nameEdit; |
| 27 | QPushButton *find; |
| 28 | QPushButton *accept; |
| 29 | QPushButton *cancel; |
| 30 | void setupUI(); |
| 31 | public slots: |
| 32 | void add(); |
| 33 | void findPath(); |
| 34 | void close(); |
| 35 | void nameSetted(const QString &text); |
| 36 | void pathSetted(const QString &text); |
| 37 | signals: |
| 38 | void addLibrary(QString target, QString name); |
| 39 | }; |
| 40 | |
| 41 | #endif |
nothing calls this directly
no outgoing calls
no test coverage detected