Changeset View
Changeset View
Standalone View
Standalone View
src/dialogs/titletemplatedialog.h
Show All 18 Lines | |||||
19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #ifndef TITLETEMPLATEDIALOG_H | 22 | #ifndef TITLETEMPLATEDIALOG_H | ||
23 | #define TITLETEMPLATEDIALOG_H | 23 | #define TITLETEMPLATEDIALOG_H | ||
24 | 24 | | |||
25 | #include "ui_templateclip_ui.h" | 25 | #include "ui_templateclip_ui.h" | ||
26 | 26 | | |||
27 | class QResizeEvent; | ||||
28 | | ||||
27 | class TitleTemplateDialog : public QDialog | 29 | class TitleTemplateDialog : public QDialog | ||
28 | { | 30 | { | ||
29 | Q_OBJECT | 31 | Q_OBJECT | ||
30 | 32 | | |||
31 | public: | 33 | public: | ||
32 | explicit TitleTemplateDialog(const QString &folder, QWidget *parent = nullptr); | 34 | explicit TitleTemplateDialog(const QString &folder, QWidget *parent = nullptr); | ||
33 | QString selectedTemplate() const; | 35 | QString selectedTemplate() const; | ||
34 | QString selectedText() const; | 36 | QString selectedText() const; | ||
35 | 37 | | |||
38 | protected: | ||||
39 | void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE; | ||||
40 | | ||||
36 | private: | 41 | private: | ||
37 | Ui::TemplateClip_UI m_view; | 42 | Ui::TemplateClip_UI m_view; | ||
38 | 43 | | |||
39 | private slots: | 44 | private slots: | ||
40 | void updatePreview(); | 45 | void updatePreview(); | ||
41 | }; | 46 | }; | ||
42 | 47 | | |||
43 | #endif | 48 | #endif | ||
44 | 49 | |