Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 200 → Rev 201

/trunk/DBViewer/delegate.h
13,6 → 13,7
#include <QMessageBox>
 
#include "iconform.h"
#include "fileform.h"
 
//#include <QMainWindow>
//! [0]
128,8 → 129,46
//QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
};
 
class FileDelegate : public QItemDelegate
{
mutable QByteArray m_Data;
private:
// QTableView *tblView;
 
public:
FileDelegate ( QObject *parent );
 
QWidget *createEditor(
QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index) const;
 
void setEditorData(QWidget *editor,
const QModelIndex &index) const;
 
void setModelData(QWidget *editor,
QAbstractItemModel *model,
const QModelIndex &index) const;
 
 
void updateEditorGeometry(
QWidget *editor,
const QStyleOptionViewItem &option,
const QModelIndex &index) const;
 
/*
void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const;
*/
 
 
 
// void setTableView(QTableView* table);
 
 
//QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
};
 
class TimeEditDelegate : public QItemDelegate
{
Q_OBJECT