Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/tasksmodel.h
Show First 20 Lines • Show All 763 Lines • ▼ Show 20 Line(s) | 90 | public: | |||
---|---|---|---|---|---|
764 | * @see groupingAppIdBlacklist | 764 | * @see groupingAppIdBlacklist | ||
765 | * @see groupingLauncherUrlBlacklist | 765 | * @see groupingLauncherUrlBlacklist | ||
766 | * | 766 | * | ||
767 | * @param index An index in this tasks model. | 767 | * @param index An index in this tasks model. | ||
768 | **/ | 768 | **/ | ||
769 | Q_INVOKABLE void requestToggleGrouping(const QModelIndex &index); | 769 | Q_INVOKABLE void requestToggleGrouping(const QModelIndex &index); | ||
770 | 770 | | |||
771 | /** | 771 | /** | ||
772 | * Moves a (top-level) task to a new position in the list. The insert | 772 | * Moves a task to a new position in the list. The insert position is | ||
773 | * position is bounded to the list start and end. | 773 | * is bounded to the list start and end. | ||
774 | * | 774 | * | ||
775 | * syncLaunchers() should be called after a set of move operations to | 775 | * syncLaunchers() should be called after a set of move operations to | ||
776 | * update the launcherList property to reflect the new order. | 776 | * update the launcherList property to reflect the new order. | ||
777 | * | 777 | * | ||
778 | * When the groupInline property is set to @c true, a move request | 778 | * When the groupInline property is set to @c true, a move request | ||
779 | * for a group member will bring all siblings along. | 779 | * for a group member will bring all siblings along. | ||
780 | * | 780 | * | ||
781 | * @see syncLaunchers | 781 | * @see syncLaunchers | ||
782 | * @see launcherList | 782 | * @see launcherList | ||
783 | * @see setGroupInline | 783 | * @see setGroupInline | ||
784 | * @param index An index in this tasks model. | 784 | * @param index An index in this tasks model. | ||
785 | * @param newPos The new list position to move the task to. | 785 | * @param newPos The new list position to move the task to. | ||
786 | */ | 786 | */ | ||
787 | Q_INVOKABLE bool move(int row, int newPos); | 787 | Q_INVOKABLE bool move(int row, int newPos, | ||
788 | const QModelIndex &parent = QModelIndex()); | ||||
788 | 789 | | |||
789 | /** | 790 | /** | ||
790 | * Updates the launcher list to reflect the new order after calls to | 791 | * Updates the launcher list to reflect the new order after calls to | ||
791 | * move(), if needed. | 792 | * move(), if needed. | ||
792 | * | 793 | * | ||
793 | * @see move | 794 | * @see move | ||
794 | * @see launcherList | 795 | * @see launcherList | ||
795 | */ | 796 | */ | ||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |