Allow reordering elements in list settings (#1595)

* Add move up, down buttons to list settings

Channel notifications, moderation buttons etc. have a move up and move
down button now for reordering.

* Selection follows moved rows, refactor

Also fixed rows past the 2nd one not moving

* Update selection property with more than 1 column

* Fix crash when moving without a row selected

* Move rows with drag and drop

Right now it's a little iffy registering the row to be moved, but I
wanna go to bed :)

* Remove EditableTableView, move to SignalVectorModel

Replace my ghetto drag and drop solution in EditableTableView with small
patches to the stuff already written in SignalVectorModel::dropMimeData
This commit is contained in:
tuckerrrrrrrrrr
2020-09-26 06:11:45 -07:00
committed by GitHub
parent f6caee6a66
commit 9d885d951c
3 changed files with 79 additions and 6 deletions
+3
View File
@@ -29,6 +29,9 @@ private:
QTableView *tableView_{};
QAbstractTableModel *model_{};
QHBoxLayout *buttons_{};
void moveRow(int dir);
void selectRow(int row);
};
} // namespace chatterino