Skip to content

Commit

Permalink
Revert QAbstractTableModel to QAbstractItemModel to show element drop…
Browse files Browse the repository at this point in the history
… down
  • Loading branch information
Arthur Glowacki committed Jul 10, 2024
1 parent 5a00cf5 commit 6937b96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mvc/FitElementsTableModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

//---------------------------------------------------------------------------

FitElementsTableModel::FitElementsTableModel(std::string detector_element, QObject* parent) : QAbstractTableModel(parent)
FitElementsTableModel::FitElementsTableModel(std::string detector_element, QObject* parent) : QAbstractItemModel(parent)
{
// Initialize header data
m_headers[HEADERS::SYMBOL] = tr("Symbol");
Expand Down
2 changes: 1 addition & 1 deletion src/mvc/FitElementsTableModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @brief model to control the solver table
*/
class FitElementsTableModel
: public QAbstractTableModel
: public QAbstractItemModel
{

Q_OBJECT
Expand Down

0 comments on commit 6937b96

Please sign in to comment.