diff options
Diffstat (limited to 'brushinghandler.cpp')
-rw-r--r-- | brushinghandler.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/brushinghandler.cpp b/brushinghandler.cpp new file mode 100644 index 0000000..0a8b9aa --- /dev/null +++ b/brushinghandler.cpp @@ -0,0 +1,17 @@ +#include "brushinghandler.h" + +BrushingHandler::BrushingHandler() + : m_brushedItem(-1) +{ +} + +void BrushingHandler::clearBrush() +{ + brushItem(-1); +} + +void BrushingHandler::brushItem(int item) +{ + m_brushedItem = item; + emit itemBrushed(item); +} |