Fix saving of custom resolutions

This commit is contained in:
jfmcarreira committed 2016-10-27 16:40:37 +01:00
1 parent 8de1619079
commit 5f6ad706df
3 files changed
+78 -3

No files matched your search

+12
View File
@@ -29,6 +29,7 @@
#include <QVector>
#include "PlaYUVerAppDefs.h"
#include "lib/PlaYUVerStream.h"
class QComboBox;
class QHBoxLayout;
@@ -37,6 +38,10 @@ class QSpinBox;
class QString;
class QWidget;
typedef QVector<PlaYUVerStdResolution> PlaYUVerStdResolutionVector;
QDataStream& operator<<( QDataStream& out, const PlaYUVerStdResolutionVector& array );
QDataStream& operator>>( QDataStream& in, PlaYUVerStdResolutionVector& array );
/**
*
*/
@@ -49,6 +54,9 @@ public:
ConfigureFormatDialog( QWidget *parent = 0 );
Int runConfigureFormatDialog( const QString& Filename, UInt& rWidth, UInt& rHeight, Int& rInputFormat, UInt& rBits, Int& rEndianess, UInt& rFrameRate );
Void readSettings();
Void writeSettings();
private Q_SLOTS:
void slotStandardResolutionSelected( int );
void slotResolutionChange();
@@ -58,6 +66,7 @@ private Q_SLOTS:
private:
QStringList standardResolutionNames;
QVector<QSize> standardResolutionSizes;
PlaYUVerStdResolutionVector aRCustomFileFormats;
QLabel* m_labelFilename;
QComboBox *m_comboBoxStandardResolution;
@@ -73,4 +82,7 @@ private:
};
Q_DECLARE_METATYPE( PlaYUVerStdResolution );
Q_DECLARE_METATYPE( PlaYUVerStdResolutionVector );
#endif // __CONFIGUREFORMATDIALOG_H__