aboutsummaryrefslogtreecommitdiff
path: root/src/aotextboxwidgets.cpp
diff options
context:
space:
mode:
authorOsmium Sorcerer <os@sof.beauty>2026-03-22 17:44:46 +0000
committerOsmium Sorcerer <os@sof.beauty>2026-03-29 22:22:25 +0000
commitd4e99dcee4f48bcb34e6f6a38d5bae4fa380c841 (patch)
treea5174bfb5aa98e3075625a20f8b8e5c4ccf37b86 /src/aotextboxwidgets.cpp
parent7cc36dc9ccad26dad216217f0527c1fe5c1072eb (diff)
Fix warnings and deprecated functions
- For QCheckBox: stateChanged -> checkStateChanged - QChar(PREANIM) -> QLatin1Char(PREANIM) - Unused result on demo_file.open() - QPointer include was missing from lobby.h - Missing const and override qualifiers
Diffstat (limited to 'src/aotextboxwidgets.cpp')
-rw-r--r--src/aotextboxwidgets.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/aotextboxwidgets.cpp b/src/aotextboxwidgets.cpp
index fd770e5..ea6c537 100644
--- a/src/aotextboxwidgets.cpp
+++ b/src/aotextboxwidgets.cpp
@@ -15,7 +15,7 @@ void AOChatboxLabel::setIsOutlined(bool outlined)
m_outline = outlined;
}
-bool AOChatboxLabel::pointMode()
+bool AOChatboxLabel::pointMode() const
{
return m_pointmode;
}
@@ -25,7 +25,7 @@ void AOChatboxLabel::setPointMode(bool mode)
m_pointmode = mode;
}
-double AOChatboxLabel::outlineThickness()
+double AOChatboxLabel::outlineThickness() const
{
if (pointMode())
{
@@ -49,12 +49,12 @@ void AOChatboxLabel::setPen(QPen pen)
m_pen = pen;
}
-QSize AOChatboxLabel::sizeHint()
+QSize AOChatboxLabel::sizeHint() const
{
int nrml_w = std::ceil(outlineThickness() * 2);
return QLabel::sizeHint() + QSize(nrml_w, nrml_w);
}
-QSize AOChatboxLabel::minimumSizeHint()
+QSize AOChatboxLabel::minimumSizeHint() const
{
int nrml_w = std::ceil(outlineThickness() * 2);
return QLabel::minimumSizeHint() + QSize(nrml_w, nrml_w);