diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-17 13:43:23 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-17 13:43:23 +0100 |
commit | ba25e41d49fd5e9f46840d0b876df21ad5f583db (patch) | |
tree | 2ce4401b3dd9f5ee5c32ae28cfb40c89e83bd8fa | |
parent | d3763b0053284154bcceadbd2d1d8fe171adc4cf (diff) |
video/ps3eye: set correct dialog fixed size
-rw-r--r-- | video-ps3eye/dialog.ui | 14 | ||||
-rw-r--r-- | video-ps3eye/module.cpp | 1 |
2 files changed, 11 insertions, 4 deletions
diff --git a/video-ps3eye/dialog.ui b/video-ps3eye/dialog.ui index 1e94ce74..68060eb9 100644 --- a/video-ps3eye/dialog.ui +++ b/video-ps3eye/dialog.ui @@ -10,7 +10,7 @@ <x>0</x> <y>0</y> <width>439</width> - <height>211</height> + <height>124</height> </rect> </property> <property name="minimumSize"> @@ -31,6 +31,12 @@ <layout class="QGridLayout" name="gridLayout"> <item row="0" column="2"> <widget class="QSpinBox" name="exposure_label"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="readOnly"> <bool>true</bool> </property> @@ -64,8 +70,8 @@ <item row="0" column="1"> <widget class="QSlider" name="exposure_slider"> <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Maximum"> - <horstretch>1</horstretch> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> @@ -87,7 +93,7 @@ <item row="1" column="1"> <widget class="QSlider" name="gain_slider"> <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Maximum"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> diff --git a/video-ps3eye/module.cpp b/video-ps3eye/module.cpp index a234a3aa..28283e6b 100644 --- a/video-ps3eye/module.cpp +++ b/video-ps3eye/module.cpp @@ -257,6 +257,7 @@ 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); |