Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisGoosen committed Jan 22, 2025
1 parent e0fd782 commit c34d9ce
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 23 deletions.
9 changes: 0 additions & 9 deletions Desktop/data/datasetpackage.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,9 @@ class DataSetPackage : public QObject
void dataSetQChanged();

public slots:
void refresh() { beginResetModel(); endResetModel(); }
void refreshWithDelay();
void refreshColumn( QString columnName);
void columnWasOverwritten( const std::string & columnName, const std::string & possibleError);
void notifyColumnFilterStatusChanged( int columnIndex);
void setColumnsUsedInEasyFilter( stringset usedColumns);
void setCurrentFile( QString currentFile);
void setFolder( QString folder);
void generateEmptyData();
Expand All @@ -298,12 +295,6 @@ public slots:

private:
bool isThisTheSameThreadAsEngineSync();
bool setLabelAllowFilter( const QModelIndex & index, bool newAllowValue);
bool setLabelDescription( const QModelIndex & index, const QString & newDescription);
bool setLabelDisplay( const QModelIndex & index, const QString & newLabel);
bool setLabelValue( const QModelIndex & index, const QString & newLabel);
QModelIndex lastCurrentCell();
int getColIndex(QVariant colID);
void columnsApply(intset columnIndexes, std::function<bool (Column *)> applyThis);
void columnsApply(intset columnIndexes, std::function<bool (Column *, int)> applyThis);
void dbDelete();
Expand Down
10 changes: 1 addition & 9 deletions Desktop/data/filtermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
FilterModel::FilterModel(QObject * parent)
: QObject(parent)
{
_undoStack = DataSetPackage::pkg()->undoStack();

reset();
connect(this, &FilterModel::rFilterChanged, this, &FilterModel::rescanRFilterForColumns );

}

QString FilterModel::rFilter() const { return !filter() ? defaultRFilter() : tq(filter()->rFilter()); }
Expand All @@ -21,12 +19,6 @@ QString FilterModel::filterErrorMsg() const { return !filter() ? "" : tq(fi
QString FilterModel::generatedFilter() const { return !filter() ? DEFAULT_FILTER_GEN : tq(filter()->generatedFilter()); }
QString FilterModel::constructorJson() const { return !filter() ? DEFAULT_FILTER_JSON : tq(filter()->constructorJson()); }


void FilterModel::reset()
{
filter()->reset()();
}

void FilterModel::applyConstructorJson(QString newConstructorJson)
{
if (newConstructorJson != constructorJson())
Expand Down
4 changes: 0 additions & 4 deletions Desktop/data/filtermodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ class FilterModel : public QObject

void runFilter();

void updateStatusBar();
void reset();
void modelInit();

public slots:
void applyConstructorJson( QString constructorJson);
void applyRFilter( QString rFilter);
Expand Down
3 changes: 2 additions & 1 deletion Engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ add_dependencies(JASPEngine R-Interface)

target_include_directories(
JASPEngine
PUBLIC ${PROJECT_SOURCE_DIR}/R-Interface
PUBLIC
${PROJECT_SOURCE_DIR}/R-Interface
${PROJECT_SOURCE_DIR}/CommonData
${PROJECT_SOURCE_DIR}/Common
${PROJECT_SOURCE_DIR}/Common/jaspColumnEncoder
Expand Down

0 comments on commit c34d9ce

Please sign in to comment.