Skip to content

bad SvgButton documentation #6508

@jacob-thompson

Description

@jacob-thompson

Checklist

  • I'm reporting a problem with Chatterino
  • I've verified that I'm running the most recent nightly build or stable release
  • I've looked for my problem on the wiki
  • I've searched the issues and pull requests for similar looking reports

Describe your issue

/// To set the size, use #setInnerHeight(). The width is adjusted according
/// to the aspect ratio of the SVG. If the button should scale with the UI,
/// turn on auto-scaling (@see #setAutoScale()), which will scale the button

these methods don't exist

diff --git a/src/widgets/splits/SplitHeader.cpp b/src/widgets/splits/SplitHeader.cpp
index cabe695d..ee2a8c8e 100644
--- a/src/widgets/splits/SplitHeader.cpp
+++ b/src/widgets/splits/SplitHeader.cpp
@@ -294,6 +294,8 @@ void SplitHeader::initializeLayout()
             .light = ":/buttons/moderationDisabled-lightMode.svg",
         },
         this, {5, 5});
+    moderationButton_->setInnerHeight(20);
+    moderationButton_->setAutoScale();
 
     this->chattersButton_ = new SvgButton(
         {
/Users/jacob-thompson/Documents/chatterino2/src/widgets/splits/SplitHeader.cpp:297:24: error: no member named 'setInnerHeight' in 'chatterino::SvgButton'
  297 |     moderationButton_->setInnerHeight(20);
      |     ~~~~~~~~~~~~~~~~~  ^
/Users/jacob-thompson/Documents/chatterino2/src/widgets/splits/SplitHeader.cpp:298:24: error: no member named 'setAutoScale' in 'chatterino::SvgButton'
  298 |     moderationButton_->setAutoScale();
      |     ~~~~~~~~~~~~~~~~~  ^
2 errors generated.
make[2]: *** [src/CMakeFiles/chatterino-lib.dir/widgets/splits/SplitHeader.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/chatterino-lib.dir/all] Error 2
make: *** [all] Error 2

QWidget members

OS and Chatterino Version

Chatterino 2.5.4 DEBUG (commit f6a820cf modified) built with Qt 6.9.2
Running on macOS Tahoe (26.0), kernel: 25.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue-reportAn issue reported by a user.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions