Use currentTool() as far as possible, avoid access m_currentTool.