git-svn-id: svn://db.shs.com.ru/libs@563 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#include "ui_containers_view.h"
|
||||
#include <QDebug>
|
||||
#include <QWidget>
|
||||
#include <QAbstractItemModel>
|
||||
#include <QStyledItemDelegate>
|
||||
#include "piqt.h"
|
||||
#ifdef PIP_INTROSPECTION
|
||||
# include "piintrospection_containers_p.h"
|
||||
@@ -43,6 +45,14 @@ public slots:
|
||||
};
|
||||
|
||||
|
||||
class ContainersDelegate: public QStyledItemDelegate {
|
||||
Q_OBJECT
|
||||
public:
|
||||
ContainersDelegate(QAbstractItemModel * m) {model = m;}
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem & option, const QModelIndex &index) const override;
|
||||
QAbstractItemModel * model;
|
||||
};
|
||||
|
||||
|
||||
|
||||
class ContainersView: public QWidget, private Ui::ContainersView
|
||||
@@ -58,7 +68,6 @@ public:
|
||||
protected:
|
||||
void changeEvent(QEvent * e);
|
||||
|
||||
QStringList src_header;
|
||||
ContainersModel * model;
|
||||
|
||||
private slots:
|
||||
|
||||
Reference in New Issue
Block a user