1
#ifndef oxygenexceptionmodel_h
2
#define oxygenexceptionmodel_h
3
//////////////////////////////////////////////////////////////////////////////
4
// oxygenexceptionmodel.h
7
// Copyright (c) 2009 Hugo Pereira Da Costa <hugo.pereira@free.fr>
9
// Permission is hereby granted, free of charge, to any person obtaining a copy
10
// of this software and associated documentation files (the "Software"), to
11
// deal in the Software without restriction, including without limitation the
12
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
13
// sell copies of the Software, and to permit persons to whom the Software is
14
// furnished to do so, subject to the following conditions:
16
// The above copyright notice and this permission notice shall be included in
17
// all copies or substantial portions of the Software.
19
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
26
//////////////////////////////////////////////////////////////////////////////
28
#include "oxygenlistmodel.h"
29
#include "../oxygenexception.h"
34
//! qlistview for object counters
35
class ExceptionModel: public ListModel<Exception>
41
enum { nColumns = 3 };
43
//! column type enumeration
51
//!@name methods reimplemented from base class
54
// return data for a given index
55
virtual QVariant data(const QModelIndex &index, int role) const;
58
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
60
//! number of columns for a given index
61
virtual int columnCount(const QModelIndex& ) const
69
virtual void privateSort( int, Qt::SortOrder )
75
static const QString _columnTitles[ nColumns ];