mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
PDF: resize QGraphicsScene if PNG displayed shrunk
This commit is contained in:
parent
62e9ddc6e3
commit
f4a842a55d
2 changed files with 6 additions and 0 deletions
|
@ -1955,6 +1955,9 @@ void reader::setupPng() {
|
|||
// Initialized above
|
||||
graphicsScene->clear();
|
||||
graphicsScene->addPixmap(pixmap);
|
||||
// Shrinking scene if item is smaller than previous one
|
||||
QRectF rect = graphicsScene->itemsBoundingRect();
|
||||
graphicsScene->setSceneRect(rect);
|
||||
ui->graphicsView->items().clear();
|
||||
ui->graphicsView->setScene(graphicsScene);
|
||||
}
|
||||
|
|
|
@ -891,6 +891,9 @@ void settings::openUpdateDialog() {
|
|||
}
|
||||
|
||||
void settings::launchOtaUpdater() {
|
||||
global::toast::modalToast = true;
|
||||
global::toast::indefiniteToast = true;
|
||||
emit showToast("Checking for updates");
|
||||
otaManagerWindow = new otaManager(this);
|
||||
connect(otaManagerWindow, SIGNAL(canOtaUpdate(bool)), SLOT(openUpdateDialogOTA(bool)));
|
||||
otaManagerWindow->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
|
Loading…
Reference in a new issue