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

This commit is contained in:
nerix
2024-06-16 13:26:40 +02:00
committed by GitHub
parent 9b31246502
commit 2b97c64f8e
5 changed files with 109 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);