diff options
| author | Serg Podtynnyi <[email protected]> | 2023-02-04 00:14:53 +0700 |
|---|---|---|
| committer | Serg Podtynnyi <[email protected]> | 2023-02-05 12:45:38 +0700 |
| commit | 38c34eeca315c7be58e65d4d3fb72aaf7b866719 (patch) | |
| tree | 886e53f20c9c43edc3eb7fe04789716a9bc98ebe /src/selectionmode/actiontexthelper.h | |
| parent | ffff8af851e3a386c44438337779d0ce7ca98a61 (diff) | |
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/selectionmode/actiontexthelper.h')
| -rw-r--r-- | src/selectionmode/actiontexthelper.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/selectionmode/actiontexthelper.h b/src/selectionmode/actiontexthelper.h index 1b8840375..6ca99990f 100644 --- a/src/selectionmode/actiontexthelper.h +++ b/src/selectionmode/actiontexthelper.h @@ -42,10 +42,7 @@ public: void textsWhenNothingIsSelectedEnabled(bool enabled); private: - enum TextState { - TextWhenNothingIsSelected, - TextWhenSomethingIsSelected - }; + enum TextState { TextWhenNothingIsSelected, TextWhenSomethingIsSelected }; /** * Utility struct to allow switching back and forth between registered actions showing their @@ -53,16 +50,15 @@ private: * An example is "Copy" or "Copy…". The latter one is used when nothing is selected and signifies * that it will trigger SelectionMode so items can be selected and then copied. */ - struct RegisteredActionTextChange { + struct RegisteredActionTextChange { QPointer<QAction> action; QString registeredText; TextState textStateOfRegisteredText; - RegisteredActionTextChange(QAction *action, QString registeredText, TextState state) : - action{action}, - registeredText{registeredText}, - textStateOfRegisteredText{state} - { }; + RegisteredActionTextChange(QAction *action, QString registeredText, TextState state) + : action{action} + , registeredText{registeredText} + , textStateOfRegisteredText{state} {}; }; /** |
