Changeset View
Changeset View
Standalone View
Standalone View
autotests/propertyinfotest.cpp
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Line(s) | 113 | } rows[] = { | |||
---|---|---|---|---|---|
127 | { Property::PhotoFlash, true, 0x00, QStringLiteral("No flash")}, | 127 | { Property::PhotoFlash, true, 0x00, QStringLiteral("No flash")}, | ||
128 | { Property::PhotoFlash, true, 0x50, QStringLiteral("No, red-eye reduction")}, | 128 | { Property::PhotoFlash, true, 0x50, QStringLiteral("No, red-eye reduction")}, | ||
129 | { Property::PhotoGpsAltitude, true, 1.1, QStringLiteral("1.1 m")}, | 129 | { Property::PhotoGpsAltitude, true, 1.1, QStringLiteral("1.1 m")}, | ||
130 | // make VisualStudio compiler happy: QChar(0x00B0) = "°" | 130 | // make VisualStudio compiler happy: QChar(0x00B0) = "°" | ||
131 | { Property::PhotoGpsLatitude, true, 25, QStringLiteral("25") + QChar(0x00B0)}, | 131 | { Property::PhotoGpsLatitude, true, 25, QStringLiteral("25") + QChar(0x00B0)}, | ||
132 | { Property::PhotoGpsLongitude, true, 13.5, QStringLiteral("13.5") + QChar(0x00B0)}, | 132 | { Property::PhotoGpsLongitude, true, 13.5, QStringLiteral("13.5") + QChar(0x00B0)}, | ||
133 | { Property::PhotoExposureTime, true, 0.0015625, QStringLiteral("0.00156")}, | 133 | { Property::PhotoExposureTime, true, 0.0015625, QStringLiteral("0.00156")}, | ||
134 | { Property::PhotoExposureBiasValue, true, 0.3333333, QStringLiteral("0.333")}, | 134 | { Property::PhotoExposureBiasValue, true, 0.3333333, QStringLiteral("0.333")}, | ||
135 | { Property::PhotoFNumber, true, 4.0, QStringLiteral("f/4")}, | ||||
136 | { Property::PhotoFNumber, true, 2.8, QStringLiteral("f/2.8")}, | ||||
135 | { Property::ReplayGainAlbumGain, true, -9.90, QStringLiteral("-9.9")}, | 137 | { Property::ReplayGainAlbumGain, true, -9.90, QStringLiteral("-9.9")}, | ||
136 | { Property::ReplayGainAlbumPeak, true, 1.512, QStringLiteral("1.51")}, | 138 | { Property::ReplayGainAlbumPeak, true, 1.512, QStringLiteral("1.51")}, | ||
137 | { Property::ReplayGainAlbumGain, true, 10.44, QStringLiteral("10.4")}, | 139 | { Property::ReplayGainAlbumGain, true, 10.44, QStringLiteral("10.4")}, | ||
138 | { Property::ReplayGainAlbumPeak, true, 1.306, QStringLiteral("1.31")}, | 140 | { Property::ReplayGainAlbumPeak, true, 1.306, QStringLiteral("1.31")}, | ||
139 | { Property::FrameRate, true, 23, QStringLiteral("23 fps")}, | 141 | { Property::FrameRate, true, 23, QStringLiteral("23 fps")}, | ||
140 | { Property::FrameRate, true, 23.976, QStringLiteral("23.98 fps")}, | 142 | { Property::FrameRate, true, 23.976, QStringLiteral("23.98 fps")}, | ||
141 | { Property::AspectRatio, true, 1.77778, QStringLiteral("1.78:1")}, | 143 | { Property::AspectRatio, true, 1.77778, QStringLiteral("1.78:1")}, | ||
142 | }; | 144 | }; | ||
143 | 145 | | |||
144 | for (auto row : rows) { | 146 | for (auto row : rows) { | ||
145 | PropertyInfo info(row.property); | 147 | PropertyInfo info(row.property); | ||
146 | QTest::addRow("%s", info.displayName().toUtf8().constData()) | 148 | QTest::addRow("%s", info.displayName().toUtf8().constData()) | ||
147 | << info << row.value << row.expected << row.maybeLocalized; | 149 | << info << row.value << row.expected << row.maybeLocalized; | ||
148 | } | 150 | } | ||
149 | } | 151 | } |