34
34
#include < QtWidgets/QProgressBar>
35
35
#include < QtWidgets/QListView>
36
36
#include < QtWidgets/QAction>
37
- #ifndef OS_IOS
37
+ #if (1 == WD_ENABLE_PLAYER)
38
38
#include < QtMultimediaWidgets/QVideoWidget>
39
39
#include < QtMultimedia/QMediaPlayer>
40
- #endif // OS_IOS
40
+ #endif // WD_ENABLE_PLAYER
41
41
#else
42
42
#include < QtGui/QApplication>
43
43
#include < QtGui/QLineEdit>
@@ -1171,7 +1171,7 @@ void QWidgetViewCmdExecutor::TouchFlick(const ElementId &element, const int &xof
1171
1171
1172
1172
void QWidgetViewCmdExecutor::GetPlayerState (const ElementId &element, PlayerState *state, Error **error)
1173
1173
{
1174
- #if (!OS_IOS ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1174
+ #if (1 == WD_ENABLE_PLAYER ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1175
1175
QWidget* view = getView (view_id_, error);
1176
1176
if (NULL == view)
1177
1177
return ;
@@ -1199,7 +1199,7 @@ void QWidgetViewCmdExecutor::GetPlayerState(const ElementId &element, PlayerStat
1199
1199
1200
1200
void QWidgetViewCmdExecutor::SetPlayerState (const ElementId &element, PlayerState state, Error **error)
1201
1201
{
1202
- #if (!OS_IOS ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1202
+ #if (1 == WD_ENABLE_PLAYER ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1203
1203
QWidget* view = getView (view_id_, error);
1204
1204
if (NULL == view)
1205
1205
return ;
@@ -1233,7 +1233,7 @@ void QWidgetViewCmdExecutor::SetPlayerState(const ElementId &element, PlayerStat
1233
1233
1234
1234
void QWidgetViewCmdExecutor::GetPlayerVolume (const ElementId &element, double *volume, Error **error)
1235
1235
{
1236
- #if (!OS_IOS ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1236
+ #if (1 == WD_ENABLE_PLAYER ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1237
1237
QWidget* view = getView (view_id_, error);
1238
1238
if (NULL == view)
1239
1239
return ;
@@ -1262,7 +1262,7 @@ void QWidgetViewCmdExecutor::GetPlayerVolume(const ElementId &element, double *v
1262
1262
1263
1263
void QWidgetViewCmdExecutor::SetPlayerVolume (const ElementId &element, double volume, Error **error)
1264
1264
{
1265
- #if (!OS_IOS ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1265
+ #if (1 == WD_ENABLE_PLAYER ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1266
1266
QWidget* view = getView (view_id_, error);
1267
1267
if (NULL == view)
1268
1268
return ;
@@ -1291,7 +1291,7 @@ void QWidgetViewCmdExecutor::SetPlayerVolume(const ElementId &element, double vo
1291
1291
1292
1292
void QWidgetViewCmdExecutor::GetPlayingPosition (const ElementId &element, double *position, Error **error)
1293
1293
{
1294
- #if (!OS_IOS ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1294
+ #if (1 == WD_ENABLE_PLAYER ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1295
1295
QWidget* view = getView (view_id_, error);
1296
1296
if (NULL == view)
1297
1297
return ;
@@ -1319,7 +1319,7 @@ void QWidgetViewCmdExecutor::GetPlayingPosition(const ElementId &element, double
1319
1319
1320
1320
void QWidgetViewCmdExecutor::SetPlayingPosition (const ElementId &element, double position, Error **error)
1321
1321
{
1322
- #if (!OS_IOS ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1322
+ #if (1 == WD_ENABLE_PLAYER ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1323
1323
QWidget* view = getView (view_id_, error);
1324
1324
if (NULL == view)
1325
1325
return ;
@@ -1347,7 +1347,7 @@ void QWidgetViewCmdExecutor::SetPlayingPosition(const ElementId &element, double
1347
1347
1348
1348
void QWidgetViewCmdExecutor::SetMute (const ElementId &element, bool mute, Error **error)
1349
1349
{
1350
- #if (!OS_IOS ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1350
+ #if (1 == WD_ENABLE_PLAYER ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1351
1351
QWidget* view = getView (view_id_, error);
1352
1352
if (NULL == view)
1353
1353
return ;
@@ -1375,7 +1375,7 @@ void QWidgetViewCmdExecutor::SetMute(const ElementId &element, bool mute, Error
1375
1375
1376
1376
void QWidgetViewCmdExecutor::GetMute (const ElementId &element, bool *mute, Error **error)
1377
1377
{
1378
- #if (!OS_IOS ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1378
+ #if (1 == WD_ENABLE_PLAYER ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1379
1379
QWidget* view = getView (view_id_, error);
1380
1380
if (NULL == view)
1381
1381
return ;
@@ -1403,7 +1403,7 @@ void QWidgetViewCmdExecutor::GetMute(const ElementId &element, bool *mute, Error
1403
1403
1404
1404
void QWidgetViewCmdExecutor::SetPlaybackSpeed (const ElementId &element, double speed, Error **error)
1405
1405
{
1406
- #if (!OS_IOS ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1406
+ #if (1 == WD_ENABLE_PLAYER ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1407
1407
QWidget* view = getView (view_id_, error);
1408
1408
if (NULL == view)
1409
1409
return ;
@@ -1431,7 +1431,7 @@ void QWidgetViewCmdExecutor::SetPlaybackSpeed(const ElementId &element, double s
1431
1431
1432
1432
void QWidgetViewCmdExecutor::GetPlaybackSpeed (const ElementId &element, double *speed, Error **error)
1433
1433
{
1434
- #if (!OS_IOS ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1434
+ #if (1 == WD_ENABLE_PLAYER ) && (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
1435
1435
QWidget* view = getView (view_id_, error);
1436
1436
if (NULL == view)
1437
1437
return ;
@@ -1454,7 +1454,7 @@ void QWidgetViewCmdExecutor::GetPlaybackSpeed(const ElementId &element, double *
1454
1454
*speed = player->playbackRate ();
1455
1455
#else
1456
1456
NOT_SUPPORTED_IMPL
1457
- #endif
1457
+ #endif
1458
1458
}
1459
1459
1460
1460
bool QWidgetViewCmdExecutor::MatchNativeElement (const QObject* item, const std::string& locator, const std::string& query) {
0 commit comments