From 1eaf107c8069b35c45da5774a19e2a07dceb3a59 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 7 Jun 2022 06:12:11 +0300 Subject: [PATCH 38/38] Qt: Add doxygen marking for some function headers Also remove declaration of 'bold()' from citydlg.h. See osdn #44663 Signed-off-by: Marko Lindqvist --- client/gui-qt/citydlg.cpp | 6 +++--- client/gui-qt/citydlg.h | 1 - client/gui-qt/helpdlg.cpp | 14 ++++++-------- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/client/gui-qt/citydlg.cpp b/client/gui-qt/citydlg.cpp index cee0fd772d..3ac7048f7c 100644 --- a/client/gui-qt/citydlg.cpp +++ b/client/gui-qt/citydlg.cpp @@ -3830,10 +3830,10 @@ bool fc_tooltip::eventFilter(QObject *obj, QEvent *ev) return false; } -/************************************************************************** +/************************************************************************//** 'text' is assumed to have already been HTML-escaped if necessary -**************************************************************************/ -QString bold(QString text) +****************************************************************************/ +static QString bold(QString text) { return QString("" + text + ""); } diff --git a/client/gui-qt/citydlg.h b/client/gui-qt/citydlg.h index 60f9911a10..1fb40baabd 100644 --- a/client/gui-qt/citydlg.h +++ b/client/gui-qt/citydlg.h @@ -92,7 +92,6 @@ QString get_tooltip_improvement(const impr_type *building, struct city *pcity = nullptr, bool ext = false); QString get_tooltip_unit(const struct unit_type *utype, bool ext = false); -QString bold(QString text); class fc_tooltip : public QObject { diff --git a/client/gui-qt/helpdlg.cpp b/client/gui-qt/helpdlg.cpp index 29952b65c3..fe601015ff 100644 --- a/client/gui-qt/helpdlg.cpp +++ b/client/gui-qt/helpdlg.cpp @@ -185,18 +185,18 @@ void help_dialog::update_fonts() help_wdg->update_fonts(); } -/**************************************************************************** +/**********************************************************************//** Hide event -****************************************************************************/ +**************************************************************************/ void help_dialog::hideEvent(QHideEvent *event) { gui()->qt_settings.help_geometry = saveGeometry(); gui()->qt_settings.help_splitter1 = splitter->saveState(); } -/**************************************************************************** +/**********************************************************************//** Show event -****************************************************************************/ +**************************************************************************/ void help_dialog::showEvent(QShowEvent *event) { QList sizes; @@ -213,17 +213,15 @@ void help_dialog::showEvent(QShowEvent *event) } } -/**************************************************************************** +/**********************************************************************//** Close event -****************************************************************************/ +**************************************************************************/ void help_dialog::closeEvent(QCloseEvent *event) { gui()->qt_settings.help_geometry = saveGeometry(); gui()->qt_settings.help_splitter1 = splitter->saveState(); } - - /**********************************************************************//** Create the help tree. **************************************************************************/ -- 2.35.1