+ getter method added to WaitCursor
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5099 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
parent
110c879e58
commit
2461bbd973
|
@ -42,6 +42,7 @@ class WaitCursorP : public QObject
|
|||
public:
|
||||
static WaitCursorP* getInstance();
|
||||
void setBusy(bool);
|
||||
WaitCursor::FilterEventsFlags ignoreEvents() const;
|
||||
void setIgnoreEvents(WaitCursor::FilterEventsFlags flags);
|
||||
|
||||
protected:
|
||||
|
@ -86,6 +87,11 @@ void WaitCursorP::setBusy(bool on)
|
|||
this->isOn = on;
|
||||
}
|
||||
|
||||
WaitCursor::FilterEventsFlags WaitCursorP::ignoreEvents() const
|
||||
{
|
||||
return this->flags;
|
||||
}
|
||||
|
||||
void WaitCursorP::setIgnoreEvents(WaitCursor::FilterEventsFlags flags)
|
||||
{
|
||||
this->flags = flags;
|
||||
|
@ -163,6 +169,11 @@ void WaitCursor::restoreCursor()
|
|||
WaitCursorP::getInstance()->setBusy(false);
|
||||
}
|
||||
|
||||
WaitCursor::FilterEventsFlags WaitCursor::ignoreEvents() const
|
||||
{
|
||||
return WaitCursorP::getInstance()->ignoreEvents();
|
||||
}
|
||||
|
||||
void WaitCursor::setIgnoreEvents(FilterEventsFlags flags)
|
||||
{
|
||||
WaitCursorP::getInstance()->setIgnoreEvents(flags);
|
||||
|
|
|
@ -74,6 +74,7 @@ public:
|
|||
|
||||
void setWaitCursor();
|
||||
void restoreCursor();
|
||||
FilterEventsFlags ignoreEvents() const;
|
||||
void setIgnoreEvents(FilterEventsFlags flags = AllEvents);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue
Block a user