Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/KisViewManager.cpp
Context not available. | |||||
1390 | KisConfig cfg(true); | 1390 | KisConfig cfg(true); | ||
---|---|---|---|---|---|
1391 | d->showPixelGrid->setChecked(cfg.pixelGridEnabled() && cfg.useOpenGL()); | 1391 | d->showPixelGrid->setChecked(cfg.pixelGridEnabled() && cfg.useOpenGL()); | ||
1392 | } | 1392 | } | ||
1393 | | ||||
1394 | void KisViewManager::slotActivateTransformTool() | ||||
1395 | { | ||||
1396 | if(KoToolManager::instance()->activeToolId() == "KisToolTransform") { | ||||
1397 | KoToolBase* tool = KoToolManager::instance()->toolById(canvasBase(), "KisToolTransform"); | ||||
1398 | | ||||
1399 | QSet<KoShape*> dummy; | ||||
1400 | // Start a new stroke | ||||
1401 | tool->deactivate(); | ||||
1402 | tool->activate(KoToolBase::DefaultActivation, dummy); | ||||
1403 | } | ||||
1404 | | ||||
1405 | KoToolManager::instance()->switchToolRequested("KisToolTransform"); | ||||
1406 | } | ||||
Context not available. |