From 7167ce41b61d2ba2cdb526777a4233eb84a3b66a Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sat, 6 Dec 2014 17:33:25 -0500 Subject: Imported Upstream version 2.99.6 --- SQLiteStudio3/guiSQLiteStudio/common/fontedit.h | 43 +++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 SQLiteStudio3/guiSQLiteStudio/common/fontedit.h (limited to 'SQLiteStudio3/guiSQLiteStudio/common/fontedit.h') diff --git a/SQLiteStudio3/guiSQLiteStudio/common/fontedit.h b/SQLiteStudio3/guiSQLiteStudio/common/fontedit.h new file mode 100644 index 0000000..e68463b --- /dev/null +++ b/SQLiteStudio3/guiSQLiteStudio/common/fontedit.h @@ -0,0 +1,43 @@ +#ifndef FONTEDIT_H +#define FONTEDIT_H + +#include "guiSQLiteStudio_global.h" +#include + +namespace Ui { + class FontEdit; +} + +class GUI_API_EXPORT FontEdit : public QWidget +{ + Q_OBJECT + + Q_PROPERTY(QFont font READ getFont WRITE setFont NOTIFY fontChanged) + + public: + explicit FontEdit(QWidget *parent = 0); + ~FontEdit(); + + QFont getFont() const; + + public slots: + void setFont(QFont arg); + + protected: + void changeEvent(QEvent *e); + + private: + void init(); + void updateFont(); + + Ui::FontEdit *ui = nullptr; + QFont font; + + private slots: + void browse(); + + signals: + void fontChanged(const QFont& font); +}; + +#endif // FONTEDIT_H -- cgit v1.2.3