@@ -99,19 +99,19 @@ class AuthFlow
9999 [[nodiscard]] const QString& cookie () const ;
100100 [[nodiscard]] const QList<Identity*>& identities () const ;
101101
102- [[nodiscard]] QBindable<Identity*> selectedIdentity ();
102+ [[nodiscard]] QBindable<Identity*> selectedIdentity () { return & this -> bSelectedIdentity ; } ;
103103 void setSelectedIdentity (Identity* identity);
104104
105- [[nodiscard]] QBindable<bool > isResponseRequired ();
106- [[nodiscard]] QBindable<QString> inputPrompt ();
107- [[nodiscard]] QBindable<bool > responseVisible ();
105+ [[nodiscard]] QBindable<bool > isResponseRequired () { return & this -> bIsResponseRequired ; } ;
106+ [[nodiscard]] QBindable<QString> inputPrompt () { return & this -> bInputPrompt ; } ;
107+ [[nodiscard]] QBindable<bool > responseVisible () { return & this -> bResponseVisible ; } ;
108108
109- [[nodiscard]] QBindable<QString> supplementaryMessage ();
110- [[nodiscard]] QBindable<bool > supplementaryIsError ();
109+ [[nodiscard]] QBindable<QString> supplementaryMessage () { return & this -> bSupplementaryMessage ; } ;
110+ [[nodiscard]] QBindable<bool > supplementaryIsError () { return & this -> bSupplementaryIsError ; } ;
111111
112- [[nodiscard]] QBindable<bool > isCompleted ();
113- [[nodiscard]] QBindable<bool > isSuccessful ();
114- [[nodiscard]] QBindable<bool > isCancelled ();
112+ [[nodiscard]] QBindable<bool > isCompleted () { return & this -> bIsCompleted ; } ;
113+ [[nodiscard]] QBindable<bool > isSuccessful () { return & this -> bIsSuccessful ; } ;
114+ [[nodiscard]] QBindable<bool > isCancelled () { return & this -> bIsCancelled ; } ;
115115
116116 [[nodiscard]] AuthRequest* authRequest () const ;
117117
@@ -160,34 +160,16 @@ private slots:
160160 AuthRequest* mRequest = nullptr ;
161161 QList<Identity*> mIdentities ;
162162
163- Q_OBJECT_BINDABLE_PROPERTY (
164- AuthFlow,
165- Identity*,
166- bSelectedIdentity,
167- &AuthFlow::selectedIdentityChanged
168- );
169- Q_OBJECT_BINDABLE_PROPERTY (
170- AuthFlow,
171- bool ,
172- bIsResponseRequired,
173- &AuthFlow::isResponseRequiredChanged
174- );
163+ // clang-format off
164+ Q_OBJECT_BINDABLE_PROPERTY (AuthFlow, Identity*, bSelectedIdentity, &AuthFlow::selectedIdentityChanged);
165+ Q_OBJECT_BINDABLE_PROPERTY (AuthFlow, bool , bIsResponseRequired, &AuthFlow::isResponseRequiredChanged);
175166 Q_OBJECT_BINDABLE_PROPERTY (AuthFlow, QString, bInputPrompt, &AuthFlow::inputPromptChanged);
176167 Q_OBJECT_BINDABLE_PROPERTY (AuthFlow, bool , bResponseVisible, &AuthFlow::responseVisibleChanged);
177- Q_OBJECT_BINDABLE_PROPERTY (
178- AuthFlow,
179- QString,
180- bSupplementaryMessage,
181- &AuthFlow::supplementaryMessageChanged
182- );
183- Q_OBJECT_BINDABLE_PROPERTY (
184- AuthFlow,
185- bool ,
186- bSupplementaryIsError,
187- &AuthFlow::supplementaryIsErrorChanged
188- );
168+ Q_OBJECT_BINDABLE_PROPERTY (AuthFlow, QString, bSupplementaryMessage, &AuthFlow::supplementaryMessageChanged);
169+ Q_OBJECT_BINDABLE_PROPERTY (AuthFlow, bool , bSupplementaryIsError, &AuthFlow::supplementaryIsErrorChanged);
189170 Q_OBJECT_BINDABLE_PROPERTY (AuthFlow, bool , bIsCompleted, &AuthFlow::isCompletedChanged);
190171 Q_OBJECT_BINDABLE_PROPERTY (AuthFlow, bool , bIsSuccessful, &AuthFlow::isSuccessfulChanged);
191172 Q_OBJECT_BINDABLE_PROPERTY (AuthFlow, bool , bIsCancelled, &AuthFlow::isCancelledChanged);
173+ // clang-format on
192174};
193175} // namespace qs::service::polkit
0 commit comments