X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Ffontselector.h;h=e830517a67d3bc8fafdd0ce27b725c4f074523f5;hp=8a36e8c240dc9ef0c70b9d6d16913cac54100400;hb=52209badc8e769e50aa3019b63689dda0e79e9d0;hpb=4a5065255e652dd0c301bac0db41b7afb777ef49 diff --git a/src/uisupport/fontselector.h b/src/uisupport/fontselector.h index 8a36e8c2..e830517a 100644 --- a/src/uisupport/fontselector.h +++ b/src/uisupport/fontselector.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 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_