aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/detailsdialog.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-01-31 21:21:14 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-01-31 21:21:14 +0000
commit53efb5d8ff3a1fa08adb334a415dba5be6e45505 (patch)
tree33b63badec68898f4a707cf1ee16c1f5611018cc /src/qmmpui/detailsdialog.cpp
parentb6d8148a8db5b5e22cf373ed9b464135d9e3e151 (diff)
downloadqmmp-53efb5d8ff3a1fa08adb334a415dba5be6e45505.tar.gz
qmmp-53efb5d8ff3a1fa08adb334a415dba5be6e45505.tar.bz2
qmmp-53efb5d8ff3a1fa08adb334a415dba5be6e45505.zip
prepare for cue editor implementation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9672 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/detailsdialog.cpp')
-rw-r--r--src/qmmpui/detailsdialog.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/qmmpui/detailsdialog.cpp b/src/qmmpui/detailsdialog.cpp
index 2b44fae60..8e423305b 100644
--- a/src/qmmpui/detailsdialog.cpp
+++ b/src/qmmpui/detailsdialog.cpp
@@ -32,6 +32,7 @@
#include "playlisttrack.h"
#include "tageditor_p.h"
#include "covereditor_p.h"
+#include "cueeditor_p.h"
#include "detailsdialog.h"
DetailsDialog::DetailsDialog(const QList<PlayListTrack *> &tracks, QWidget *parent)
@@ -82,6 +83,7 @@ void DetailsDialog::on_buttonBox_clicked(QAbstractButton *button)
{
TagEditor *tagEditor = qobject_cast<TagEditor *>(m_ui->tabWidget->currentWidget());
CoverEditor *coverEditor = nullptr;
+ CueEditor *cueEditor = nullptr;
if(tagEditor)
tagEditor->save();
else if((coverEditor = qobject_cast<CoverEditor *>(m_ui->tabWidget->currentWidget())))
@@ -89,6 +91,10 @@ void DetailsDialog::on_buttonBox_clicked(QAbstractButton *button)
coverEditor->save();
MetaDataManager::instance()->clearCoverCache();
}
+ else if((cueEditor = qobject_cast<CueEditor *>(m_ui->tabWidget->currentWidget())))
+ {
+ cueEditor->save();
+ }
}
else
{
@@ -206,6 +212,12 @@ void DetailsDialog::updatePage()
m_ui->tabWidget->addTab(coverEditor, tr("Cover"));
}
+ if(m_metaDataModel && (m_metaDataModel->dialogHints() & MetaDataModel::IsCueEditable))
+ {
+ CueEditor *cueEditor = new CueEditor(m_metaDataModel, this);
+ m_ui->tabWidget->addTab(cueEditor, "CUE");
+ }
+
if(m_metaDataModel)
{
for(TagModel *tagModel : m_metaDataModel->tags())