Disable clipboardsharing in view only mode.
[kdenetwork.git] / kget / conf / selectdirectoryitemdelegate.h
blob5415570e1caab4201f2614838006d0d2cd24f63b
1 /* This file is part of the KDE project
3 Copyright (C) 2004 - 2007 KGet Developers <kget@kde.org>
4 Copyright (C) 2007 by Javier Goday <jgoday@gmail.com>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
12 #ifndef SELECT_DIRECTORY_ITEM_DELEGATE_H
13 #define SELECT_DIRECTORY_ITEM_DELEGATE_H
15 #include <QStyledItemDelegate>
17 class SelectDirectoryItemDelegate : public QStyledItemDelegate
19 Q_OBJECT
20 public:
21 SelectDirectoryItemDelegate(QObject *parent = 0);
23 QWidget *createEditor(QWidget *parent,
24 const QStyleOptionViewItem &option, const QModelIndex & index) const;
26 void updateEditorGeometry(QWidget *editor,
27 const QStyleOptionViewItem &option, const QModelIndex &index) const;
29 void setModelData(QWidget *editor, QAbstractItemModel *model,
30 const QModelIndex &index) const;
34 #endif