diff --git a/src/UI_YUVviewer.py b/src/UI_YUVviewer.py
index e40753b..2471200 100644
--- a/src/UI_YUVviewer.py
+++ b/src/UI_YUVviewer.py
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
-# Form implementation generated from reading ui file 'UI_YUVviewer.ui'
+# Form implementation generated from reading ui file './src/UI_YUVviewer.ui'
#
-# Created by: PyQt5 UI code generator 5.9.2
+# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
@@ -11,13 +11,13 @@
class Ui_YUVviewer(object):
def setupUi(self, YUVviewer):
YUVviewer.setObjectName("YUVviewer")
- YUVviewer.resize(470, 155)
+ YUVviewer.resize(550, 155)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(YUVviewer.sizePolicy().hasHeightForWidth())
YUVviewer.setSizePolicy(sizePolicy)
- YUVviewer.setMinimumSize(QtCore.QSize(470, 155))
+ YUVviewer.setMinimumSize(QtCore.QSize(550, 155))
YUVviewer.setMaximumSize(QtCore.QSize(16777215, 155))
self.centralwidget = QtWidgets.QWidget(YUVviewer)
self.centralwidget.setObjectName("centralwidget")
@@ -217,3 +217,4 @@ def retranslateUi(self, YUVviewer):
self.openFolder_PushButton.setText(_translate("YUVviewer", "Open folder"))
self.about_PushButton.setText(_translate("YUVviewer", "About"))
self.help_PushButton.setText(_translate("YUVviewer", "Help"))
+
diff --git a/src/UI_YUVviewer.ui b/src/UI_YUVviewer.ui
index 38749a0..fbb7db5 100644
--- a/src/UI_YUVviewer.ui
+++ b/src/UI_YUVviewer.ui
@@ -6,7 +6,7 @@
0
0
- 470
+ 550
155
@@ -18,7 +18,7 @@
- 470
+ 550
155
diff --git a/src/YUVviewer.cpp b/src/YUVviewer.cpp
index f299dc0..f5c8599 100644
--- a/src/YUVviewer.cpp
+++ b/src/YUVviewer.cpp
@@ -71,6 +71,9 @@ YUVviewer::YUVviewer(QWidget *parent) :
ui->frameSizeType_ComboBox->insertItem(ui->frameSizeType_ComboBox->count(),config_it->first);
config_it++;
}
+ ui->frameSizeType_ComboBox->setStyleSheet("combobox-popup: 0;");
+ ui->YUVFormat_ComboBox->setStyleSheet("combobox-popup: 0;");
+ ui->frameRate_ComboBox->setStyleSheet("combobox-popup: 0;");
YUVviewerConfigFile = new ConfigFile(QCoreApplication::applicationDirPath()+"/YUVViewer.ini");
if(YUVviewerConfigFile->config_dict.frameSizeType == "Other")
diff --git a/src/YUVviewer.py b/src/YUVviewer.py
index eee2165..c0a12ff 100644
--- a/src/YUVviewer.py
+++ b/src/YUVviewer.py
@@ -55,6 +55,10 @@ def __init__(self):
size = self.geometry()
self.move((screen.width() - size.width()) / 2, (screen.height() - size.height()) / 2)
+ self.ui.frameSizeType_ComboBox.setStyleSheet("combobox-popup: 0;")
+ self.ui.YUVFormat_ComboBox.setStyleSheet("combobox-popup: 0;")
+ self.ui.frameRate_ComboBox.setStyleSheet("combobox-popup: 0;")
+
for key,value in self.frameSizeTypeDict.items():
self.ui.frameSizeType_ComboBox.insertItem(self.ui.frameSizeType_ComboBox.count(), key)