chat:
+ added timestamps (can also be css styled and disabled)
+ allow exchanging stylesheet by just dragging a *.css file into the chat widget!
+ /saveStyleSheet command for keeping the applied stylesheet for future runs
+ /discardStyleSheet to reset to the saved/default stylesheet
Note: I noticed command auto-completion is broken, don't know since when. annoying.
#include <QLabel>
#include <QRect>
#include <QList>
#include <QMouseEvent>
class PixLabel : public QLabel
{
Q_OBJECT
public:
PixLabel();
QList<QRect> rects;
public slots:
void AddRect();
private:
void paintEvent(QPaintEvent * event);
void mousePressEvent(QMouseEvent * e);
};