2015-01-04 11:24:51 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QListWidget>
|
|
|
|
|
|
|
|
class QMouseEvent;
|
|
|
|
|
|
|
|
class SourceListWidget : public QListWidget {
|
|
|
|
Q_OBJECT
|
2015-06-26 18:54:20 -07:00
|
|
|
|
|
|
|
bool ignoreReorder = false;
|
2015-01-04 11:24:51 -08:00
|
|
|
public:
|
|
|
|
inline SourceListWidget(QWidget *parent = nullptr)
|
|
|
|
: QListWidget(parent)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-06-26 18:54:20 -07:00
|
|
|
bool IgnoreReorder() const { return ignoreReorder; }
|
|
|
|
|
2015-01-04 11:24:51 -08:00
|
|
|
protected:
|
|
|
|
virtual void mouseDoubleClickEvent(QMouseEvent *event) override;
|
2015-06-26 18:54:20 -07:00
|
|
|
virtual void dropEvent(QDropEvent *event) override;
|
2015-01-04 11:24:51 -08:00
|
|
|
};
|