tuchulcha  0.10.1
Graphical Workflow Configuration Editor
LogViewProxyModel.h
Go to the documentation of this file.
1 /* Copyright (C) 2013 Jens-Malte Gottfried
2 
3  This file is part of Tuchulcha.
4 
5  Tuchulcha is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  Tuchulcha is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with Tuchulcha. If not, see <http://www.gnu.org/licenses/>.
17  */
25 #ifndef LOG_VIEW_PROXY_MODEL_H
26 #define LOG_VIEW_PROXY_MODEL_H
27 
28 #include <QSortFilterProxyModel>
29 
31 class LogViewProxyModel : public QSortFilterProxyModel
32 {
33  Q_OBJECT
34 
35 public:
37  explicit LogViewProxyModel(QObject* parent=0);
38  virtual ~LogViewProxyModel();
39 
41 
46  virtual QVariant data(
47  const QModelIndex& index, int role=Qt::DisplayRole) const;
48 
50  static QRegExp debugFilterRegex();
51 };
52 
53 #endif // LOG_VIEW_PROXY_MODEL_H
static QRegExp debugFilterRegex()
regexp for filtering out debug lines
LogViewProxyModel(QObject *parent=0)
constructor
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
handle highlighting
class for highlighting and handling filtering of log output