UI: Add drag and drop for URLs

Co-authored-by: Matt Gajownik <matt@wizardcm.com>
This commit is contained in:
jp9000
2020-01-13 03:09:30 -08:00
co-authored by Matt Gajownik
parent 505d321840
commit 5f830522a2
3 changed files with 77 additions and 2 deletions
+4
View File
@@ -170,6 +170,7 @@ class OBSBasic : public OBSMainWindow {
DropType_Image,
DropType_Media,
DropType_Html,
DropType_Url,
};
private:
@@ -435,6 +436,9 @@ private:
inline void OnDeactivate();
void AddDropSource(const char *file, DropType image);
void AddDropURL(const char *url, QString &name, obs_data_t *settings,
const obs_video_info &ovi);
void ConfirmDropUrl(const QString &url);
void dragEnterEvent(QDragEnterEvent *event) override;
void dragLeaveEvent(QDragLeaveEvent *event) override;
void dragMoveEvent(QDragMoveEvent *event) override;