32 lines
619 B
C++
32 lines
619 B
C++
#ifndef FFONTSETTING_H
|
|
#define FFONTSETTING_H
|
|
|
|
#include "qspinbox.h"
|
|
#include <QWidget>
|
|
#include <QFontComboBox>
|
|
#include <QComboBox>
|
|
|
|
namespace Ui {
|
|
class FFontSetting;
|
|
}
|
|
|
|
class FFontSetting : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FFontSetting(QWidget *parent = nullptr);
|
|
~FFontSetting();
|
|
QFontComboBox *cbFontStyle;
|
|
QComboBox *cbFontColor;
|
|
QSpinBox *sbFontSize;
|
|
|
|
private:
|
|
Ui::FFontSetting *ui;
|
|
|
|
void setupColorComboBox(QComboBox* comboBox);
|
|
void loadFonts(); // Убедитесь, что метод объявлен как public или private
|
|
};
|
|
|
|
#endif // FFONTSETTING_H
|