diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-17 19:00:41 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-17 20:27:17 +0100 |
commit | face7439282c844897568e7a17d3094102580d38 (patch) | |
tree | 90ad4943641feac46dcc102cce8fafcd63482c1d | |
parent | 8c40ae4c5366279f62aebe1211878fd293056ffd (diff) |
video/ps3eye: set dialog attributes in the right place
-rw-r--r-- | video-ps3eye/module.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/video-ps3eye/module.cpp b/video-ps3eye/module.cpp index 28283e6b..02543082 100644 --- a/video-ps3eye/module.cpp +++ b/video-ps3eye/module.cpp @@ -92,7 +92,11 @@ std::unique_ptr<camera> ps3eye_camera_::make_camera(const QString& name) static bool show_dialog_() { - (new dialog)->show(); + auto& dlg = *new dialog; + dlg.setWindowFlag(Qt::MSWindowsFixedSizeDialogHint); + dlg.setAttribute(Qt::WA_DeleteOnClose); + dlg.adjustSize(); dlg.setFixedSize(dlg.size()); + dlg.show(); return true; } @@ -257,9 +261,6 @@ OTR_REGISTER_CAMERA(ps3eye_camera_) dialog::dialog(QWidget* parent) : QWidget(parent) { ui.setupUi(this); - adjustSize(); setFixedSize(size()); - setAttribute(Qt::WA_DeleteOnClose); - t.setInterval(500); t.setSingleShot(true); tie_setting(s.exposure, ui.exposure_slider); tie_setting(s.gain, ui.gain_slider); |