┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/selectionmode/actiontexthelper.h
diff options
context:
space:
mode:
authorSerg Podtynnyi <[email protected]>2023-02-04 00:14:53 +0700
committerSerg Podtynnyi <[email protected]>2023-02-05 12:45:38 +0700
commit38c34eeca315c7be58e65d4d3fb72aaf7b866719 (patch)
tree886e53f20c9c43edc3eb7fe04789716a9bc98ebe /src/selectionmode/actiontexthelper.h
parentffff8af851e3a386c44438337779d0ce7ca98a61 (diff)
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/selectionmode/actiontexthelper.h')
-rw-r--r--src/selectionmode/actiontexthelper.h16
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} {};
};
/**