Commit c23f02f5 authored by Ian Humphrey's avatar Ian Humphrey
Browse files

Reviewed and minor documentation updates to ProjectItem, ProjectItemModel,...

Reviewed and minor documentation updates to ProjectItem, ProjectItemModel, ProjectItemProxyModel, and ProjectItemTreeView. Fixes #4006.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/branches/ipce@6869 41f8697f-d340-4b68-9986-7bafba869bb8
parent 4d72e3a0
Loading
Loading
Loading
Loading
+38 −35
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ namespace Isis {
  /**
   * Constructs an item from a BundleResults.
   *
   * @param[in] bundleResults (BundleResults *) The BundleResults to
   * @param[in] bundleResults (BundleResults) The BundleResults to
   *                                          construct from.
   */
  ProjectItem::ProjectItem(BundleResults bundleResults) {
@@ -71,7 +71,7 @@ namespace Isis {
  /**
   * Constructs an item from a BundleSettings.
   *
   * @param[in] bundleSettings (BundleSettings *) The BundleSettings to
   * @param[in] bundleSettings (BundleSettingsQsp) The BundleSettings to
   *                                               construct from.
   */
  ProjectItem::ProjectItem(BundleSettingsQsp bundleSettings) {
@@ -136,7 +136,7 @@ namespace Isis {
  /**
   * Constructs an item from a CorrelationMatrix.
   *
   * @param[in] correlationMatrix (CorrelationMatrix *) The CorrelationMatrix to
   * @param[in] correlationMatrix (CorrelationMatrix) The CorrelationMatrix to
   *                                                  construct from.
   */
  ProjectItem::ProjectItem(CorrelationMatrix correlationMatrix) {
@@ -272,7 +272,6 @@ namespace Isis {
  }



  /**
   * Destructs a ProjectItem.
   */
@@ -282,7 +281,7 @@ namespace Isis {
  /**
   * Returns the BundleResults stored in the data of the item.
   *
   * @return (BundleResults *) The BundleResults of the item.
   * @return @b BundleResults The BundleResults of the item.
   */
  BundleResults ProjectItem::bundleResults() const {
    return data().value<BundleResults>();
@@ -292,7 +291,7 @@ namespace Isis {
  /**
   * Returns the BundleSettings stored in the data of the item.
   *
   * @return (BundleSettings *) The BundleSettings of the item.
   * @return @b BundleSettings* The BundleSettings of the item.
   */
  BundleSettingsQsp ProjectItem::bundleSettings() const {
    return data().value<BundleSettingsQsp>();
@@ -302,7 +301,7 @@ namespace Isis {
  /**
   * Returns the BundleSolutionInfo stored in the data of the item.
   *
   * @return (BundleSolutionInfo *) The BundleSolutionInfo of the item.
   * @return @b BundleSolutionInfo* The BundleSolutionInfo of the item.
   */
  BundleSolutionInfo *ProjectItem::bundleSolutionInfo() const {
    return data().value<BundleSolutionInfo *>();
@@ -312,7 +311,7 @@ namespace Isis {
  /**
   * Returns the Image stored in the data of the item.
   *
   * @return (Image *) The Image of the item.
   * @return @b Image* The Image of the item.
   */
  Image *ProjectItem::image() const {
    return data().value<Image *>();
@@ -322,7 +321,7 @@ namespace Isis {
  /**
   * Returns the ImageList stored in the data of the item.
   *
   * @return (ImageList *) The ImageList of the item.
   * @return @b ImageList* The ImageList of the item.
   */
  ImageList *ProjectItem::imageList() const {
    return data().value<ImageList *>();
@@ -332,7 +331,7 @@ namespace Isis {
  /**
   * Returns the Control stored in the data of the item.
   *
   * @return (Control *) The Control of the item.
   * @return @b Control* The Control of the item.
   */
  Control *ProjectItem::control() const {
    return data().value<Control *>();
@@ -342,7 +341,7 @@ namespace Isis {
  /**
   * Returns the ControlList stored in the data of the item.
   *
   * @return (ControlList *) The ControlList of the item.
   * @return @b ControlList* The ControlList of the item.
   */
  ControlList *ProjectItem::controlList() const {
    return data().value<ControlList *>();
@@ -352,7 +351,7 @@ namespace Isis {
  /**
   * Returns the CorrelationMatrix stored the item.
   *
   * @return (CorrelationMatrix *) The CorrelationMatrix of the item.
   * @return @b CorrelationMatrix* The CorrelationMatrix of the item.
   */
  CorrelationMatrix ProjectItem::correlationMatrix() const {
    return data().value<CorrelationMatrix>();
@@ -362,7 +361,7 @@ namespace Isis {
  /**
   * Returns the Project stored in the data of the item.
   *
   * @return (Project *) The Project of the item.
   * @return @b Project* The Project of the item.
   */
  Project *ProjectItem::project() const {
    return data().value<Project *>();
@@ -372,7 +371,7 @@ namespace Isis {
  /**
   * Returns the GuiCameraQsp stored in the data of the item.
   *
   * @return (GuiCameraQsp) The camera stored in the item.
   * @return @b GuiCameraQsp The camera stored in the item.
   */
  GuiCameraQsp ProjectItem::guiCamera() const {
    return data().value<GuiCameraQsp>();
@@ -383,7 +382,7 @@ namespace Isis {
  /**
   * Returns the TargetBodyQsp stored in the data of the item.
   * 
   * @return (TargetBodyQsp) The target body stored in the item.
   * @return @b TargetBodyQsp The target body stored in the item.
   */
  TargetBodyQsp ProjectItem::targetBody() const {
    return data().value<TargetBodyQsp>();
@@ -394,7 +393,7 @@ namespace Isis {
   * Returns true if BundleResults are stored in the data of the item.
   * Returns false otherwise.
   *
   * @return (bool) If BundleResults are stored in the data of the item or not.
   * @return @b bool If BundleResults are stored in the data of the item or not.
   */
  bool ProjectItem::isBundleResults() const {
    return data().canConvert<BundleResults>();
@@ -405,7 +404,7 @@ namespace Isis {
   * Returns true if BundleSettings are stored in the data of the item.
   * Returns false otherwise.
   *
   * @return (bool) If BundleSettings are stored in the data of the item or not.
   * @return @b bool If BundleSettings are stored in the data of the item or not.
   */
  bool ProjectItem::isBundleSettings() const {
    return data().canConvert<BundleSettingsQsp>();
@@ -416,7 +415,7 @@ namespace Isis {
   * Returns true if a BundleSolutionInfo is stored in the data of the item.
   * Returns false otherwise.
   *
   * @return (bool) If a BundleSolutionInfo is stored in the data of the item or not.
   * @return @b bool If a BundleSolutionInfo is stored in the data of the item or not.
   */
  bool ProjectItem::isBundleSolutionInfo() const {
    return data().canConvert<BundleSolutionInfo *>();
@@ -427,7 +426,7 @@ namespace Isis {
   * Returns true if an Image is stored in the data of the item. Returns false
   * otherwise.
   *
   * @return (bool) If an Image is stored in the data of the item or not.
   * @return @b bool If an Image is stored in the data of the item or not.
   */
  bool ProjectItem::isImage() const {
    return data().canConvert<Image *>();
@@ -438,7 +437,7 @@ namespace Isis {
   * Returns true if an ImageList is stored in the data of the item.
   * Returns false otherwise.
   *
   * @return (bool) If an ImageList is stored in the data of the item or not.
   * @return @b bool If an ImageList is stored in the data of the item or not.
   */
  bool ProjectItem::isImageList() const {
    return data().canConvert<ImageList *>();
@@ -449,7 +448,7 @@ namespace Isis {
   * Returns true if a Control is stored in the data of the item. Returns false
   * otherwise.
   *
   * @return (bool) If a Control is stored in the data of the item or not.
   * @return @b bool If a Control is stored in the data of the item or not.
   */
  bool ProjectItem::isControl() const { 
    return data().canConvert<Control *>();
@@ -461,7 +460,7 @@ namespace Isis {
   * Returns false
   * otherwise.
   *
   * @return (bool) If a ControlList is stored in the data of the item or not.
   * @return @b bool If a ControlList is stored in the data of the item or not.
   */
  bool ProjectItem::isControlList() const {
    return data().canConvert<ControlList *>();
@@ -472,7 +471,7 @@ namespace Isis {
   * Returns true if a CorrelationMatrix is stored in the data of the item.
   * Returns false otherwise.
   *
   * @return (bool) If a CorrelationMatrix is stored in the data of the item or not.
   * @return @b bool If a CorrelationMatrix is stored in the data of the item or not.
   */
  bool ProjectItem::isCorrelationMatrix() const {
    return data().canConvert<CorrelationMatrix>();
@@ -483,7 +482,7 @@ namespace Isis {
   * Returns true if a Project is stored in the data of the item. Returns false
   * otherwise.
   *
   * @return (bool) If a Project is stored in the data of the item or not.
   * @return @b bool If a Project is stored in the data of the item or not.
   */
  bool ProjectItem::isProject() const { 
    return data().canConvert<Project *>();
@@ -494,7 +493,7 @@ namespace Isis {
   * Returns true if a GuiCameraQsp is stored in the data of the item.
   * Returns false otherwise.
   *
   * @return (bool) If a GuiCameraQsp is stored in the item or not.
   * @return @b bool If a GuiCameraQsp is stored in the item or not.
   */
  bool ProjectItem::isGuiCamera() const {     
    return data().canConvert<GuiCameraQsp>();
@@ -505,7 +504,7 @@ namespace Isis {
   * Returns true if a TargetBodyQsp is stored in the data of the item.
   * Returns false otherwise.
   *
   * @return (bool) If a TargetBodyQsp is stored in the item or not.
   * @return @b bool If a TargetBodyQsp is stored in the item or not.
   */
  bool ProjectItem::isTargetBody() const { 
    return data().canConvert<TargetBodyQsp>();
@@ -527,7 +526,7 @@ namespace Isis {
  /**
   * Sets the text, icon, and data corresponding to BundleResults.
   *
   * @param[in] bundleResults (BundleResults *) The BundleResults.
   * @param[in] bundleResults (BundleResults) The BundleResults.
   */
  void ProjectItem::setBundleResults(BundleResults bundleResults) {
    setText("Results");
@@ -631,7 +630,7 @@ namespace Isis {
  /**
   * Sets the text, icon, and data corresponding to a CorrelationMatrix.
   *
   * @param[in] correlationMatrix (CorrelationMatrix *) The CorrelationMatrix.
   * @param[in] correlationMatrix (CorrelationMatrix) The CorrelationMatrix.
   */
  void ProjectItem::setCorrelationMatrix(CorrelationMatrix correlationMatrix) {
    setText("Correlation Matrix");
@@ -706,6 +705,8 @@ namespace Isis {

  /**
   * Sets the text, icon, and data corresponding to a TargetBodyQsp.
   *
   * @param targetBody Target body to set data from
   */
  void ProjectItem::setTargetBody(TargetBodyQsp targetBody) {
    setText( targetBody->displayProperties()->displayName() );
@@ -739,6 +740,8 @@ namespace Isis {
   *
   * @param[in] value (const QVariant &) The data.
   * @param[in] role (int) The role.
   *
   * @return @b ProjectItem* The found item.
   */
  ProjectItem *ProjectItem::findItemData(const QVariant &value, int role) {
    if ( data(role) == value ) {
@@ -771,7 +774,7 @@ namespace Isis {
   *
   * @param[in] row (int) The row.
   *
   * @return (ProjectItem *) The child item.
   * @return @b ProjectItem* The child item.
   */
  ProjectItem *ProjectItem::child(int row) const {
    return static_cast<ProjectItem *>( QStandardItem::child(row) );
@@ -792,7 +795,7 @@ namespace Isis {
  /**
   * Returns the ProjectItemModel associated with this item.
   *
   * @return (ProjectItemModel *) The model.
   * @return @b ProjectItemModel* The model.
   */
  ProjectItemModel *ProjectItem::model() const {
    return static_cast<ProjectItemModel *>( QStandardItem::model() );
@@ -802,7 +805,7 @@ namespace Isis {
  /**
   * Returns the parent item of this item.
   *
   * @return (ProjectItem *) The parent item.
   * @return @b ProjectItem* The parent item.
   */
  ProjectItem *ProjectItem::parent() const {
    return static_cast<ProjectItem *>( QStandardItem::parent() );
@@ -825,7 +828,7 @@ namespace Isis {
   *
   * @param[in] row (int) The row.
   *
   * @return (ProjectItem *) The item.
   * @return @b ProjectItem* The item.
   */
  ProjectItem *ProjectItem::takeChild(int row) {
    QList<QStandardItem *> items = QStandardItem::takeRow(row);
+5 −1
Original line number Diff line number Diff line
@@ -89,7 +89,11 @@ namespace Isis {
   * model->appendRow(item);
   * @endcode
   *
   * @internal
   *   @author Jeffrey Covington
   *
   *     @history 2015-10-21 Jeffrey Covington - Original version.
   *     @history 2016-06-27 Ian Humphrey - Minor documentation updates. Fixes #4006.
   */
  class ProjectItem : public QStandardItem {
    public:
+20 −8
Original line number Diff line number Diff line
@@ -57,7 +57,17 @@ namespace Isis {

  
  /**
   * You cannot drop mime data into the ProjectItemModel. 
   *
   * @see ProjectItemProxyModel
   *
   * @param data (const QMimeData *) The data to drop
   * @param action (Qt::DropAction) The drop action
   * @param row (int) ???
   * @param column (int) ???
   * @param parent (const QModelIndex &) The index of the data's parent
   *
   * @return @b bool False
   */
  bool ProjectItemModel::canDropMimeData(const QMimeData *data,
                                         Qt::DropAction action,
@@ -70,7 +80,7 @@ namespace Isis {
  /**
   * Returns the internal selection model.
   *
   * @return (QItemSelectionModel *) The selection model.
   * @return @b QItemSelectionModel* The selection model.
   */
  QItemSelectionModel *ProjectItemModel::selectionModel() {
    return m_selectionModel;
@@ -84,7 +94,7 @@ namespace Isis {
   *
   * @param[in] project (Project *) The Project to be added.
   *
   * @return (ProjectItem *) The new item that corresponds to the Project.
   * @return @b ProjectItem* The new item that corresponds to the Project.
   */
  ProjectItem *ProjectItemModel::addProject(Project *project) {

@@ -112,7 +122,7 @@ namespace Isis {
  /**
   * Returns the current item of the internal selection model.
   *
   * @return (ProjectItem *) The current item.
   * @return @b ProjectItem* The current item.
   */
  ProjectItem *ProjectItemModel::currentItem() {
    return itemFromIndex( selectionModel()->currentIndex() );
@@ -122,7 +132,7 @@ namespace Isis {
  /**
   * Returns a list of the selected items of the internal selection model.
   *
   * @return (QList<ProjectItem *>) The list of selected items.
   * @return @b QList<ProjectItem*> The list of selected items.
   */
  QList<ProjectItem *> ProjectItemModel::selectedItems() {
    QItemSelection selection = selectionModel()->selection();
@@ -143,6 +153,8 @@ namespace Isis {
   * @param data (const QVariant &) The data contained in the item.
   *
   * @param data (int) The role of the data (see Qt::ItemDataRole).
   *
   * @return @b ProjectItem* First project item found.
   */
  ProjectItem *ProjectItemModel::findItemData(const QVariant &data, int role) {
    for (int i=0; i<rowCount(); i++) {
@@ -202,7 +214,7 @@ namespace Isis {
   *
   * @param[in] item (const ProjectItem *) The item.
   *
   * @return (QModelIndex) The index of the item.
   * @return @b QModelIndex The index of the item.
   */
  QModelIndex ProjectItemModel::indexFromItem(const ProjectItem *item) {
    return QStandardItemModel::indexFromItem(item);
@@ -225,7 +237,7 @@ namespace Isis {
   *
   * @param[in] row (int) The row of the item.
   *
   * @return (ProjectItem *) The item at the row.
   * @return @b ProjectItem* The item at the row.
   */
  ProjectItem *ProjectItemModel::item(int row) {
    return static_cast<ProjectItem *>( QStandardItemModel::item(row) );
@@ -237,7 +249,7 @@ namespace Isis {
   *
   * @param[in] index (const QModelIndex &) The index of the item.
   *
   * @return (ProjectItem *) The item.
   * @return @b ProjectItem* The item.
   */
  ProjectItem *ProjectItemModel::itemFromIndex(const QModelIndex &index) {
    return static_cast<ProjectItem *>( QStandardItemModel::itemFromIndex(index) );
@@ -260,7 +272,7 @@ namespace Isis {
   *
   * @param[in] row (int) The row of the item to remove.
   *
   * @return (ProjectItem *) The removed item.
   * @return @b ProjectItem* The removed item.
   */
  ProjectItem *ProjectItemModel::takeItem(int row) {
    QList<QStandardItem *> items = QStandardItemModel::takeRow(row);
+7 −1
Original line number Diff line number Diff line
@@ -68,7 +68,13 @@ namespace Isis {
   *
   * @ingroup
   *
   * @internal
   *   @author Jeffrey Covington
   *
   *   @history 2015-10-21 Jeffrey Covington - Original version.
   *   @history 2016-01-13 Jeffrey Covington - Added canDropMimeData() method.
   *   @history 2016-06-27 Ian Humphrey - Added documentation to canDropMimeData(), checked coding
   *                           standards. Fixes #4006.
   */
  class ProjectItemModel : public QStandardItemModel {

+39 −17
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ namespace Isis {
   * @param[in] sourceIndex (const QModelIndex &) The index from the
   *                                              source model.
   *
   * @return (QModelIndex) The index from the proxy model.
   * @return @b QModelIndex The index from the proxy model.
   */
  QModelIndex ProjectItemProxyModel::mapIndexFromSource(const QModelIndex &sourceIndex) {
    ProjectItem *proxyItem = mapItemFromSource( sourceModel()->itemFromIndex(sourceIndex) );
@@ -69,7 +69,7 @@ namespace Isis {
   *
   * @param[in] proxyIndex (const QModelIndex &) The index from the proxy model.
   *
   * @return (QModelIndex) The index from the source model.
   * @return @b QModelIndex The index from the source model.
   */
  QModelIndex ProjectItemProxyModel::mapIndexToSource(const QModelIndex &proxyIndex) {
    ProjectItem *sourceItem = mapItemToSource( itemFromIndex(proxyIndex) );
@@ -90,9 +90,10 @@ namespace Isis {
   * @param[in] sourceSelection (const QItemSelection &) The selection of items
   *                                                     in the source model.
   *
   * @return (QItemSelection) The selection of items in the proxy model.
   * @return @b QItemSelection The selection of items in the proxy model.
   */
  QItemSelection ProjectItemProxyModel::mapSelectionFromSource(const QItemSelection &sourceSelection) {
  QItemSelection ProjectItemProxyModel::mapSelectionFromSource(
      const QItemSelection &sourceSelection) {

    QItemSelection proxySelection = QItemSelection();

@@ -114,7 +115,7 @@ namespace Isis {
   * @param[in] proxySelection (const QItemSelection &) The selection of items
   *                                                    in the proxy model.
   *
   * @return (QItemSelection) The selection of items in the source model.
   * @return @b QItemSelection The selection of items in the source model.
   */
  QItemSelection ProjectItemProxyModel::mapSelectionToSource(const QItemSelection &proxySelection) {
    QItemSelection sourceSelection = QItemSelection();
@@ -136,7 +137,7 @@ namespace Isis {
   *
   * @param[in] sourceItem (ProjectItem *) The item in the source model.
   *
   * @return (ProjectItem *) The item in the proxy model.
   * @return @b ProjectItem* The item in the proxy model.
   */
  ProjectItem *ProjectItemProxyModel::mapItemFromSource(ProjectItem *sourceItem) {
    return m_sourceProxyMap.value(sourceItem, 0);
@@ -149,7 +150,7 @@ namespace Isis {
   *
   * @param[in] proxyItem (ProjectItem *) The item in the proxy model.
   *
   * @return (ProjectItem *) The item in the source model.
   * @return @b ProjectItem* The item in the source model.
   */
  ProjectItem *ProjectItemProxyModel::mapItemToSource(ProjectItem *proxyItem) {
    return m_sourceProxyMap.key(proxyItem, 0);
@@ -169,7 +170,7 @@ namespace Isis {
   *
   * @param[in] sourceItem (ProjectItem *) The item in the source model.
   *
   * @return (ProjectItem *) The item in the proxy model.
   * @return @b ProjectItem* The item in the proxy model.
   */
  ProjectItem *ProjectItemProxyModel::addItem(ProjectItem *sourceItem) {
    if (!sourceItem) {
@@ -265,7 +266,7 @@ namespace Isis {
  /**
   * Returns the source model.
   *
   * @return (ProjectItemModel *) The source model.
   * @return @b ProjectItemModel* The source model.
   */
  ProjectItemModel *ProjectItemProxyModel::sourceModel() {
    return m_sourceModel;
@@ -291,7 +292,8 @@ namespace Isis {
   * different than the corresponding item in the source model.
   */
  void ProjectItemProxyModel::updateProxyCurrent() {
    QModelIndex newProxyCurrent = mapIndexFromSource( sourceModel()->selectionModel()->currentIndex() );
    QModelIndex newProxyCurrent = mapIndexFromSource( 
        sourceModel()->selectionModel()->currentIndex() );
    if ( newProxyCurrent != selectionModel()->currentIndex() ) {
      selectionModel()->setCurrentIndex(newProxyCurrent, QItemSelectionModel::Current);
    }
@@ -305,7 +307,8 @@ namespace Isis {
  void ProjectItemProxyModel::updateSourceCurrent() {
    QModelIndex newSourceCurrent = mapIndexToSource( selectionModel()->currentIndex() );
    if ( newSourceCurrent != sourceModel()->selectionModel()->currentIndex() ) {
      sourceModel()->selectionModel()->setCurrentIndex(newSourceCurrent, QItemSelectionModel::Current);
      sourceModel()->selectionModel()->setCurrentIndex(newSourceCurrent, 
                                                       QItemSelectionModel::Current);
    }
  }

@@ -315,7 +318,8 @@ namespace Isis {
   * different than the corresponding selection in the source model.
   */
  void ProjectItemProxyModel::updateProxySelection() {
    QItemSelection newProxySelection = mapSelectionFromSource( sourceModel()->selectionModel()->selection() );
    QItemSelection newProxySelection = mapSelectionFromSource( 
        sourceModel()->selectionModel()->selection() );
    if ( newProxySelection != selectionModel()->selection() ) {
      selectionModel()->select(newProxySelection, QItemSelectionModel::ClearAndSelect);
    }
@@ -328,8 +332,10 @@ namespace Isis {
   */
  void ProjectItemProxyModel::updateSourceSelection() {
    QItemSelection newSourceSelection = mapSelectionToSource( selectionModel()->selection() );
    if ( mapSelectionFromSource(newSourceSelection) != mapSelectionFromSource( sourceModel()->selectionModel()->selection() ) ) {
      sourceModel()->selectionModel()->select(newSourceSelection, QItemSelectionModel::ClearAndSelect);
    if ( mapSelectionFromSource(newSourceSelection) != 
         mapSelectionFromSource( sourceModel()->selectionModel()->selection() ) ) {
      sourceModel()->selectionModel()->select(newSourceSelection, 
                                              QItemSelectionModel::ClearAndSelect);
    }
  }

@@ -345,7 +351,7 @@ namespace Isis {
   * @param[in] sourceItem (ProjectItem *) The item in the source model.
   * @param[in] parentItem (ProjectItem *) The parent in the proxy model.
   *
   * @return (ProjectItem *) The correponding item in the proxy model.
   * @return @b ProjectItem* The correponding item in the proxy model.
   */
  ProjectItem *ProjectItemProxyModel::addChild(ProjectItem *sourceItem, ProjectItem *parentItem) {
    if (!sourceItem) {
@@ -404,7 +410,15 @@ namespace Isis {


  /**
   * Returns true. You can drop data into a ProjectItemProxyModel
   *
   * @param data (const QMimeData *) The data to drop
   * @param action (Qt::DropAction) The drop action
   * @param row (int) ???
   * @param column(int) ???
   * @param QModelIndex (const QModelIndex &) Index of the data's parent item
   *
   * @return @b bool True if the proxy model can accept the mime data.
   */
  bool ProjectItemProxyModel::canDropMimeData(const QMimeData *data,
                                           Qt::DropAction action,
@@ -415,7 +429,15 @@ namespace Isis {

  
  /**
   * Adds the data (selected items) from the source model to the proxy model.
   *
   * @param data (const QMimeData *)
   * @param action (Qt::DropAction)
   * @param row (int)
   * @param column(int)
   * @param QModelIndex (const QModelIndex &) 
   *
   * @return @b bool True if the data was successfully added to the proxy model.
   */
  bool ProjectItemProxyModel::dropMimeData(const QMimeData *data,
                                           Qt::DropAction action,
Loading