Skip to content

Commit

Permalink
small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisGoosen committed Jan 15, 2025
1 parent 497bde8 commit 2fda389
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions QMLComponents/analysisform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ void AnalysisForm::addColumnControl(JASPControl* control, bool isComputed)
{
if (isComputed)
{
connect(control, &JASPControl::requestComputedColumnCreation, _analysis, &AnalysisBase::requestComputedColumnCreationHandler, Qt::QueuedConnection);
connect(control, &JASPControl::requestComputedColumnDestruction, _analysis, &AnalysisBase::requestComputedColumnDestructionHandler, Qt::QueuedConnection);
connect(control, &JASPControl::requestComputedColumnCreation, _analysis, &AnalysisBase::requestComputedColumnCreationHandler);
connect(control, &JASPControl::requestComputedColumnDestruction, _analysis, &AnalysisBase::requestComputedColumnDestructionHandler);
}
else
connect(control, &JASPControl::requestColumnCreation, _analysis, &AnalysisBase::requestColumnCreationHandler);
Expand Down
11 changes: 5 additions & 6 deletions QMLComponents/models/listmodelfiltereddataentry.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include "listmodelfiltereddataentry.h"
#include "columnutils.h"
#include "controls/tableviewbase.h"
#include "utilities/qutils.h"
#include "log.h"
#include "controls/jaspcontrol.h"
#include "filter.h"
#include "dataset.h"
#include "columnutils.h"


ListModelFilteredDataEntry::ListModelFilteredDataEntry(TableViewBase * parent)
: ListModelTableViewBase(parent)
Expand Down Expand Up @@ -63,13 +63,13 @@ void ListModelFilteredDataEntry::runFilter()
{
if(!_filter) //prob still need to bind
return;

runFilterByName(tq(_filter->name()));
}

void ListModelFilteredDataEntry::filterDoneHandler(const QString &name, const QString & error)
{
if(name.toStdString() != _filterName)
if(name.toStdString() != _filter->name())
return;

Log::log() << "ListModelFilteredDataEntry::filterDoneHandler for " << name << " and error '" << error << "'" << std::endl;
Expand Down Expand Up @@ -224,7 +224,7 @@ void ListModelFilteredDataEntry::fillTable()
_tableTerms.rowNames.clear();
_tableTerms.values.clear();

if (_filter)
if(_filter)
_filter->checkForUpdates();

size_t dataRows = _filter && _filter->filtered().size() > 0 ? _filter->filtered().size() : getDataSetRowCount();
Expand Down Expand Up @@ -439,4 +439,3 @@ void ListModelFilteredDataEntry::refreshModel()
{
ListModel::refresh();
}

2 changes: 1 addition & 1 deletion QMLComponents/models/listmodelfiltereddataentry.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private slots:
QStringList _dataColumns,
_extraColsStr;
std::string _filterName;
Filter * _filter = nullptr;
Filter * _filter = nullptr;
bool _informOnce = false;
};

Expand Down
2 changes: 0 additions & 2 deletions QMLComponents/variableinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#include "jasptheme.h"
#include "QQmlContext"
#include "QTimer"
#include "databaseinterface.h"
#include "dataset.h"

VariableInfo* VariableInfo::_singleton = nullptr;

Expand Down

0 comments on commit 2fda389

Please sign in to comment.