Changeset View
Changeset View
Standalone View
Standalone View
src/PackageModel/PackageView.h
Show All 26 Lines | |||||
27 | { | 27 | { | ||
28 | Q_OBJECT | 28 | Q_OBJECT | ||
29 | public: | 29 | public: | ||
30 | explicit PackageView(QWidget *parent = 0); | 30 | explicit PackageView(QWidget *parent = 0); | ||
31 | 31 | | |||
32 | int selectionCount() const; | 32 | int selectionCount() const; | ||
33 | 33 | | |||
34 | protected Q_SLOTS: | 34 | protected Q_SLOTS: | ||
35 | void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); | | |||
36 | void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected); | 35 | void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected); | ||
37 | 36 | | |||
38 | public Q_SLOTS: | 37 | public Q_SLOTS: | ||
39 | void updateView(); | 38 | void updateView(); | ||
40 | 39 | | |||
41 | signals: | 40 | signals: | ||
42 | void currentPackageChanged(const QModelIndex ¤t); | 41 | void currentPackageChanged(const QModelIndex ¤t); | ||
43 | void selectionEmpty(); | 42 | void selectionEmpty(); | ||
44 | void selectionMulti(); | 43 | void selectionMulti(); | ||
45 | }; | 44 | }; | ||
46 | 45 | | |||
47 | #endif | 46 | #endif |