Krita Source Code Documentation
Loading...
Searching...
No Matches
SelectionHandler Class Reference
+ Inheritance diagram for SelectionHandler:

Public Member Functions

bool hasSelection () override
 return true if the tool currently has something selected that can be copied or deleted.
 
 SelectionHandler (DefaultTool *parent)
 
- Public Member Functions inherited from KoToolSelection
 KoToolSelection (QObject *parent=0)
 
 ~KoToolSelection () override
 

Private Attributes

QPointer< KoSelectionm_selection
 

Detailed Description

Definition at line 394 of file DefaultTool.cpp.

Constructor & Destructor Documentation

◆ SelectionHandler()

SelectionHandler::SelectionHandler ( DefaultTool * parent)
inline

Definition at line 397 of file DefaultTool.cpp.

398 : KoToolSelection(parent)
399 , m_selection(parent->koSelection())
400 {
401 }
KoToolSelection(QObject *parent=0)
QPointer< KoSelection > m_selection
ChildIterator< value_type, is_const > parent(const ChildIterator< value_type, is_const > &it)
Definition KisForest.h:327

Member Function Documentation

◆ hasSelection()

bool SelectionHandler::hasSelection ( )
inlineoverridevirtual

return true if the tool currently has something selected that can be copied or deleted.

Reimplemented from KoToolSelection.

Definition at line 403 of file DefaultTool.cpp.

404 {
405 if (m_selection) {
406 return m_selection->count();
407 }
408 return false;
409 }

References m_selection.

Member Data Documentation

◆ m_selection

QPointer<KoSelection> SelectionHandler::m_selection
private

Definition at line 412 of file DefaultTool.cpp.


The documentation for this class was generated from the following file: