X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.h;h=e06d22df4c104771fecfdac11a071e52d170da4e;hp=c1e35157ac2aa8a53f625b3ddd7a51e95ad4c762;hb=faa66f7e00aeeea661b46f01bdfc715567eef669;hpb=138e6d461c259df8052497d7228391ce6548bd5f diff --git a/src/qtui/chatscene.h b/src/qtui/chatscene.h index c1e35157..e06d22df 100644 --- a/src/qtui/chatscene.h +++ b/src/qtui/chatscene.h @@ -180,6 +180,25 @@ private slots: #endif void showWebPreviewChanged(); + /** + * Updates the local setting cache of whether or not to show sender brackets + */ + void showSenderBracketsChanged(); + + /** + * Updates the local setting cache of the timestamp format string + */ + void timestampFormatStringChanged(); + + /** + * Updates the status of whether or not the timestamp format string contains brackets + * + * When the timestamp contains brackets -and- showSenderBrackets is disabled, we need to + * automatically add brackets. This function checks if the timestamp has brackets and stores + * the result, rather than checking each time text is copied. + */ + void updateTimestampHasBrackets(); + void rowsRemoved(); void clickTimeout(); @@ -226,6 +245,11 @@ private: bool _showWebPreview; + bool _showSenderBrackets; /// If true, show brackets around sender names + + QString _timestampFormatString; /// Format of the timestamp string + bool _timestampHasBrackets; /// If true, timestamp format has [brackets] of some sort + static const int _webSearchSelectionTextMaxVisible = 24; #if defined HAVE_WEBKIT || defined HAVE_WEBENGINE