Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kfileplacesview.cpp
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | |||||
54 | 54 | | |||
55 | #define LATERAL_MARGIN 4 | 55 | #define LATERAL_MARGIN 4 | ||
56 | #define CAPACITYBAR_HEIGHT 6 | 56 | #define CAPACITYBAR_HEIGHT 6 | ||
57 | 57 | | |||
58 | class KFilePlacesViewDelegate : public QAbstractItemDelegate | 58 | class KFilePlacesViewDelegate : public QAbstractItemDelegate | ||
59 | { | 59 | { | ||
60 | Q_OBJECT | 60 | Q_OBJECT | ||
61 | public: | 61 | public: | ||
62 | KFilePlacesViewDelegate(KFilePlacesView *parent); | 62 | explicit KFilePlacesViewDelegate(KFilePlacesView *parent); | ||
63 | virtual ~KFilePlacesViewDelegate(); | 63 | ~KFilePlacesViewDelegate() Q_DECL_OVERRIDE; | ||
64 | QSize sizeHint(const QStyleOptionViewItem &option, | 64 | QSize sizeHint(const QStyleOptionViewItem &option, | ||
65 | const QModelIndex &index) const Q_DECL_OVERRIDE; | 65 | const QModelIndex &index) const Q_DECL_OVERRIDE; | ||
66 | void paint(QPainter *painter, | 66 | void paint(QPainter *painter, | ||
67 | const QStyleOptionViewItem &option, | 67 | const QStyleOptionViewItem &option, | ||
68 | const QModelIndex &index) const Q_DECL_OVERRIDE; | 68 | const QModelIndex &index) const Q_DECL_OVERRIDE; | ||
69 | 69 | | |||
70 | int iconSize() const; | 70 | int iconSize() const; | ||
71 | void setIconSize(int newSize); | 71 | void setIconSize(int newSize); | ||
▲ Show 20 Lines • Show All 1376 Lines • Show Last 20 Lines |