]>
cloud.milkyroute.net Git - dolphin.git/blob - src/settings/viewmodes/dolphinfontrequester.h
2 * SPDX-FileCopyrightText: 2008 Peter Penz <peter.penz19@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0-or-later
7 #ifndef DOLPHINFONTREQUESTER_H
8 #define DOLPHINFONTREQUESTER_H
17 * @brief Allows to select between using the system font or a custom font.
19 class DolphinFontRequester
: public QWidget
30 explicit DolphinFontRequester(QWidget
* parent
);
31 ~DolphinFontRequester() override
;
33 void setMode(Mode mode
);
37 * Returns the custom font (see DolphinFontRequester::customFont()),
38 * if the mode is \a CustomFont, otherwise the system font is
41 QFont
currentFont() const;
43 void setCustomFont(const QFont
& font
);
44 QFont
customFont() const;
47 /** Is emitted, if the font has been changed. */
51 void openFontDialog();
52 void changeMode(int index
);
55 QComboBox
* m_modeCombo
;
56 QPushButton
* m_chooseFontButton
;