kdevplatform/project
#include <projectmodel.h>

Public Member Functions | |
ProjectTargetItem (IProject *, const QString &name, ProjectBaseItem *parent=nullptr) | |
QString | iconName () const override |
void | setPath (const Path &path) override |
ProjectTargetItem * | target () const override |
int | type () const override |
![]() | |
ProjectBaseItem (IProject *, const QString &name, ProjectBaseItem *parent=nullptr) | |
virtual | ~ProjectBaseItem () |
void | appendRow (ProjectBaseItem *item) |
QString | baseName () const |
ProjectBaseItem * | child (int row) const |
QList< ProjectBaseItem * > | children () const |
virtual ProjectExecutableTargetItem * | executable () const |
virtual ProjectFileItem * | file () const |
QList< ProjectFileItem * > | fileList () const |
virtual Qt::ItemFlags | flags () |
virtual ProjectFolderItem * | folder () const |
QList< ProjectFolderItem * > | folderList () const |
QModelIndex | index () const |
IndexedString | indexedPath () const |
bool | isProjectRoot () const |
virtual bool | lessThan (const KDevelop::ProjectBaseItem *) const |
ProjectModel * | model () const |
virtual ProjectBaseItem * | parent () const |
Path | path () const |
IProject * | project () const |
void | removeRow (int row) |
void | removeRows (int row, int count) |
virtual RenameStatus | rename (const QString &newname) |
int | row () const |
int | rowCount () const |
void | setFlags (Qt::ItemFlags flags) |
ProjectBaseItem * | takeRow (int row) |
QList< ProjectTargetItem * > | targetList () const |
QString | text () const |
Additional Inherited Members | |
![]() | |
enum | ProjectItemType { BaseItem = 0, BuildFolder = 1, Folder = 2, ExecutableTarget = 3, LibraryTarget = 4, Target = 5, File = 6, CustomProjectItemType = 100 } |
enum | RenameStatus { RenameOk = 0, ExistingItemSameName = 1, ProjectManagerRenameFailed = 2, InvalidNewName = 3 } |
![]() | |
static bool | pathLessThan (KDevelop::ProjectBaseItem *item1, KDevelop::ProjectBaseItem *item2) |
![]() | |
void | setModel (ProjectModel *model) |
void | setRow (int row) |
void | setText (const QString &text) |
![]() | |
const QScopedPointer< class ProjectBaseItemPrivate > | d_ptr |
Detailed Description
Object which represents a target in a build system.
This object contains all properties specific to a target.
Definition at line 337 of file projectmodel.h.
Constructor & Destructor Documentation
◆ ProjectTargetItem()
KDevelop::ProjectTargetItem::ProjectTargetItem | ( | IProject * | project, |
const QString & | name, | ||
ProjectBaseItem * | parent = nullptr |
||
) |
Definition at line 833 of file projectmodel.cpp.
Member Function Documentation
◆ iconName()
|
overridevirtual |
- Returns
- a string to pass to QIcon::fromTheme() as icon-name suitable to represent this item.
Reimplemented from KDevelop::ProjectBaseItem.
Definition at line 839 of file projectmodel.cpp.
◆ setPath()
|
overridevirtual |
Set the path of this item.
- Note
- This function never renames the item in the project manager or on the filesystem, it only changes the path and possibly the text nothing else.
Reimplemented from KDevelop::ProjectBaseItem.
Definition at line 844 of file projectmodel.cpp.
◆ target()
|
overridevirtual |
- Returns
- If this item is a target, it returns a pointer to the target, otherwise returns a 0 pointer.
Reimplemented from KDevelop::ProjectBaseItem.
Definition at line 856 of file projectmodel.cpp.
◆ type()
|
overridevirtual |
Reimplemented from QStandardItem.
Reimplemented from KDevelop::ProjectBaseItem.
Reimplemented in KDevelop::ProjectLibraryTargetItem, and KDevelop::ProjectExecutableTargetItem.
Definition at line 851 of file projectmodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Apr 14 2021 23:30:57 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.