summaryrefslogtreecommitdiff
path: root/src/libaudqt/info-widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libaudqt/info-widget.h')
-rw-r--r--src/libaudqt/info-widget.h30
1 files changed, 5 insertions, 25 deletions
diff --git a/src/libaudqt/info-widget.h b/src/libaudqt/info-widget.h
index edc43d1..86e3925 100644
--- a/src/libaudqt/info-widget.h
+++ b/src/libaudqt/info-widget.h
@@ -18,37 +18,17 @@
* the use of this software.
*/
-#include <QAbstractTableModel>
#include <QTreeView>
-
-#include <libaudcore/tuple.h>
+#include <libaudqt/export.h>
class PluginHandle;
+class Tuple;
namespace audqt {
-class InfoModel : public QAbstractTableModel
-{
-public:
- InfoModel (QObject * parent = nullptr);
-
- int rowCount (const QModelIndex & parent = QModelIndex ()) const;
- int columnCount (const QModelIndex & parent = QModelIndex ()) const;
- QVariant data (const QModelIndex & index, int role = Qt::DisplayRole) const;
- bool setData (const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
- Qt::ItemFlags flags (const QModelIndex & index) const;
-
- void setTupleData (const Tuple & tuple, String filename, PluginHandle * plugin);
- bool updateFile () const;
-
-private:
- Tuple m_tuple;
- String m_filename;
- PluginHandle * m_plugin = nullptr;
- bool m_dirty = false;
-};
+class InfoModel;
-class InfoWidget : public QTreeView
+class LIBAUDQT_PUBLIC InfoWidget : public QTreeView
{
public:
InfoWidget (QWidget * parent = nullptr);
@@ -59,7 +39,7 @@ public:
bool updateFile ();
private:
- InfoModel m_model;
+ InfoModel * m_model;
};
} // namespace audqt