forked from qt-creator/qt-creator
callgrind: simplify inheritance tree by removing AbstractModel
This commit is contained in:
@@ -36,16 +36,9 @@
|
||||
|
||||
#include <QtGui/QStyledItemDelegate>
|
||||
|
||||
namespace Valgrind {
|
||||
namespace Callgrind {
|
||||
class AbstractModel;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Callgrind {
|
||||
namespace Internal {
|
||||
|
||||
|
||||
class CostDelegate : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -58,7 +51,7 @@ public:
|
||||
const QModelIndex &index) const;
|
||||
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
|
||||
void setModel(Valgrind::Callgrind::AbstractModel *model);
|
||||
void setModel(QAbstractItemModel *model);
|
||||
|
||||
enum CostFormat {
|
||||
/// show absolute numbers
|
||||
@@ -77,7 +70,6 @@ private:
|
||||
Private *d;
|
||||
};
|
||||
|
||||
|
||||
} // Internal
|
||||
} // Callgrind
|
||||
|
||||
|
||||
Reference in New Issue
Block a user