Loading isis/src/qisis/objs/ProjectItemModel/ProjectItemModel.cpp +16 −0 Original line number Diff line number Diff line Loading @@ -192,6 +192,22 @@ namespace Isis { QList<ProjectItem *> items; QModelIndexList indices = selection.indexes(); // If nothing is selected, fill items with all image lists and images. if (indices.size() == 0) { ProjectItem *imageRoot = findItemData(QVariant("Images"), 0); items.append(imageRoot); for (int i = 0; i < imageRoot->rowCount(); i++) { ProjectItem *imglistItem = imageRoot->child(i); items.append(imglistItem); for (int j = 0; j < imglistItem->rowCount(); j++) { ProjectItem *imgItem = imglistItem->child(j); if (imgItem->isImage()) { items.append(imgItem); } } } return items; } //Query the selected items to see if they have children foreach ( QModelIndex ix, indices ) { Loading isis/src/qisis/objs/ProjectItemModel/ProjectItemModel.h +6 −3 Original line number Diff line number Diff line Loading @@ -139,6 +139,9 @@ namespace Isis { * (but not all) of the images within that list, the function returned * all of the images in the list and not just the selected ones. * References #497. * @history 2018-07-10 Kaitlyn Lee - If a user does not select any images in the project tree, * all image lists and images will be returned in selectedBOSSImages(). * References #497. */ class ProjectItemModel : public QStandardItemModel { Loading isis/src/qisis/apps/ipce/IpceMainWindow.h +3 −3 File changed.Contains only whitespace changes. Show changes Loading
isis/src/qisis/objs/ProjectItemModel/ProjectItemModel.cpp +16 −0 Original line number Diff line number Diff line Loading @@ -192,6 +192,22 @@ namespace Isis { QList<ProjectItem *> items; QModelIndexList indices = selection.indexes(); // If nothing is selected, fill items with all image lists and images. if (indices.size() == 0) { ProjectItem *imageRoot = findItemData(QVariant("Images"), 0); items.append(imageRoot); for (int i = 0; i < imageRoot->rowCount(); i++) { ProjectItem *imglistItem = imageRoot->child(i); items.append(imglistItem); for (int j = 0; j < imglistItem->rowCount(); j++) { ProjectItem *imgItem = imglistItem->child(j); if (imgItem->isImage()) { items.append(imgItem); } } } return items; } //Query the selected items to see if they have children foreach ( QModelIndex ix, indices ) { Loading
isis/src/qisis/objs/ProjectItemModel/ProjectItemModel.h +6 −3 Original line number Diff line number Diff line Loading @@ -139,6 +139,9 @@ namespace Isis { * (but not all) of the images within that list, the function returned * all of the images in the list and not just the selected ones. * References #497. * @history 2018-07-10 Kaitlyn Lee - If a user does not select any images in the project tree, * all image lists and images will be returned in selectedBOSSImages(). * References #497. */ class ProjectItemModel : public QStandardItemModel { Loading
isis/src/qisis/apps/ipce/IpceMainWindow.h +3 −3 File changed.Contains only whitespace changes. Show changes