File indexing completed on 2024-05-19 05:55:48
0001 /* 0002 SPDX-FileCopyrightText: 2013 Valentin Rusu <kde@rusu.info> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "revokeauthbutton.h" 0008 #include <KLocalizedString> 0009 0010 RevokeAuthButton::RevokeAuthButton(const QString &appName, KWallet::Wallet *wallet): 0011 QPushButton(), 0012 _appName(appName), 0013 _wallet(wallet) 0014 { 0015 setObjectName(QStringLiteral("Revoke_%1").arg(appName)); 0016 setText(i18n("Revoke Authorization")); 0017 connect(this, &RevokeAuthButton::clicked, this, &RevokeAuthButton::onClicked); 0018 } 0019 0020 void RevokeAuthButton::onClicked() 0021 { 0022 Q_EMIT appRevoked(_appName); 0023 } 0024 0025 #include "moc_revokeauthbutton.cpp"