Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef LAUNCHTHREADDELEGATE_H
00028 #define LAUNCHTHREADDELEGATE_H
00029
00030 #include <QItemDelegate>
00031
00032
00033 class LaunchThreadDelegate : public QItemDelegate
00034 {
00035 Q_OBJECT
00036 public:
00037 LaunchThreadDelegate(QObject *parent=0) : QItemDelegate(parent) {}
00038
00039 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
00040 const QModelIndex &index) const;
00041 void setEditorData(QWidget *editor, const QModelIndex &index) const;
00042 void setModelData(QWidget *editor, QAbstractItemModel *model,
00043 const QModelIndex &index) const;
00044 QSize sizeHint (const QStyleOptionViewItem & option, const QModelIndex & index) const;
00045 signals:
00046 void dataChanged() const;
00047 };
00048
00049 #endif // LAUNCHTHREADDELEGATE_H