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>
9 
15 class TagEditorTableWidget : public QTableWidget
16 {
17  Q_OBJECT
18 private:
20  QMap<int, QString> _indexes;
21 
22 public:
23  TagEditorTableWidget(QWidget *parent = nullptr);
24 
26  void init();
27 
28  enum DataUserRole { MODIFIED = Qt::UserRole + 1,
29  KEY = Qt::UserRole + 2 };
30 
31  void resetTable();
32 
33  void updateCellData(int row, int column, const QString &text);
34 
35  void updateColumnData(int column, const QString &text);
36 
37 public slots:
39  bool addItemsToEditor(const QStringList &tracks, QMap<int, Cover *> &covers);
40 
42  void clear();
43 };
44 
45 #endif // TAGEDITORTABLEWIDGET_H
void clear()
Definition: tageditortablewidget.cpp:190
void updateColumnData(int column, const QString &text)
Definition: tageditortablewidget.cpp:116
bool addItemsToEditor(const QStringList &tracks, QMap< int, Cover *> &covers)
Definition: tageditortablewidget.cpp:129
The TagEditorTableWidget class is a table where one can select lines in order to edit multiple tags...
Definition: tageditortablewidget.h:15
DataUserRole
Definition: tageditortablewidget.h:28
void init()
Definition: tageditortablewidget.cpp:39
Definition: tageditortablewidget.h:28
void resetTable()
Definition: tageditortablewidget.cpp:53
void updateCellData(int row, int column, const QString &text)
Definition: tageditortablewidget.cpp:106
Definition: tageditortablewidget.h:29
TagEditorTableWidget(QWidget *parent=nullptr)
Definition: tageditortablewidget.cpp:15