Miam-Player  0.8.0
A nice music player
tageditortablewidget.h
Go to the documentation of this file.
1 #ifndef TAGEDITORTABLEWIDGET_H
2 #define TAGEDITORTABLEWIDGET_H
3 
4 #include <QFileInfo>
5 #include <QTableWidget>
6 
7 #include <cover.h>
8 #include <filehelper.h>
10 
16 class MIAMTAGEDITOR_LIBRARY TagEditorTableWidget : public QTableWidget
17 {
18  Q_OBJECT
19 private:
21  QMap<int, QString> _indexes;
22 
23 public:
24  explicit TagEditorTableWidget(QWidget *parent = nullptr);
25 
26  virtual ~TagEditorTableWidget();
27 
29  void init();
30 
31  enum DataUserRole { MODIFIED = Qt::UserRole + 1,
32  KEY = Qt::UserRole + 2 };
33 
34  void resetTable();
35 
36  void updateCellData(int row, int column, const QString &text);
37 
38  void updateColumnData(int column, const QString &text);
39 
40 public slots:
42  bool addItemsToEditor(const QStringList &tracks, QMap<int, Cover *> &covers);
43 
45  void clear();
46 };
47 
48 #endif // TAGEDITORTABLEWIDGET_H
#define MIAMTAGEDITOR_LIBRARY
Definition: miamtageditor_global.hpp:8
The TagEditorTableWidget class is a table where one can select lines in order to edit multiple tags...
Definition: tageditortablewidget.h:16
DataUserRole
Definition: tageditortablewidget.h:31