00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef ACCOUNTVIEWDELEGATE_H
00019 #define ACCOUNTVIEWDELEGATE_H
00020
00021
00022 #include <QItemDelegate>
00023
00024
00025 #include <KComboBox>
00026 #include <KDE/KLocale>
00027 #include <KIcon>
00028 #include <KStandardDirs>
00029 #include <KDebug>
00030
00034 class AccountViewDelegate : public QItemDelegate
00035 {
00036 Q_OBJECT
00037
00038 public:
00039
00044 AccountViewDelegate( QObject *parent = 0 );
00045
00052 QWidget* createEditor( QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &index ) const;
00053
00060 void setEditorData( QWidget *editor, const QModelIndex &index ) const;
00061
00069 void setModelData( QWidget *editor, QAbstractItemModel *model, const QModelIndex &index ) const;
00070
00076 void updateEditorGeometry( QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex& ) const;
00077
00083 KIcon picActive;
00084
00090 KIcon picNotActive;
00091
00092
00093
00094 };
00095
00096 #endif // ACCOUNTVIEWDELEGATE_H