implement drag-n-drop for files

This commit is contained in:
Axel Kohlmeyer
2023-07-28 05:04:19 -04:00
parent 7a9694b849
commit c1d690d190
6 changed files with 41 additions and 8 deletions

View File

@ -25,7 +25,11 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="CodeEditor" name="textEdit" native="true"/>
<widget class="CodeEditor" name="textEdit" native="true">
<property name="acceptDrops">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
@ -303,7 +307,7 @@
<customwidgets>
<customwidget>
<class>CodeEditor</class>
<extends>QWidget</extends>
<extends>QPlainTextEdit</extends>
<header>codeeditor.h</header>
</customwidget>
</customwidgets>