diff --git a/abstracttoolbox.h b/abstracttoolbox.h index a59f30016..c1852f38b 100644 --- a/abstracttoolbox.h +++ b/abstracttoolbox.h @@ -42,11 +42,11 @@ class PLASMA_EXPORT AbstractToolBox : public QGraphicsWidget public: enum ToolType { AddTool = 0, - ConfigureTool, - ControlTool, - MiscTool, - DestructiveTool, - LastToolType = DestructiveTool + 1 + ConfigureTool = 100, + ControlTool = 200, + MiscTool = 300, + DestructiveTool = 400, + UserToolType = DestructiveTool + 1000 }; Q_ENUMS(ToolType) diff --git a/private/internaltoolbox.cpp b/private/internaltoolbox.cpp index cf25820bb..bbf750903 100644 --- a/private/internaltoolbox.cpp +++ b/private/internaltoolbox.cpp @@ -155,7 +155,7 @@ void InternalToolBox::addTool(QAction *action) ToolType type = AbstractToolBox::MiscTool; if (!action->data().isNull() && action->data().type() == QVariant::Int) { int t = action->data().toInt(); - if (t >= 0 && t < AbstractToolBox::LastToolType) { + if (t >= 0 && t < AbstractToolBox::UserToolType) { type = static_cast(t); } }