refactor: buttons and friends (#6102)

This commit is contained in:
nerix
2025-05-25 11:17:06 +02:00
committed by GitHub
parent deed1061b5
commit 84c0b39fde
49 changed files with 1083 additions and 691 deletions
+7 -8
View File
@@ -16,8 +16,8 @@
namespace chatterino {
class Button;
class EffectLabel;
class PixmapButton;
class LabelButton;
class Label;
class Split;
@@ -54,7 +54,6 @@ protected:
private:
void initializeLayout();
void initializeModeSignals(EffectLabel &label);
std::unique_ptr<QMenu> createMainMenu();
std::unique_ptr<QMenu> createChatModeMenu();
@@ -76,19 +75,19 @@ private:
std::chrono::steady_clock::time_point lastReloadedSubEmotes_;
// ui
Button *dropdownButton_{};
PixmapButton *dropdownButton_{};
Label *titleLabel_{};
EffectLabel *modeButton_{};
LabelButton *modeButton_{};
QAction *modeActionSetEmote{};
QAction *modeActionSetSub{};
QAction *modeActionSetSlow{};
QAction *modeActionSetR9k{};
QAction *modeActionSetFollowers{};
Button *moderationButton_{};
Button *chattersButton_{};
Button *addButton_{};
PixmapButton *moderationButton_{};
PixmapButton *chattersButton_{};
PixmapButton *addButton_{};
// states
QPoint dragStart_{};