kget
#include <autopastemodel.h>
Public Types | |
enum | DataType { Type = 0, Pattern, PatternSyntax } |
enum | PatternSyntaxData { Wildcard = 0, RegExp } |
enum | TypeData { Include = 0, Exclude } |
Public Slots | |
void | load () |
void | resetDefaults () |
void | save () |
Public Member Functions | |
AutoPasteModel (QObject *parent=0) | |
~AutoPasteModel () | |
void | addItem (TypeData dataType, PatternSyntaxData patternSyntax, const QString &pattern) |
int | columnCount (const QModelIndex &index=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
bool | moveItem (int sourceRow, int destinationRow) |
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
int | rowCount (const QModelIndex &index=QModelIndex()) const |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
Detailed Description
Definition at line 44 of file autopastemodel.h.
Member Enumeration Documentation
Enumerator | |
---|---|
Type | |
Pattern | |
PatternSyntax |
Definition at line 49 of file autopastemodel.h.
Enumerator | |
---|---|
Wildcard | |
RegExp |
Definition at line 58 of file autopastemodel.h.
Enumerator | |
---|---|
Include | |
Exclude |
Definition at line 54 of file autopastemodel.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 139 of file autopastemodel.cpp.
AutoPasteModel::~AutoPasteModel | ( | ) |
Definition at line 144 of file autopastemodel.cpp.
Member Function Documentation
void AutoPasteModel::addItem | ( | TypeData | dataType, |
PatternSyntaxData | patternSyntax, | ||
const QString & | pattern | ||
) |
Adds an an item.
- Note
- do not use this for loading data
- See also
- load()
Definition at line 275 of file autopastemodel.cpp.
int AutoPasteModel::columnCount | ( | const QModelIndex & | index = QModelIndex() | ) | const |
Definition at line 157 of file autopastemodel.cpp.
QVariant AutoPasteModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 183 of file autopastemodel.cpp.
Qt::ItemFlags AutoPasteModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 222 of file autopastemodel.cpp.
QVariant AutoPasteModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 166 of file autopastemodel.cpp.
|
slot |
bool AutoPasteModel::moveItem | ( | int | sourceRow, |
int | destinationRow | ||
) |
Moves an item to a new position.
- Parameters
-
sourceRow the current row of the selected item destinationRow is the new row before the move, i.e. if sourceRow was not removed from the model
- See also
- QAbstractItemModel::beginMoveRows()
Definition at line 297 of file autopastemodel.cpp.
bool AutoPasteModel::removeRows | ( | int | row, |
int | count, | ||
const QModelIndex & | parent = QModelIndex() |
||
) |
Definition at line 259 of file autopastemodel.cpp.
|
slot |
Resets the model to the default data.
Definition at line 341 of file autopastemodel.cpp.
int AutoPasteModel::rowCount | ( | const QModelIndex & | index = QModelIndex() | ) | const |
Definition at line 148 of file autopastemodel.cpp.
|
slot |
bool AutoPasteModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
Definition at line 229 of file autopastemodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.