diff --git a/plugins/view/TableView/TableView.cpp b/plugins/view/TableView/TableView.cpp index 2ed249cbae..02af6402a9 100644 --- a/plugins/view/TableView/TableView.cpp +++ b/plugins/view/TableView/TableView.cpp @@ -262,7 +262,6 @@ void TableView::readSettings() { sortModel->setSourceModel(_model); _ui->table->setModel(sortModel); connect(_model, &QAbstractItemModel::columnsInserted, this, &TableView::columnsInserted); - connect(_model, &QAbstractItemModel::dataChanged, this, &TableView::dataChanged); filterChanged(); } @@ -284,19 +283,6 @@ void TableView::readSettings() { _ui->columnsFilterEdit->setText(""); } -void TableView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) { - auto *model = static_cast<QAbstractItemModel *>(sender()); - - for (int i = topLeft.row(); i <= bottomRight.row(); ++i) { - auto *pi = model->headerData(topLeft.column(), Qt::Horizontal, Model::PropertyRole) - .value<PropertyInterface *>(); - - if (pi->getTypename() == "string" && pi->getName() != "viewTexture" && - pi->getName() != "viewFont") - _ui->table->resizeRowToContents(i); - } -} - void TableView::columnsInserted(const QModelIndex &, int start, int end) { auto *model = static_cast<QAbstractItemModel *>(sender()); diff --git a/plugins/view/TableView/TableView.h b/plugins/view/TableView/TableView.h index b25a90a949..10832d30e5 100644 --- a/plugins/view/TableView/TableView.h +++ b/plugins/view/TableView/TableView.h @@ -1,6 +1,6 @@ /** * - * Copyright (C) 2019-2022 The Talipot developers + * Copyright (C) 2019-2024 The Talipot developers * * Talipot is a fork of Tulip, created by David Auber * and the Tulip development Team from LaBRI, University of Bordeaux @@ -83,7 +83,6 @@ protected slots: void columnsInserted(const QModelIndex &, int, int); void showCustomContextMenu(const QPoint &pos); void showHorizontalHeaderCustomContextMenu(const QPoint &pos); - void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); void setZoomLevel(int); };