Try something in CropScene
This commit is contained in:
parent
f57013d557
commit
74d98fe8f3
@ -154,7 +154,16 @@ void CropScene::setVisible(bool visible) {
|
|||||||
for (auto view : views()) {
|
for (auto view : views()) {
|
||||||
if (view->isVisible()) fullscreen |= view->isFullScreen();
|
if (view->isVisible()) fullscreen |= view->isFullScreen();
|
||||||
view->setVisible(visible);
|
view->setVisible(visible);
|
||||||
if (visible && fullscreen) view->showFullScreen();
|
if (fullscreen) view->showFullScreen();
|
||||||
|
if (visible) {
|
||||||
|
view->resize(_pixmap.width(), _pixmap.height());
|
||||||
|
view->setMinimumSize(_pixmap.size());
|
||||||
|
QPoint p = screenshotutil::smallestScreenCoordinate() + QPoint(settings::settings().value("cropx", 0).toInt(),
|
||||||
|
settings::settings().value("cropy", 0).toInt());
|
||||||
|
view->move(p.x(), p.y());
|
||||||
|
view->setWindowTitle("KShare Crop Editor");
|
||||||
|
view->activateWindow();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user