kget
autopastemodel.cpp
Go to the documentation of this file.
28 AutoPasteDelegate::AutoPasteDelegate(QAbstractItemModel *types, QAbstractItemModel *syntaxes, QObject *parent)
35 QWidget *AutoPasteDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
92 void AutoPasteDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
124 void AutoPasteDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
130 QSize AutoPasteDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
209 return (m_data[row].syntax == Wildcard ? i18n("Escape sequences") : i18n("Regular expression"));
275 void AutoPasteModel::addItem(TypeData dataType, PatternSyntaxData patternSyntax, const QString &pattern)
280 void AutoPasteModel::addItems(const QList<int> &dataTypes, const QList<int> patternSyntaxes, const QStringList &patterns)
321 addItems(Settings::autoPasteTypes(), Settings::autoPastePatternSyntaxes(), Settings::autoPastePatterns());
343 QStringList names = QStringList() << "AutoPastePatterns" << "AutoPasteTypes" << "AutoPastePatternSyntaxes";
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Definition: autopastemodel.cpp:229
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
Definition: autopastemodel.cpp:92
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
Definition: autopastemodel.cpp:259
int rowCount(const QModelIndex &index=QModelIndex()) const
Definition: autopastemodel.cpp:148
static QList< int > autoPastePatternSyntaxes()
Get AutoPastePatternSyntaxes.
Definition: settings.h:297
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: autopastemodel.cpp:35
AutoPasteDelegate(QAbstractItemModel *types, QAbstractItemModel *syntaxes, QObject *parent=0)
Definition: autopastemodel.cpp:28
Definition: autopastemodel.h:55
Qt::ItemFlags flags(const QModelIndex &index) const
Definition: autopastemodel.cpp:222
Definition: autopastemodel.h:59
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: autopastemodel.cpp:166
static void setAutoPastePatterns(const QStringList &v)
Set AutoPastePatterns.
Definition: settings.h:249
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: autopastemodel.cpp:183
static void setAutoPastePatternSyntaxes(const QList< int > &v)
Set AutoPastePatternSyntaxes.
Definition: settings.h:287
void setEditorData(QWidget *editor, const QModelIndex &index) const
Definition: autopastemodel.cpp:63
Definition: autopastemodel.h:50
int columnCount(const QModelIndex &index=QModelIndex()) const
Definition: autopastemodel.cpp:157
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: autopastemodel.cpp:124
Definition: autopastemodel.h:51
bool moveItem(int sourceRow, int destinationRow)
Moves an item to a new position.
Definition: autopastemodel.cpp:297
Definition: autopastemodel.h:52
void addItem(TypeData dataType, PatternSyntaxData patternSyntax, const QString &pattern)
Adds an an item.
Definition: autopastemodel.cpp:275
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: autopastemodel.cpp:130
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.