diff options
| author | Crystalwarrior <Varsash@Gmail.com> | 2022-03-20 01:21:24 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-19 17:21:24 -0500 |
| commit | 35fcbdeea8a8297f69e2bb7e92526f88233c7b4f (patch) | |
| tree | 17adfe5ea6d2c08a1aa8ad121912d4fb3238c8ab /include/chatlogpiece.h | |
| parent | aa2a29f091764d8485d5bc644865d47c01f5fe91 (diff) | |
Add showname and selfname colors to courtroom_fonts.ini (#672)
Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'include/chatlogpiece.h')
| -rw-r--r-- | include/chatlogpiece.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/include/chatlogpiece.h b/include/chatlogpiece.h index da78d0da..df6ccd0e 100644 --- a/include/chatlogpiece.h +++ b/include/chatlogpiece.h @@ -10,17 +10,18 @@ class chatlogpiece { public: chatlogpiece(); chatlogpiece(QString p_name, QString p_showname, QString p_message, - QString p_action,int color); + QString p_action,int color, bool selfname); chatlogpiece(QString p_name, QString p_showname, QString p_message, - QString p_action, int color, QDateTime p_datetime); + QString p_action, int color, bool selfname, QDateTime p_datetime); - QString get_name(); - QString get_showname(); - QString get_message(); - QString get_action(); - QDateTime get_datetime(); - QString get_datetime_as_string(); - int get_chat_color(); + QString get_name() { return name; }; + QString get_showname() { return showname; }; + QString get_message() { return message; }; + QString get_action() { return action; }; + bool get_selfname() const { return selfname; }; + QDateTime get_datetime() { return datetime; }; + QString get_datetime_as_string() { return datetime.toString(); }; + int get_chat_color() const { return color; }; QString get_full(); private: @@ -28,6 +29,7 @@ private: QString showname; QString message; QString action; + bool selfname; QDateTime datetime; int color; }; |
