diff --git a/source/attributeTableDelegate.cpp b/source/attributeTableDelegate.cpp index af20a5e..7a4e168 100644 --- a/source/attributeTableDelegate.cpp +++ b/source/attributeTableDelegate.cpp @@ -279,6 +279,7 @@ QWidget* AttributeTableDelegate::createEditor(QWidget *parent, const QStyleOptio QComboBox* comboBox = new QComboBox(parent); comboBox->addItem("1"); comboBox->addItem("0"); + comboBox->addItem("2"); return comboBox; } diff --git a/source/attributeTableModel.cpp b/source/attributeTableModel.cpp index 981d7d6..7d0f52e 100644 --- a/source/attributeTableModel.cpp +++ b/source/attributeTableModel.cpp @@ -502,6 +502,8 @@ void AttributeTableModel::updateTotalCount() m_paginationInfo.totalEntries = SqlQueryExecutor::instance().getAllAttributeCount(m_connection); else m_paginationInfo.totalEntries = SqlQueryExecutor::instance().getAttributeCount(m_connection, m_modelAttributeGroup.modelID, m_modelAttributeGroup.groupID); + + m_paginationInfo.totalPages = totalPages(); } QList AttributeTableModel::filterRowsByEditState(EditStateFlag state)