Try something in CropScene

This commit is contained in:
ArsenArsen 2017-07-11 16:58:05 +02:00
parent f57013d557
commit 74d98fe8f3
1 changed files with 10 additions and 1 deletions

View File

@ -154,7 +154,16 @@ void CropScene::setVisible(bool visible) {
for (auto view : views()) {
if (view->isVisible()) fullscreen |= view->isFullScreen();
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();
}
}
}