Skip to content

Commit

Permalink
int => TreeItem::Type
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyijun committed Feb 18, 2025
1 parent e611a3e commit 7202407
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/favoritespanewidget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ bool FavoritesModel::dropMimeData(
return false;
}

QModelIndex FavoritesModel::findItemInFolder( const QString & itemName, int itemType, const QModelIndex & parentIdx )
QModelIndex FavoritesModel::findItemInFolder( const QString & itemName, TreeItem::Type itemType, const QModelIndex & parentIdx )
{
TreeItem * parentItem = getItem( parentIdx );
for ( int i = 0; i < parentItem->childCount(); i++ ) {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/favoritespanewidget.hh
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ protected:
TreeItem * findFolderByName( TreeItem * parent, const QString & name, TreeItem::Type type );

// Find item in folder
QModelIndex findItemInFolder( QString const & itemName, int itemType, QModelIndex const & parentIdx );
QModelIndex findItemInFolder( QString const & itemName, TreeItem::Type itemType, QModelIndex const & parentIdx );

TreeItem * getItem( const QModelIndex & index ) const;

Expand Down

0 comments on commit 7202407

Please sign in to comment.