X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Ffontselector.h;h=e830517a67d3bc8fafdd0ce27b725c4f074523f5;hp=7f9a745d025dc153739ff4e78fc154fbe553bb0b;hb=cc6e7c08709c4e761e2fd9c2e322751015497003;hpb=68878dc8366f2f4a0afe132847aad9a51a80cdbf diff --git a/src/uisupport/fontselector.h b/src/uisupport/fontselector.h index 7f9a745d..e830517a 100644 --- a/src/uisupport/fontselector.h +++ b/src/uisupport/fontselector.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,38 +18,36 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef FONTSELECTOR_H_ -#define FONTSELECTOR_H_ +#pragma once + +#include "uisupport-export.h" #include #include -class FontSelector : public QWidget +class UISUPPORT_EXPORT FontSelector : public QWidget { Q_OBJECT Q_PROPERTY(QFont selectedFont READ selectedFont WRITE setSelectedFont) -public : - FontSelector(QWidget *parent = 0); +public: + FontSelector(QWidget* parent = nullptr); - inline const QFont &selectedFont() const { return _font; } + inline const QFont& selectedFont() const { return _font; } public slots: - void setSelectedFont(const QFont &font); + void setSelectedFont(const QFont& font); signals: - void fontChanged(const QFont &); + void fontChanged(const QFont&); protected: - void changeEvent(QEvent *e); + void changeEvent(QEvent* e) override; protected slots: void chooseFont(); private: QFont _font; - QLabel *_demo; + QLabel* _demo; }; - - -#endif // FONTSELECTOR_H_