aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui')
-rw-r--r--qtmips_gui/memorymodel.cpp2
-rw-r--r--qtmips_gui/programmodel.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_gui/memorymodel.cpp b/qtmips_gui/memorymodel.cpp
index c8a159c..329891e 100644
--- a/qtmips_gui/memorymodel.cpp
+++ b/qtmips_gui/memorymodel.cpp
@@ -76,7 +76,7 @@ QVariant MemoryModel::headerData(int section, Qt::Orientation orientation, int r
}
QVariant MemoryModel::data(const QModelIndex &index, int role) const {
- if (role == Qt::DisplayRole)
+ if (role == Qt::DisplayRole || role == Qt::EditRole)
{
QString s, t;
std::uint32_t address;
diff --git a/qtmips_gui/programmodel.cpp b/qtmips_gui/programmodel.cpp
index 9023b69..90e161b 100644
--- a/qtmips_gui/programmodel.cpp
+++ b/qtmips_gui/programmodel.cpp
@@ -79,7 +79,7 @@ QVariant ProgramModel::headerData(int section, Qt::Orientation orientation, int
}
QVariant ProgramModel::data(const QModelIndex &index, int role) const {
- if (role == Qt::DisplayRole)
+ if (role == Qt::DisplayRole || role == Qt::EditRole)
{
QString s, t;
std::uint32_t address;