28 KisAction *action = createAction(
"shearimage");
29 connect(action, SIGNAL(triggered()),
this, SLOT(slotShearImage()));
31 action = createAction(
"shearlayer");
32 connect(action, SIGNAL(triggered()),
this, SLOT(slotShearLayer()));
34 action = createAction(
"shearAllLayers");
35 connect(action, SIGNAL(triggered()),
this, SLOT(slotShearAllLayers()));
47 if (!
viewManager()->blockUntilOperationsFinished(image))
return;
50 Q_CHECK_PTR(dlgShearImage);
52 dlgShearImage->
setCaption(i18n(
"Shear Image"));
54 if (dlgShearImage->exec() == QDialog::Accepted) {
55 qint32 angleX = dlgShearImage->
angleX();
56 qint32 angleY = dlgShearImage->
angleY();
57 viewManager()->imageManager()->shearCurrentImage(angleX, angleY);