Updraft  1.0
Open source glider flight visualisation tool.
settingsdelegate.h
Go to the documentation of this file.
00001 #ifndef UPDRAFT_SRC_CORE_SETTINGSDELEGATE_H_
00002 #define UPDRAFT_SRC_CORE_SETTINGSDELEGATE_H_
00003 
00004 #include <QtGui>
00005 
00006 namespace Updraft {
00007 namespace Core {
00008 
00010 class SettingsDelegate: public QStyledItemDelegate {
00011  public:
00012   explicit SettingsDelegate(QObject *parent = 0);
00013 
00019   QWidget* createEditor(QWidget* parent,
00020     const QStyleOptionViewItem& option, const QModelIndex& index) const;
00021 
00026   void setModelData(QWidget* editor, QAbstractItemModel* model,
00027     const QModelIndex& index) const;
00028 
00034   void setEditorData(QWidget* editor, const QModelIndex& index) const;
00035 };
00036 
00037 }  // End namespace Core
00038 }  // End namespace Updraft
00039 
00040 #endif  // UPDRAFT_SRC_CORE_SETTINGSDELEGATE_H_
00041 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines