7 #ifndef FONTLISTMODEL_H
8 #define FONTLISTMODEL_H
10 #include <QAbstractTableModel>
11 #include <QItemDelegate>
56 int rowCount(
const QModelIndex&)
const;
61 int columnCount(
const QModelIndex&)
const;
66 QVariant data(
const QModelIndex & index,
67 int role = Qt::DisplayRole)
const;
70 bool setData(
const QModelIndex & index,
const QVariant & value,
71 int role = Qt::EditRole);
74 Qt::ItemFlags flags(
const QModelIndex &index)
const;
77 QList<QString>
fonts() {
return m_font_names; };
79 void setFonts(QList<QString> f);
84 QString nameForIndex(
const QModelIndex & index);
86 bool isLive()
const {
return m_embedMethod.count() == 0; }
99 QList<ScFace> m_font_values;
100 QList<QString> m_font_names;
101 QList<EmbedMethod> m_embedMethod;
110 QVariant headerData(
int section,
111 Qt::Orientation orientation,
112 int role = Qt::DisplayRole)
const;
the Document Class
Definition: scribusdoc.h:90
QList< QString > fonts()
Returns the font list.
Definition: fontlistmodel.h:77
Model for font views. It contains quite all informations about fonts available to display in Qt4 view...
Definition: fontlistmodel.h:30
Main class SCFonts. Subclass of QDict. This class replaces the previous SCFonts typedef...
Definition: scfonts.h:36