diff options
| author | David Skoland <davidskoland@gmail.com> | 2018-02-08 12:52:03 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2018-02-08 12:52:03 +0100 |
| commit | 403e5b43288dd945ca504d3b0dfeb2757227c879 (patch) | |
| tree | ce43d45da258642e241446ca3047c3486425600b | |
| parent | ebe49681756891415c26f46f41097d18850755f1 (diff) | |
tabs vs. spaces: the eternal struggle
| -rw-r--r-- | courtroom.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/courtroom.cpp b/courtroom.cpp index 1b4fd63b..74ee6e9f 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -81,7 +81,7 @@ Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow() ui_vp_wtce = new AOMovie(this, ao_app); ui_vp_objection = new AOMovie(this, ao_app); - ui_ic_chatlog = new QTextEdit(this); + ui_ic_chatlog = new QTextEdit(this); ui_ic_chatlog->setReadOnly(true); ui_ms_chatlog = new AOTextArea(this); @@ -964,7 +964,7 @@ void Courtroom::handle_chatmessage(QStringList *p_contents) ui_evidence_present->set_image("present_disabled.png"); } - append_ic_text(": " + m_chatmessage[MESSAGE], f_showname); + append_ic_text(": " + m_chatmessage[MESSAGE], f_showname); previous_ic_message = f_message; @@ -1150,18 +1150,18 @@ void Courtroom::handle_chatmessage_3() void Courtroom::append_ic_text(QString p_text, QString p_name) { - QTextCharFormat bold; - QTextCharFormat normal; - bold.setFontWeight(QFont::Bold); - normal.setFontWeight(QFont::Normal); + QTextCharFormat bold; + QTextCharFormat normal; + bold.setFontWeight(QFont::Bold); + normal.setFontWeight(QFont::Normal); const QTextCursor old_cursor = ui_ic_chatlog->textCursor(); const int old_scrollbar_value = ui_ic_chatlog->verticalScrollBar()->value(); const bool is_scrolled_up = old_scrollbar_value == ui_ic_chatlog->verticalScrollBar()->minimum(); - ui_ic_chatlog->moveCursor(QTextCursor::Start); + ui_ic_chatlog->moveCursor(QTextCursor::Start); - ui_ic_chatlog->textCursor().insertText(p_name, bold); - ui_ic_chatlog->textCursor().insertText(p_text + '\n', normal); + ui_ic_chatlog->textCursor().insertText(p_name, bold); + ui_ic_chatlog->textCursor().insertText(p_text + '\n', normal); if (old_cursor.hasSelection() || !is_scrolled_up) { @@ -1531,7 +1531,7 @@ void Courtroom::handle_song(QStringList *p_contents) if (!mute_map.value(n_char)) { - append_ic_text(" has played a song: " + f_song, str_char); + append_ic_text(" has played a song: " + f_song, str_char); music_player->play(f_song); } } |
