Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/tasksmodel.h
Show First 20 Lines • Show All 805 Lines • ▼ Show 20 Line(s) | 92 | public: | |||
---|---|---|---|---|---|
806 | * | 806 | * | ||
807 | * @param row A row index in the model. | 807 | * @param row A row index in the model. | ||
808 | * @param childRow A row index for a child of the task group at the given row. | 808 | * @param childRow A row index for a child of the task group at the given row. | ||
809 | * @returns a model index for the task at the given row, or for one of its | 809 | * @returns a model index for the task at the given row, or for one of its | ||
810 | * child tasks. | 810 | * child tasks. | ||
811 | */ | 811 | */ | ||
812 | Q_INVOKABLE QModelIndex makeModelIndex(int row, int childRow = -1) const; | 812 | Q_INVOKABLE QModelIndex makeModelIndex(int row, int childRow = -1) const; | ||
813 | 813 | | |||
814 | /** | ||||
815 | * Given a row in the model, returns a QPersistentModelIndex for it. To get an index | ||||
816 | * for a child in a task group, an optional child row may be passed as well. | ||||
817 | * | ||||
818 | * @param row A row index in the model. | ||||
819 | * @param childRow A row index for a child of the task group at the given row. | ||||
820 | * @returns a model index for the task at the given row, or for one of its | ||||
821 | * child tasks. | ||||
822 | */ | ||||
823 | Q_INVOKABLE QPersistentModelIndex makePersistentModelIndex(int row, int childRow = -1) const; | ||||
broulik: Per*s*istent | |||||
824 | | ||||
814 | void classBegin() override; | 825 | void classBegin() override; | ||
815 | void componentComplete() override; | 826 | void componentComplete() override; | ||
816 | 827 | | |||
817 | Q_SIGNALS: | 828 | Q_SIGNALS: | ||
818 | void countChanged() const; | 829 | void countChanged() const; | ||
819 | void launcherCountChanged() const; | 830 | void launcherCountChanged() const; | ||
820 | void launcherListChanged() const; | 831 | void launcherListChanged() const; | ||
821 | void anyTaskDemandsAttentionChanged() const; | 832 | void anyTaskDemandsAttentionChanged() const; | ||
Show All 33 Lines |
Per*s*istent