diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2022-06-03 22:27:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-03 22:27:30 -0500 |
| commit | e4125d3f52ba5ebd171f4f746f8c4868d30316d9 (patch) | |
| tree | 93d4f8088ba216162b82cfb4c76b7793360f3ad9 | |
| parent | d4e395627131befea60d19a35373582894eb17d3 (diff) | |
| parent | 7d687955d4190ef7361e42e51187f6307bb6543e (diff) | |
Merge pull request #770 from AttorneyOnline/fix-stickers
Fix stickers being layered under the chatbox rather than above
| -rw-r--r-- | src/courtroom.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index ee977150..db6b81b4 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -70,6 +70,13 @@ Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow() ui_vp_chatbox = new AOImage(this, ao_app); ui_vp_chatbox->setObjectName("ui_vp_chatbox"); + + ui_vp_sticker = new StickerLayer(this, ao_app); + ui_vp_sticker->set_play_once(false); + ui_vp_sticker->set_cull_image(false); + ui_vp_sticker->setAttribute(Qt::WA_TransparentForMouseEvents); + ui_vp_sticker->setObjectName("ui_vp_sticker"); + ui_vp_showname = new QLabel(ui_vp_chatbox); ui_vp_showname->setObjectName("ui_vp_showname"); ui_vp_showname->setAlignment(Qt::AlignLeft); @@ -179,11 +186,6 @@ Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow() ui_ic_chat_message->installEventFilter(ui_ic_chat_message_filter); ui_ic_chat_message->setObjectName("ui_ic_chat_message"); - ui_vp_sticker = new StickerLayer(ui_viewport, ao_app); - ui_vp_sticker->set_play_once(false); - ui_vp_sticker->setAttribute(Qt::WA_TransparentForMouseEvents); - ui_vp_sticker->setObjectName("ui_vp_sticker"); - ui_muted = new AOImage(ui_ic_chat_message, ao_app); ui_muted->hide(); ui_muted->setObjectName("ui_muted"); @@ -831,7 +833,7 @@ void Courtroom::set_widgets() ui_vp_message->y() + ui_vp_chatbox->y()); ui_vp_message->setTextInteractionFlags(Qt::NoTextInteraction); - ui_vp_sticker->move(0, 0); + ui_vp_sticker->move(ui_viewport->x(), ui_viewport->y()); ui_vp_sticker->combo_resize(ui_viewport->width(), ui_viewport->height()); |
