1
0
mirror of https://github.com/altlinux/admc.git synced 2025-01-08 01:18:25 +03:00

Add ResultsView internal drag and drop setter

This commit is contained in:
Semyon Knyazev 2024-02-09 19:21:56 +04:00
parent eaaa25ae7c
commit 828ba085cb
2 changed files with 7 additions and 0 deletions

View File

@ -219,6 +219,12 @@ void ResultsView::set_drag_drop_enabled(const bool enabled) {
}
}
void ResultsView::set_drag_drop_internal() {
for (auto view : views.values()) {
view->setDragDropMode(QAbstractItemView::InternalMove);
}
}
void ResultsView::set_row_hidden(int row, bool hidden)
{
m_detail_view->setRowHidden(row, QModelIndex(), hidden);

View File

@ -68,6 +68,7 @@ public:
void restore_state(const QVariant &state, const QList<int> &default_columns);
void set_drag_drop_enabled(const bool enabled);
void set_drag_drop_internal();
void set_row_hidden(int row, bool hidden);