mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 02:08:23 +02:00
37 lines
821 B
C++
37 lines
821 B
C++
//
|
|
// ChatMessageArea.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_ChatMessageArea_h
|
|
#define hifi_ChatMessageArea_h
|
|
|
|
#include <QTextBrowser>
|
|
|
|
const int CHAT_MESSAGE_LINE_HEIGHT = 130;
|
|
|
|
class ChatMessageArea : public QTextBrowser {
|
|
Q_OBJECT
|
|
public:
|
|
ChatMessageArea(bool useFixedHeight = true);
|
|
virtual void setHtml(const QString& html);
|
|
|
|
public slots:
|
|
void updateLayout();
|
|
void setSize(const QSize& size);
|
|
|
|
signals:
|
|
void sizeChanged(QSize newSize);
|
|
|
|
protected:
|
|
virtual void wheelEvent(QWheelEvent* event);
|
|
bool _useFixedHeight;
|
|
};
|
|
|
|
#endif // hifi_ChatMessageArea_h
|