Show line indicator instead of rectangle while dragging in tables (#5252)

This commit is contained in:
nerix
2024-03-17 12:21:15 +01:00
committed by GitHub
parent 3563ecb3a5
commit 0322d37650
5 changed files with 104 additions and 0 deletions
+3
View File
@@ -1,6 +1,7 @@
#include "EditableModelView.hpp"
#include "widgets/helper/RegExpItemDelegate.hpp"
#include "widgets/helper/TableStyles.hpp"
#include <QAbstractItemView>
#include <QAbstractTableModel>
@@ -28,6 +29,8 @@ EditableModelView::EditableModelView(QAbstractTableModel *model, bool movable)
this->tableView_->verticalHeader()->setVisible(false);
this->tableView_->horizontalHeader()->setSectionsClickable(false);
TableRowDragStyle::applyTo(this->tableView_);
// create layout
QVBoxLayout *vbox = new QVBoxLayout(this);
vbox->setContentsMargins(0, 0, 0, 0);