kget
transfersgrouptree.cpp
Go to the documentation of this file.
30 QWidget *TransfersGroupDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
49 void TransfersGroupDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
Definition: transfertreemodel.h:120
virtual int rowCount(const QModelIndex &parent) const =0
TransfersGroupTree(QWidget *parent=0)
Definition: transfersgrouptree.cpp:72
static void renameGroup(const QString &oldName, const QString &newName)
Changes the name of the group.
Definition: kget.cpp:158
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
Definition: transfergrouphandler.h:30
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
Definition: transfersgrouptree.cpp:49
void setCurrentIndex(const QModelIndex &index)
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
static QList< TransferGroupHandler * > selectedTransferGroups()
Definition: kget.cpp:469
void setEditorData(QWidget *editor, const QModelIndex &index) const
Definition: transfersgrouptree.cpp:39
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const
Definition: transfersviewdelegate.cpp:290
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: transfersviewdelegate.cpp:274
void openPersistentEditor(const QModelIndex &index)
The BasicTransfersViewDelegate handles the setting of the status of a group.
Definition: transfersviewdelegate.h:81
bool isValid() const
void setColumnWidth(int column, int width)
QString number(int n, int base)
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: transfersgrouptree.cpp:30
static bool addGroup(const QString &groupName)
Adds a new group to the KGet.
Definition: kget.cpp:101
void changeIcon(const QString &icon)
Definition: transfersgrouptree.cpp:136
void deleteSelectedGroup()
Definition: transfersgrouptree.cpp:125
virtual void rowsInserted(const QModelIndex &parent, int start, int end)
Definition: transfersgrouptree.h:24
bool isEmpty() const
QModelIndexList selectedRows(int column) const
void setItemDelegate(QAbstractItemDelegate *delegate)
TransfersGroupDelegate(QAbstractItemView *parent)
Definition: transfersgrouptree.cpp:25
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
Definition: transfersviewdelegate.cpp:300
void renameSelectedGroup()
Definition: transfersgrouptree.cpp:130
static void delGroups(QList< TransferGroupHandler * > groups, bool askUser=true)
Removes specific groups from the KGet.
Definition: kget.cpp:132
QVariant data(int role) const
virtual void setModel(QAbstractItemModel *model)
int column() const
void edit(const QModelIndex &index)
void setModel(QAbstractItemModel *model)
Definition: transfersgrouptree.cpp:78
QAbstractItemModel * model() const
QModelIndex currentIndex() const
QString toString() const
Definition: transfertreemodel.h:119
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.