4#ifndef QDESIGNER_APPFONTWIDGET_H
5#define QDESIGNER_APPFONTWIDGET_H
7#include <QtWidgets/qgroupbox.h>
8#include <QtWidgets/qdialog.h>
17class QDesignerSettingsInterface;
31 static void save(QDesignerSettingsInterface *s,
const QString &prefix);
32 static void restore(
const QDesignerSettingsInterface *s,
const QString &prefix);
36 void slotRemoveFiles();
38 void selectionChanged(
const QItemSelection & selected,
const QItemSelection & deselected);
42 QToolButton *m_addButton;
43 QToolButton *m_removeButton;
44 QToolButton *m_removeAllButton;
static void removeFonts(const QModelIndexList &selectedIndexes, AppFontModel *model, QWidget *dialogParent)
static constexpr auto fontFileKeyC
bool removeAt(int index, QString *errorMessage)
void save(QDesignerSettingsInterface *s, const QString &prefix) const
int add(const QString &fontFile, QString *errorMessage)
static AppFontManager & instance()
void restore(const QDesignerSettingsInterface *s, const QString &prefix)
bool remove(int id, QString *errorMessage)
const FileNameFontIdPairs & fonts() const
bool remove(const QString &fontFile, QString *errorMessage)
void init(const AppFontManager &mgr)
int idAt(const QModelIndex &idx) const
void add(const QString &fontFile, int id)