mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
Add ChatInputArea
This commit is contained in:
parent
95357a7c35
commit
d56a4e169e
1 changed files with 28 additions and 0 deletions
28
interface/src/ui/ChatInputArea.h
Normal file
28
interface/src/ui/ChatInputArea.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
//
|
||||
// ChatInputArea.h
|
||||
// interface/src/ui
|
||||
//
|
||||
// Created by Ryan Huffman on 4/11/14.
|
||||
// Copyright 2014 High Fidelity, Inc.
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
#ifndef hifi_ChatInputArea_h
|
||||
#define hifi_ChatInputArea_h
|
||||
|
||||
#include <QTextBrowser>
|
||||
|
||||
class ChatInputArea : public QTextEdit {
|
||||
Q_OBJECT
|
||||
public:
|
||||
ChatInputArea(QWidget* parent) : QTextEdit(parent) { };
|
||||
|
||||
protected:
|
||||
void insertFromMimeData(const QMimeData* source) {
|
||||
insertPlainText(source->text());
|
||||
};
|
||||
};
|
||||
|
||||
#endif // hifi_ChatInputArea_h
|
Loading…
Reference in a new issue