Skip to content

Commit d2ce491

Browse files
committed
make editable
1 parent ebdcfb0 commit d2ce491

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CommonData/dataset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ QVariant DataSet::headerData(int section, Qt::Orientation orientation, int role)
10381038

10391039
Qt::ItemFlags DataSet::flags(const QModelIndex &index) const
10401040
{
1041-
bool isEditable = dataMode() && index.column() >= 0 && index.column() < columnCount() && columns()[index.column()]->isComputed();
1041+
bool isEditable = dataMode() && index.column() >= 0 && index.column() < columnCount() && !columns()[index.column()]->isComputed();
10421042

10431043
return Qt::ItemIsSelectable | Qt::ItemIsEnabled | (isEditable ? Qt::ItemIsEditable : Qt::NoItemFlags);
10441044
}

Desktop/components/JASP/Widgets/DataTableViewEdit.qml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import JASP.Controls as JaspControls
44
import QtQml.Models
55

66

7-
Rectangle
7+
Item
88
{
9-
color: "purple"
109
id: editItemRoot
1110
z: 10
1211
onVisibleChanged: { isEditing = false; keyPressed = false }

0 commit comments

Comments
 (0)