Skip to content

refactor: move Notebook enums to their own file - #6220

Merged
pajlada merged 2 commits into
masterfrom
refactor/notebook-enums-separate-file
May 18, 2025
Merged

pajlada merged 2 commits into
masterfrom
refactor/notebook-enums-separate-file

Conversation

@pajlada

@pajlada pajlada commented May 18, 2025 •

Copy link
Copy Markdown
Member

All of Notebook.hpp was included in Settings.hpp. That also included a ton of Qt Gui stuff through BaseWidget.

From #6162

Mm2PL and others added 2 commits May 18, 2025 13:53
All of Notebook.hpp was included in Settings.hpp. That also included a
ton of Qt Gui stuff through BaseWidget.
@pajlada
pajlada merged commit 062b492 into master May 18, 2025
@pajlada
pajlada deleted the refactor/notebook-enums-separate-file branch May 18, 2025 12:02

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions


namespace chatterino {

enum NotebookTabLocation { Top = 0, Left = 1, Right = 2, Bottom = 3 };

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: enum 'NotebookTabLocation' uses a larger base type ('unsigned int', size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the base type to reduce its size [performance-enum-size]

enum NotebookTabLocation { Top = 0, Left = 1, Right = 2, Bottom = 3 };
     ^

enum NotebookTabLocation { Top = 0, Left = 1, Right = 2, Bottom = 3 };

// Controls the visibility of tabs in this notebook
enum NotebookTabVisibility : int {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: enum 'NotebookTabVisibility' uses a larger base type ('int', size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the base type to reduce its size [performance-enum-size]

enum NotebookTabVisibility : int {
     ^

babicekmarek pushed a commit to babicekmarek/streamally-chatterino that referenced this pull request Sep 14, 2026
Co-authored-by: Mm2PL <miau@mail.kotmisia.pl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants