
* showname text outline, partial messagebox outline code * your honor i plead oopsie daisies * Focus down code, add config hookups * remove extraneous qDebug calls
33 lines
756 B
C++
33 lines
756 B
C++
#ifndef AOTEXTBOXWIDGETS_H
|
|
#define AOTEXTBOXWIDGETS_H
|
|
|
|
#include <QAbstractTextDocumentLayout>
|
|
#include <QDebug>
|
|
#include <QLabel>
|
|
#include <QPaintEvent>
|
|
#include <QPainter>
|
|
#include <QPainterPath>
|
|
#include <QTextEdit>
|
|
|
|
class AOChatboxLabel : public QLabel {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AOChatboxLabel(QWidget *parent);
|
|
void paintEvent(QPaintEvent *event);
|
|
|
|
void setOutlineColor(QColor color) { outline_color = color; };
|
|
void setOutlineWidth(int width) { outline_width = width; };
|
|
void setTextColor(QColor color) { text_color = color; };
|
|
void setIsOutlined(bool outlined) { is_outlined = outlined; };
|
|
|
|
protected:
|
|
private:
|
|
QColor outline_color;
|
|
QColor text_color;
|
|
int outline_width = 1;
|
|
bool is_outlined = false;
|
|
};
|
|
|
|
#endif // AOTEXTBOXWIDGETS_H
|