mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 12:42:58 +02:00
Add ChatInputArea with custom paste
This commit is contained in:
parent
c65d5f08ca
commit
951d5004e1
2 changed files with 12 additions and 1 deletions
|
@ -33,6 +33,10 @@ protected:
|
||||||
virtual void wheelEvent(QWheelEvent* event);
|
virtual void wheelEvent(QWheelEvent* event);
|
||||||
bool _useFixedHeight;
|
bool _useFixedHeight;
|
||||||
|
|
||||||
|
void insertFromMimeData(const QMimeData* source) {
|
||||||
|
insertPlainText(source->text());
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // hifi_ChatMessageArea_h
|
#endif // hifi_ChatMessageArea_h
|
||||||
|
|
|
@ -186,7 +186,7 @@ QPushButton:pressed {
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTextEdit" name="messagePlainTextEdit">
|
<widget class="ChatInputArea" name="messagePlainTextEdit">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -223,6 +223,13 @@ QPushButton:pressed {
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>ChatInputArea</class>
|
||||||
|
<extends>QTextEdit</extends>
|
||||||
|
<header>ui/ChatInputArea.h</header>
|
||||||
|
</customwidget>
|
||||||
|
</customwidgets>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>messagePlainTextEdit</tabstop>
|
<tabstop>messagePlainTextEdit</tabstop>
|
||||||
<tabstop>messagesScrollArea</tabstop>
|
<tabstop>messagesScrollArea</tabstop>
|
||||||
|
|
Loading…
Reference in a new issue