Show line indicator instead of rectangle while dragging in tables (#5256)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user