From 7586a65427862831590a963b5f8f9d2712271ca0 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 10 Sep 2009 12:04:51 +0000 Subject: added new details dialog, disabled input plugins due api changes git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1194 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistmodel.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src/qmmpui/playlistmodel.cpp') diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index ddaa2ce23..893850e51 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -41,6 +41,7 @@ #include "playlistmodel.h" #include "playlistitem.h" #include "playstate.h" +#include "detailsdialog.h" #include "playlistsettings.h" #include @@ -380,18 +381,11 @@ void PlayListModel::showDetails() QMessageBox::information(0, m_items.at(i)->url(), str); return; } - - DecoderFactory *fact = Decoder::findByPath(m_items.at(i)->url()); - if (fact) - { - QObject* o = fact->showDetails(0, m_items.at(i)->url()); - if (o) - { - TagUpdater *updater = new TagUpdater(o,m_items.at(i)); - m_editing_items.append(m_items.at(i)); - connect(updater, SIGNAL(destroyed(QObject *)),SIGNAL(listChanged())); - } - } + QDialog *d = new DetailsDialog(m_items.at(i)); //TODO set parent widget + TagUpdater *updater = new TagUpdater(d, m_items.at(i)); + m_editing_items.append(m_items.at(i)); + connect(updater, SIGNAL(destroyed(QObject *)),SIGNAL(listChanged())); + d->show(); return; } } -- cgit v1.2.3-13-gbd6f