PCManFM-Qt
Main Page
Classes
Files
File List
libfm-qt
fontbutton.h
1
/*
2
3
Copyright (C) 2013 Hong Jen Yee (PCMan) <pcman.tw@gmail.com>
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License along
16
with this program; if not, write to the Free Software Foundation, Inc.,
17
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*/
19
20
21
#ifndef FM_FONTBUTTON_H
22
#define FM_FONTBUTTON_H
23
24
#include "libfmqtglobals.h"
25
#include <QPushButton>
26
27
28
namespace
Fm
{
29
30
class
LIBFM_QT_API
FontButton
:
public
QPushButton {
31
Q_OBJECT
32
public
:
33
explicit
FontButton
(QWidget* parent = 0);
34
virtual
~
FontButton
();
35
36
QFont font() {
37
return
font_;
38
}
39
40
void
setFont(QFont font);
41
42
Q_SIGNALS:
43
void
changed();
44
45
private
Q_SLOTS:
46
void
onClicked();
47
48
private
:
49
QFont font_;
50
};
51
52
}
53
54
#endif // FM_FONTBUTTON_H
Fm
Definition:
appchoosercombobox.cpp:26
Fm::FontButton
Definition:
fontbutton.h:30
Generated on Tue Jul 26 2016 09:47:21 for PCManFM-Qt by
1.8.11