You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.4 KiB
61 lines
1.4 KiB
#ifndef breezeexceptionmodel_h |
|
#define breezeexceptionmodel_h |
|
////////////////////////////////////////////////////////////////////////////// |
|
// breezeexceptionmodel.h |
|
// ------------------- |
|
// |
|
// SPDX-FileCopyrightText: 2009 Hugo Pereira Da Costa <hugo.pereira@free.fr> |
|
// |
|
// SPDX-License-Identifier: MIT |
|
////////////////////////////////////////////////////////////////////////////// |
|
|
|
#include "breeze.h" |
|
#include "breezelistmodel.h" |
|
#include "breezesettings.h" |
|
|
|
namespace Breeze |
|
{ |
|
//* qlistview for object counters |
|
class ExceptionModel : public ListModel<InternalSettingsPtr> |
|
{ |
|
public: |
|
//* number of columns |
|
enum { nColumns = 3 }; |
|
|
|
//* column type enumeration |
|
enum ColumnType { |
|
ColumnEnabled, |
|
ColumnType, |
|
ColumnRegExp, |
|
}; |
|
|
|
//*@name methods reimplemented from base class |
|
//@{ |
|
|
|
//* return data for a given index |
|
QVariant data(const QModelIndex &index, int role) const override; |
|
|
|
//* header data |
|
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; |
|
|
|
//* number of columns for a given index |
|
int columnCount(const QModelIndex &) const override |
|
{ |
|
return nColumns; |
|
} |
|
|
|
//@} |
|
|
|
protected: |
|
//* sort |
|
void privateSort(int, Qt::SortOrder) override |
|
{ |
|
} |
|
|
|
private: |
|
//* column titles |
|
static const QString m_columnTitles[nColumns]; |
|
}; |
|
|
|
} |
|
#endif
|
|
|