Commit a435f3aa authored by Dan Pascu's avatar Dan Pascu

Added support for drag and drop on the chat window

  - text will be sent as if it was copy/pasted
  - images will be sent inlined
  - other files will initiate a file transfer
parent dc3e1fef
This diff is collapsed.
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
<height>521</height> <height>521</height>
</rect> </rect>
</property> </property>
<property name="acceptDrops">
<bool>true</bool>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Chat session</string> <string>Chat session</string>
</property> </property>
...@@ -21,7 +24,7 @@ ...@@ -21,7 +24,7 @@
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<widget class="ChatWebView" name="chat_view"> <widget class="ChatWebView" name="chat_view" native="true">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
...@@ -78,13 +81,13 @@ ...@@ -78,13 +81,13 @@
<header>QtWebKit/QWebView</header> <header>QtWebKit/QWebView</header>
</customwidget> </customwidget>
<customwidget> <customwidget>
<class>ChatTextInput</class> <class>ChatWebView</class>
<extends>QTextEdit</extends> <extends>QWebView</extends>
<header>blink.chatwindow</header> <header>blink.chatwindow</header>
</customwidget> </customwidget>
<customwidget> <customwidget>
<class>ChatWebView</class> <class>ChatTextInput</class>
<extends>QWebView</extends> <extends>QTextEdit</extends>
<header>blink.chatwindow</header> <header>blink.chatwindow</header>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment