1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 16:34:45 -04:00

PVS-Studio analys fixes: core package minor issues

This commit is contained in:
f4exb
2019-06-15 07:00:09 +02:00
parent 8eb0dcf267
commit 68e4eaac68
9 changed files with 291 additions and 278 deletions
+9 -9
View File
@@ -36,6 +36,15 @@ ArgInfoGUI::ArgInfoGUI(ArgInfoType type, ArgInfoValueType valueType, QWidget *pa
ui->setupUi(this);
QHBoxLayout *layout = ui->argLayout;
if ((m_valueType == ArgInfoValueInt) || (m_valueType == ArgInfoValueFloat))
{
if (m_type == ArgInfoContinuous) {
ui->argEdit->setAlignment(Qt::AlignRight);
} else if (m_type == ArgInfoDiscrete) {
ui->argCombo->setLayoutDirection(Qt::RightToLeft);
}
}
if (m_type != ArgInfoBinary)
{
layout->removeWidget(ui->argCheck);
@@ -53,15 +62,6 @@ ArgInfoGUI::ArgInfoGUI(ArgInfoType type, ArgInfoValueType valueType, QWidget *pa
layout->removeWidget(ui->argCombo);
delete ui->argCombo;
}
if ((m_valueType == ArgInfoValueInt) || (m_valueType == ArgInfoValueFloat))
{
if (m_type == ArgInfoContinuous) {
ui->argEdit->setAlignment(Qt::AlignRight);
} else if (m_type == ArgInfoDiscrete) {
ui->argCombo->setLayoutDirection(Qt::RightToLeft);
}
}
}
ArgInfoGUI::~ArgInfoGUI()