add some comments

reformat
This commit is contained in:
Rasmus Karlsson
2018-10-07 14:18:30 +00:00
parent b720450f86
commit 7879fef3a0
4 changed files with 20 additions and 4 deletions
+14
View File
@@ -32,9 +32,17 @@ public:
static const int uiScaleMax;
void showSettingsDialog();
// Show the account selector widget at point
void showAccountSelectPopup(QPoint point);
// Tell a channel (or all channels if channel is nullptr) to redo their
// layout
void layoutChannelViews(Channel *channel = nullptr);
// Force all channel views to redo their layout
// This is called, for example, when the emote scale or timestamp format has
// changed
void forceLayoutChannelViews();
void repaintVisibleChatWidgets(Channel *channel = nullptr);
void repaintGifEmotes();
@@ -57,10 +65,16 @@ public:
void updateWordTypeMask();
pajlada::Signals::NoArgSignal repaintGifs;
// This signal fires whenever views rendering a channel, or all views if the
// channel is a nullptr, need to redo their layout
pajlada::Signals::Signal<Channel *> layout;
pajlada::Signals::NoArgSignal wordFlagsChanged;
// Sends an alert to the main window
// It reads the `longAlert` setting to decide whether the alert will expire
// or not
void sendAlert();
private: