diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-09-14 18:14:09 +0300 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-09-17 10:06:36 +0300 |
commit | 34bb2dbfa3b8cce2f8deaf300e410420ea5749b8 (patch) | |
tree | e159d2b6cc3f301d7aa1e3602ad6865aa2232fda /examples | |
parent | 96a708759938a2f55dea3b6f02cd394334654818 (diff) |
Fix unused variable warning in player example
Pick-to: 6.2 6.2.0
Change-Id: I836a3a371e54b88ffe75ff464c326fa33a6a9f5b
Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/multimediawidgets/player/player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/multimediawidgets/player/player.cpp b/examples/multimediawidgets/player/player.cpp index 66b8fb46b..cabf43b63 100644 --- a/examples/multimediawidgets/player/player.cpp +++ b/examples/multimediawidgets/player/player.cpp @@ -128,7 +128,6 @@ Player::Player(QWidget *parent) histogramLayout->addWidget(m_videoHistogram, 1); histogramLayout->addWidget(m_audioHistogram, 2); - QLabel *metaDataLabel = new QLabel(tr("Metadata for file:")); QGridLayout *metaDataLayout = new QGridLayout; int key = QMediaMetaData::Title; for (int i = 0; i < (QMediaMetaData::NumMetaData + 2)/3; i++) { @@ -221,6 +220,7 @@ Player::Player(QWidget *parent) layout->addLayout(tracksLayout); #if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS) layout->addLayout(histogramLayout); + QLabel *metaDataLabel = new QLabel(tr("Metadata for file:")); layout->addWidget(metaDataLabel); layout->addLayout(metaDataLayout); #endif |