Improve saving of custom struct in QSettings

This commit is contained in:
jfmcarreira committed 2014-10-03 02:28:41 +01:00
1 parent e9b5630ca3
commit b9b2df9b7e
6 files changed
+48 -7

No files matched your search

+9 -2
View File
@@ -49,10 +49,14 @@ struct structPlaYUVERStreamInfo
UInt m_uiFrameRate;
};
//typedef QVector<PlaYUVERStreamInfo> PlaYUVerRecentFileListInfo;
typedef struct structPlaYUVERStreamInfo PlaYUVerRecentFileListInfo;
typedef QVector<structPlaYUVERStreamInfo> PlaYUVerRecentFileListInfo;
//typedef structPlaYUVERStreamInfo PlaYUVerRecentFileListInfo;
typedef struct structPlaYUVERStreamInfo PlaYUVerStreamInfo;
QDataStream& operator<<(QDataStream& out, const plaYUVer::PlaYUVerRecentFileListInfo& d);
QDataStream& operator>>(QDataStream& in, plaYUVer::PlaYUVerRecentFileListInfo& d);
class SubWindowHandle: public QMdiSubWindow
{
Q_OBJECT
@@ -230,6 +234,9 @@ public Q_SLOTS:
} // NAMESPACE
Q_DECLARE_METATYPE(plaYUVer::PlaYUVerRecentFileListInfo);
//Q_DECLARE_METATYPE(plaYUVer::structPlaYUVERStreamInfo)
#endif // __SUBWINDOWHANDLE_H__