#include <QModelIndex>
#include <QInputDialog>
#include <QDesktopServices>
#include <QUrl>
#include "widget/wwidget.h"
#include "widget/wskincolor.h"
#include "widget/wtracktableviewheader.h"
#include "library/librarytablemodel.h"
#include "library/trackcollection.h"
#include "trackinfoobject.h"
#include "controlobject.h"
#include "controlobjectthreadmain.h"
#include "widget/wtracktableview.h"
#include "dlgtrackinfo.h"
#include "soundsourceproxy.h"
#include "playermanager.h"
WTrackTableView::WTrackTableView(QWidget * parent,
ConfigObject<ConfigValue> * pConfig,
TrackCollection* pTrackCollection, bool sorting)
: WLibraryTableView(parent, pConfig,
ConfigKey(LIBRARY_CONFIGVALUE,
WTRACKTABLEVIEW_VSCROLLBARPOS_KEY)),
m_pConfig(pConfig),
m_pTrackCollection(pTrackCollection),
m_DlgTagFetcher(NULL) ,
m_sorting(sorting) {
// Give a NULL parent because otherwise it inherits our style which can make
// it unreadable. Bug #673411
m_pTrackInfo = new DlgTrackInfo(NULL,m_DlgTagFetcher);
connect(