yolobs-studio/obs/source-list-widget.hpp

23 lines
423 B
C++
Raw Normal View History

2016-02-23 23:16:51 +00:00
#pragma once
#include <QListWidget>
class QMouseEvent;
class SourceListWidget : public QListWidget {
Q_OBJECT
bool ignoreReorder = false;
public:
inline SourceListWidget(QWidget *parent = nullptr)
: QListWidget(parent)
{
}
bool IgnoreReorder() const { return ignoreReorder; }
protected:
virtual void mouseDoubleClickEvent(QMouseEvent *event) override;
virtual void dropEvent(QDropEvent *event) override;
};