mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 22:13:29 +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
interface
|
@ -33,6 +33,10 @@ protected:
|
|||
virtual void wheelEvent(QWheelEvent* event);
|
||||
bool _useFixedHeight;
|
||||
|
||||
void insertFromMimeData(const QMimeData* source) {
|
||||
insertPlainText(source->text());
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
#endif // hifi_ChatMessageArea_h
|
||||
|
|
|
@ -186,7 +186,7 @@ QPushButton:pressed {
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTextEdit" name="messagePlainTextEdit">
|
||||
<widget class="ChatInputArea" name="messagePlainTextEdit">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -223,6 +223,13 @@ QPushButton:pressed {
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>ChatInputArea</class>
|
||||
<extends>QTextEdit</extends>
|
||||
<header>ui/ChatInputArea.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>messagePlainTextEdit</tabstop>
|
||||
<tabstop>messagesScrollArea</tabstop>
|
||||
|
|
Loading…
Reference in a new issue