Remove unused destructor

move get state text to its own function
This commit is contained in:
Chocobo1
2016-01-25 13:54:13 +08:00
parent a56b745429
commit 5c4470ec07
2 changed files with 64 additions and 58 deletions

View File

@@ -47,7 +47,6 @@ class TransferListDelegate: public QItemDelegate
public:
TransferListDelegate(QObject *parent);
~TransferListDelegate();
void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const;
QWidget* createEditor(QWidget*, const QStyleOptionViewItem &, const QModelIndex &) const;
@@ -56,6 +55,9 @@ public:
// the rows shrink if the text's height is smaller than the icon's height.
// This happens because icon from the 'name' column is no longer drawn.
QSize sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const;
private:
QString getStatusString(const int state) const;
};
#endif // TRANSFERLISTDELEGATE_H