lokalize
qamodel.cpp
Go to the documentation of this file.
136 rule.sources=domListToRegExpVector(m_rules.at(j).toElement().elementsByTagName(ruleTagNames[Source]));
137 rule.falseFriends=domListToRegExpVector(m_rules.at(j).toElement().elementsByTagName(ruleTagNames[FalseFriend]));
193 QDomElement category=m_doc.elementsByTagName("qa").at(0).toElement().elementsByTagName("category").at(0).toElement();
208 QDomElement category=m_doc.elementsByTagName("qa").at(0).toElement().elementsByTagName("category").at(0).toElement();
230 entry.insertAfter(m_doc.createElement(ruleTagNames[item.column()]), sources.at(sources.size()-1));
QDomNodeList elementsByTagName(const QString &tagname) const
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Definition: qamodel.cpp:220
QDomNode appendChild(const QDomNode &newChild)
void append(const T &value)
void setMinimal(bool minimal)
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
void reserve(int alloc)
QDomNode insertAfter(const QDomNode &newChild, const QDomNode &refChild)
const T & at(int i) const
QString join(const QString &separator) const
int size() const
QDomElement toElement() const
bool isValid() const
int count() const
void append(const T &value)
QString text() const
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
void endInsertRows()
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
QDomNodeList elementsByTagName(const QString &tagname) const
Definition: qamodel.h:40
bool isEmpty() const
void beginRemoveRows(const QModelIndex &parent, int first, int last)
int row() const
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: qamodel.cpp:89
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
Definition: qamodel.h:32
void reserve(int size)
QDomNode removeChild(const QDomNode &oldChild)
virtual void close()
void beginInsertRows(const QModelIndex &parent, int first, int last)
static QVector< QRegExp > domListToRegExpVector(const QDomNodeList &nodes)
Definition: qamodel.cpp:47
QVariant data(const QModelIndex &, int role=Qt::DisplayRole) const
Definition: qamodel.cpp:111
static QStringList domListToStringList(const QDomNodeList &nodes)
Definition: qamodel.cpp:30
void save(QTextStream &str, int indent) const
int column() const
QVariant headerData(int section, Qt::Orientation, int role=Qt::DisplayRole) const
Definition: qamodel.cpp:96
int size() const
QDomElement createElement(const QString &tagName)
void endRemoveRows()
QString toString() const
Definition: qamodel.h:41
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
QDomNode at(int index) const
typedef ItemFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.