Fix custom resolution message when open a new sequence
This commit is contained in:
1 parent
2aaeb9f6ed
commit
10a6d64e8d
1 file changed
+7
-2
@@ -33,12 +33,13 @@
|
|||||||
#include <QSpinBox>
|
#include <QSpinBox>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
#include "lib/PlaYUVerFrame.h"
|
#include "lib/PlaYUVerFrame.h"
|
||||||
|
|
||||||
#include "ConfigureFormatDialog.h"
|
#include "ConfigureFormatDialog.h"
|
||||||
|
|
||||||
#define MAX_SUPPORTED_RESOLUTION 9999
|
#define MAX_SUPPORTED_RESOLUTION 99999
|
||||||
|
|
||||||
QDataStream& operator<<( QDataStream& out, const PlaYUVerStdResolutionVector& array )
|
QDataStream& operator<<( QDataStream& out, const PlaYUVerStdResolutionVector& array )
|
||||||
{
|
{
|
||||||
@@ -423,19 +424,23 @@ Int ConfigureFormatDialog::runConfigureFormatDialog( const QString& Filename, UI
|
|||||||
m_widgetEndianness->setVisible( false );
|
m_widgetEndianness->setVisible( false );
|
||||||
}
|
}
|
||||||
m_spinBoxFrameRate->setValue( rFrameRate );
|
m_spinBoxFrameRate->setValue( rFrameRate );
|
||||||
for( Int i = 0; i < standardResolutionSizes.size(); i++ )
|
|
||||||
|
for( Int i = 0; i < standardResolutionSizes.size() - 1; i++ )
|
||||||
{
|
{
|
||||||
if( standardResolutionSizes.at( i ) == QSize( rWidth, rHeight ) )
|
if( standardResolutionSizes.at( i ) == QSize( rWidth, rHeight ) )
|
||||||
{
|
{
|
||||||
m_comboBoxStandardResolution->setCurrentIndex( i );
|
m_comboBoxStandardResolution->setCurrentIndex( i );
|
||||||
|
qDebug() << "ola";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( exec() == QDialog::Rejected )
|
if( exec() == QDialog::Rejected )
|
||||||
{
|
{
|
||||||
writeSettings();
|
writeSettings();
|
||||||
return QDialog::Rejected;
|
return QDialog::Rejected;
|
||||||
}
|
}
|
||||||
|
|
||||||
rWidth = m_spinBoxWidth->value();
|
rWidth = m_spinBoxWidth->value();
|
||||||
rHeight = m_spinBoxheight->value();
|
rHeight = m_spinBoxheight->value();
|
||||||
colorSpace = m_comboBoxColorSpace->currentIndex();
|
colorSpace = m_comboBoxColorSpace->currentIndex();
|
||||||
|
|||||||
Reference in new issue
Block a user