#pragma once
#include "FractoriumPch.h"
class Fractorium;
///
/// A thin derivation of QTreeWidget which allows for processing the drop event.
///
class LibraryTreeWidget : public QTreeWidget
{
Q_OBJECT
public:
///
/// Constructor that passes p to the parent.
///
/// The parent widget
explicit LibraryTreeWidget(QWidget* p = nullptr)
: QTreeWidget(p)
{
}
void SetMainWindow(Fractorium* f);
protected:
virtual void dropEvent(QDropEvent* de) override;
Fractorium* m_Fractorium = nullptr;
};