X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.h;h=e06d22df4c104771fecfdac11a071e52d170da4e;hb=f323363cfe7d1545928e60f609d5a2926907f579;hp=68ef20f726bebe6eb1af36c489379fbd338cb9bb;hpb=b82e9603ab7ce1164e8f550132f0c649653ad8ab;p=quassel.git diff --git a/src/qtui/chatscene.h b/src/qtui/chatscene.h index 68ef20f7..e06d22df 100644 --- a/src/qtui/chatscene.h +++ b/src/qtui/chatscene.h @@ -185,6 +185,20 @@ private slots: */ 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(); @@ -233,6 +247,9 @@ private: 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