5#ifndef QDESIGNER_APPFONTWIDGET_H
6#define QDESIGNER_APPFONTWIDGET_H
8#include <QtWidgets/qgroupbox.h>
9#include <QtWidgets/qdialog.h>
18class QDesignerSettingsInterface;
32 static void save(QDesignerSettingsInterface *s,
const QString &prefix);
33 static void restore(
const QDesignerSettingsInterface *s,
const QString &prefix);
37 void slotRemoveFiles();
39 void selectionChanged(
const QItemSelection & selected,
const QItemSelection & deselected);
43 QToolButton *m_addButton;
44 QToolButton *m_removeButton;
45 QToolButton *m_removeAllButton;
static void removeFonts(const QModelIndexList &selectedIndexes, AppFontModel *model, QWidget *dialogParent)
static constexpr auto fontFileKeyC
std::pair< QString, int > FileNameFontIdPair
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)