ProjectModelItemContext Class Reference
#include <kdevcore.h>
Inheritance diagram for ProjectModelItemContext:

Public Member Functions | |
ProjectModelItemContext (const ProjectModelItem *item) | |
virtual | ~ProjectModelItemContext () |
virtual int | type () const |
const ProjectModelItem * | item () const |
![]() | |
virtual bool | hasType (int type) const |
Additional Inherited Members | |
![]() | |
enum | Type { EditorContext, DocumentationContext, FileContext, ProjectModelItemContext, CodeModelItemContext } |
![]() | |
Context () | |
virtual | ~Context () |
Detailed Description
A context for the popup menu in project views.
Definition at line 263 of file kdevcore.h.
Constructor & Destructor Documentation
◆ ProjectModelItemContext()
ProjectModelItemContext::ProjectModelItemContext | ( | const ProjectModelItem * | item | ) |
Builds the context.
- Parameters
-
item The item to build the context from.
Definition at line 262 of file kdevcore.cpp.
◆ ~ProjectModelItemContext()
|
virtual |
Destructor.
Definition at line 267 of file kdevcore.cpp.
Member Function Documentation
◆ item()
const ProjectModelItem * ProjectModelItemContext::item | ( | ) | const |
- Returns
- The code model item for the selected item.
Definition at line 278 of file kdevcore.cpp.
◆ type()
|
virtual |
Implement this in the context so we can provide rtti.
Implements Context.
Definition at line 273 of file kdevcore.cpp.
The documentation for this class was generated from the following files: