示例#1
0
void QtBrushManager::removeBrush(const QString &name)
{
    if (!d_ptr->theBrushMap.contains(name))
        return;
    if (currentBrush() == name)
        setCurrentBrush(QString());
    emit brushRemoved(name);
    d_ptr->theBrushMap.remove(name);
}
SDrawingController::SDrawingController():mpBrush(NULL)
    , mSpacing(1)
    , mCurrentColor(eColorRole_Foreground)
{
    setCurrentBrush(new SBrush());
}