kdevelop/kdevplatform/outputview
outputmodel.cpp
Go to the documentation of this file.
194 std::set<int> m_errorItems; // Indices of all items that we want to move to using previous and next
199 model->beginInsertRows( QModelIndex(), model->rowCount(), model->rowCount() + items.size() - 1);
369 //We have to ensure that startrow is >= rowCount - 1 to get a positive value from the % operation.
370 int startrow = rowCount() + (d->isValidIndex(currentIdx, rowCount()) ? currentIdx.row() : rowCount()) - 1;
void setFilteringStrategy(const OutputFilterStrategy ¤tStrategy)
Definition: outputmodel.cpp:415
Definition: outputmodel.h:50
OutputModel(const QUrl &builddir, QObject *parent=nullptr)
Definition: outputmodel.cpp:241
This filter strategy filters out errors (no actions) from Static code analysis tools (Cppcheck...
Definition: outputfilteringstrategies.h:112
Definition: outputmodel.h:37
QModelIndex nextHighlightIndex(const QModelIndex ¤t) override
Called when the user wants to see next item.
Definition: outputmodel.cpp:337
QModelIndex firstHighlightIndex() override
Called when the user wants to see first item.
Definition: outputmodel.cpp:320
QModelIndex previousHighlightIndex(const QModelIndex ¤t) override
Called when the user wants to see previous item.
Definition: outputmodel.cpp:365
bool isEmpty() const
void appendLines(const QStringList &)
Definition: outputmodel.cpp:455
void beginResetModel()
void timeout()
This filter strategy checks if a given line contains output that is defined as an error (or an action...
Definition: outputfilteringstrategies.h:61
void clear()
bool isValid() const
Holds all metadata of a given compiler/script/whatever output line.
Definition: filtereditem.h:40
QVariant headerData(int, Qt::Orientation, int=Qt::DisplayRole) const override
Definition: outputmodel.cpp:283
void activate(const QModelIndex &index) override
IOutputViewModel interfaces.
Definition: outputmodel.cpp:288
void allDone()
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
bool isEmpty() const
int row() const
void progress(const KDevelop::IFilterStrategy::Progress &progress)
If the current filter strategy supports it, reports progress information.
This file contains Concrete strategies for filtering output in KDevelop output model.
void reserve(int size)
QModelIndex lastHighlightIndex() override
Called when the user wants to see last item.
Definition: outputmodel.cpp:398
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
This filter strategy is for not applying any filtering at all.
Definition: outputfilteringstrategies.h:45
static const int BATCH_SIZE
Number of lines that are processed in one go before we notify the GUI thread about the result...
Definition: outputmodel.cpp:51
This filter strategy filters out errors (no actions) from Python and PHP scripts. ...
Definition: outputfilteringstrategies.h:82
QObject(QObject *parent)
const QAbstractItemModel * model() const
~OutputModel() override
bool isEmpty() const
This filter strategy filters out errors (no actions) from runtime debug output of native applications...
Definition: outputfilteringstrategies.h:100
bool isRelative() const
QVariant data(const QModelIndex &, int=Qt::DisplayRole) const override
QAbstractItemModel interfaces.
Definition: outputmodel.cpp:255
QUrl resolved(const QUrl &relative) const
int rowCount(const QModelIndex &=QModelIndex()) const override
Definition: outputmodel.cpp:274
int column() const
static const int BATCH_AGGREGATE_TIME_DELAY
Time in ms that we wait in the parse worker for new incoming lines before actually processing them...
Definition: outputmodel.cpp:58
void endResetModel()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int size() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 16 2019 02:15:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 16 2019 02:15:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.