Add ChatInputArea with custom paste

This commit is contained in:
Ryan Huffman 2014-04-23 11:57:43 -07:00
parent c65d5f08ca
commit 951d5004e1
2 changed files with 12 additions and 1 deletions

View file

@ -33,6 +33,10 @@ protected:
virtual void wheelEvent(QWheelEvent* event);
bool _useFixedHeight;
void insertFromMimeData(const QMimeData* source) {
insertPlainText(source->text());
};
};
#endif // hifi_ChatMessageArea_h

View file

@ -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>