Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: move burn confirm dialog center. #2533

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,21 @@
#include "utils/auditlogjob.h"
#include "utils/packetwritingjob.h"

#include <dfm-base/file/local/localfilehandler.h>

Check warning on line 10 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <dfm-base/file/local/localfilehandler.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 10 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <dfm-base/file/local/localfilehandler.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <dfm-base/utils/dialogmanager.h>

Check warning on line 11 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <dfm-base/utils/dialogmanager.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 11 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <dfm-base/utils/dialogmanager.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <dfm-base/utils/windowutils.h>

Check warning on line 12 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <dfm-base/utils/windowutils.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 12 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <dfm-base/utils/windowutils.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <dfm-base/base/schemefactory.h>

Check warning on line 13 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <dfm-base/base/schemefactory.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 13 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <dfm-base/base/schemefactory.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <dfm-base/base/device/devicemanager.h>

Check warning on line 14 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <dfm-base/base/device/devicemanager.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 14 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <dfm-base/base/device/devicemanager.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <dfm-base/base/device/deviceproxymanager.h>

Check warning on line 15 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <dfm-base/base/device/deviceproxymanager.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 15 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <dfm-base/base/device/deviceproxymanager.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

#include <dfm-framework/event/event.h>

#include <dfm-io/dfileinfo.h>

#include <QVBoxLayout>

Check warning on line 21 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QVBoxLayout> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 21 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <QVBoxLayout> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QTextEdit>

Check warning on line 22 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QTextEdit> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 22 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <QTextEdit> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QLabel>

Check warning on line 23 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QLabel> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 23 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <QLabel> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QScreen>

Check warning on line 24 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QScreen> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 24 in src/plugins/common/dfmplugin-burn/utils/burnjobmanager.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <QScreen> not found. Please note: Cppcheck does not need standard library headers to get proper results.

DFMBASE_USE_NAMESPACE

Expand Down Expand Up @@ -223,7 +225,8 @@
d.addButton(tr("OK", "button"), true, DDialog::ButtonRecommend);
d.setDefaultButton(0);
d.getButton(0)->setFocus();
d.moveToCenter();
d.move(WindowUtils::cursorScreen()->geometry().center()
- QPoint(d.width() / 2, d.height() / 2));
d.exec();
}

Expand Down Expand Up @@ -278,7 +281,8 @@
d.addButton(tr("Confirm", "button"), true, DDialog::ButtonRecommend);
d.setDefaultButton(1);
d.getButton(1)->setFocus();
d.moveToCenter();
d.move(WindowUtils::cursorScreen()->geometry().center()
- QPoint(d.width() / 2, d.height() / 2));
d.exec();
}

Expand Down Expand Up @@ -322,7 +326,8 @@
iconLabel->setPixmap(QIcon::fromTheme("dialog-ok").pixmap(96, 96));
mainLayout->addWidget(iconLabel, 0, Qt::AlignTop | Qt::AlignCenter);

d.moveToCenter();
d.move(WindowUtils::cursorScreen()->geometry().center()
- QPoint(d.width() / 2, d.height() / 2));
d.exec();
}

Expand Down Expand Up @@ -356,7 +361,8 @@
iconLabel->setPixmap(QIcon::fromTheme("dialog-error").pixmap(96, 96));
mainLayout->addWidget(iconLabel, 0, Qt::AlignTop | Qt::AlignCenter);

d.moveToCenter();
d.move(WindowUtils::cursorScreen()->geometry().center()
- QPoint(d.width() / 2, d.height() / 2));
d.exec();
}

Expand Down
Loading