Move ChatInputArea code in header to .cpp

This commit is contained in:
Ryan Huffman 2014-04-24 14:54:01 -07:00
parent 0cba95e7ad
commit ccad0aed9e
2 changed files with 22 additions and 4 deletions

View file

@ -0,0 +1,19 @@
//
// ChatInputArea.cpp
// interface/src/ui
//
// Created by Ryan Huffman on 4/24/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
//
#include "ChatInputArea.h"
ChatInputArea::ChatInputArea(QWidget* parent) : QTextEdit(parent) {
};
void ChatInputArea::insertFromMimeData(const QMimeData* source) {
insertPlainText(source->text());
};

View file

@ -13,16 +13,15 @@
#define hifi_ChatInputArea_h
#include <QTextBrowser>
#include <QMimeData>
class ChatInputArea : public QTextEdit {
Q_OBJECT
public:
ChatInputArea(QWidget* parent) : QTextEdit(parent) { };
ChatInputArea(QWidget* parent);
protected:
void insertFromMimeData(const QMimeData* source) {
insertPlainText(source->text());
};
void insertFromMimeData(const QMimeData* source);
};
#endif // hifi_ChatInputArea_h