Commit 7872126a authored by Ian Humphrey's avatar Ian Humphrey
Browse files

fixed compile errors with refactoring to SubTreeProxyModel

parent 473ae2ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15,10 +15,10 @@
#include "Control.h"
#include "IString.h"
#include "MaximumLikelihoodWFunctions.h"
#include "ObservationSolveSettingsProxyModel.h"
#include "Project.h"
#include "ProjectItemProxyModel.h"
#include "SpecialPixel.h"
#include "SubTreeProxyModel.h"
#include "ui_JigsawSetupDialog.h"

namespace Isis {
+5 −2
Original line number Diff line number Diff line
#include "ObservationSolveSettingsProxyModel.h"
#include "SubTreeProxyModel.h"

#include <QAbstractItemModel>
#include <QIdentityProxyModel>
@@ -28,7 +28,10 @@ namespace Isis {
    // }

    // check if the model index corresponds to the invisible root item in source model
    if (sourceIndex == static_cast<QStandardItemModel *>(sourceModel())->invisibleRootItem()->index()) {
    if (sourceIndex == 
            static_cast<QStandardItemModel *>(sourceModel())->invisibleRootItem()->index()) {
      qDebug() << "creating index for invisible root item "
          << static_cast<QStandardItemModel *>(sourceModel())->invisibleRootItem()->index();
      return createIndex(sourceIndex.row(), 0, sourceIndex.internalId());
    }

+2 −2
Original line number Diff line number Diff line
#ifndef ObservationSolveSettingsProxyModel_h
#define ObservationSolveSettingsProxyModel_h
#ifndef SubTreeProxyModel_h
#define SubTreeProxyModel_h

#include <QIdentityProxyModel>
#include <QPersistentModelIndex>