Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 201 → Rev 200

/trunk/DBViewer/delegate.h
13,7 → 13,6
#include <QMessageBox>
 
#include "iconform.h"
#include "fileform.h"
 
//#include <QMainWindow>
//! [0]
129,46 → 128,8
//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