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:
parent
eaaa25ae7c
commit
828ba085cb
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user