Skip to content

Commit

Permalink
im trying to get the preview tooltips including th description to ref…
Browse files Browse the repository at this point in the history
…resh in variablelist

fixes jasp-stats/jasp-issues#1190
  • Loading branch information
JorisGoosen committed Feb 26, 2025
1 parent e59d842 commit 50a5615
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions Desktop/data/columnsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ ColumnsModel::ColumnsModel(DataSetTableModel *tableModel)
connect(this, &ColumnsModel::labelsReordered, info, &VariableInfo::labelsReordered );
connect(this, &ColumnsModel::filterChanged, info, &VariableInfo::filterChanged );
connect(this, &ColumnsModel::dataSetChanged, info, &VariableInfo::dataSetChanged );
connect(this, &ColumnsModel::modelReset, info, &VariableInfo::refresh );
connect(this, &QTransposeProxyModel::columnsInserted, info, &VariableInfo::rowCountChanged );
connect(this, &QTransposeProxyModel::columnsRemoved, info, &VariableInfo::rowCountChanged );
connect(this, &QTransposeProxyModel::modelReset, info, &VariableInfo::rowCountChanged );
Expand Down
1 change: 1 addition & 0 deletions QMLComponents/controls/sourceitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ void SourceItem::connectModels()
connect(variableInfo, &VariableInfo::labelsReordered, controlModel, &ListModel::sourceLabelsReordered );
connect(variableInfo, &VariableInfo::filterChanged, controlModel, &ListModel::filterChanged );
connect(variableInfo, &VariableInfo::columnsChanged, controlModel, &ListModel::sourceColumnsChanged );
connect(variableInfo, &VariableInfo::refresh, controlModel, &ListModel::refresh );
}

if (_sourceListModel)
Expand Down
9 changes: 5 additions & 4 deletions QMLComponents/variableinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,15 @@ class VariableInfo : public QObject
DataSet * dataSet();

signals:
void refresh();
void namesChanged( QMap<QString, QString> changedNames);
void columnsChanged( QStringList changedColumns);
void columnTypeChanged( QString colName);
void filterChanged();
void labelsChanged( QString columnName, QMap<QString, QString> changedLabels);
void labelsReordered( QString columnName);
void columnsChanged( QStringList changedColumns);
void dataSetChanged();
void filterChanged();
void rowCountChanged();
void labelsReordered( QString columnName);
void columnTypeChanged( QString colName);
void dataAvailableChanged();

private:
Expand Down

0 comments on commit 50a5615

Please sign in to comment.