mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
New Element Wizard : tree view only display directory
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4484 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -387,6 +387,24 @@ bool ElementsLocation::isFileSystem() const
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementsLocation::isCommonCollection
|
||||
* @return True if this location represent an item from the common collection
|
||||
*/
|
||||
bool ElementsLocation::isCommonCollection() const
|
||||
{
|
||||
return fileSystemPath().startsWith(QETApp::commonElementsDirN());
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementsLocation::isCustomCollection
|
||||
* @return True if this location represent an item from the custom collection
|
||||
*/
|
||||
bool ElementsLocation::isCustomCollection() const
|
||||
{
|
||||
return fileSystemPath().startsWith(QETApp::customElementsDirN());
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementsLocation::isProject
|
||||
* @return True if this location represent an item from a project.
|
||||
|
||||
Reference in New Issue
Block a user