File indexing completed on 2024-05-19 05:55:46
0001 /* 0002 SPDX-FileCopyrightText: 2013 Valentin Rusu <kde@rusu.info> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef AUTHORIZEDAPPLICATIONSTABLE_H 0008 #define AUTHORIZEDAPPLICATIONSTABLE_H 0009 0010 #include <QTableView> 0011 0012 namespace KWallet 0013 { 0014 class Wallet; 0015 } 0016 0017 class AuthorizedApplicationsTable : public QTableView 0018 { 0019 Q_OBJECT 0020 public: 0021 explicit AuthorizedApplicationsTable(QWidget *parent); 0022 0023 void setModel(QAbstractItemModel *model) override; 0024 void setWallet(KWallet::Wallet *wallet); 0025 0026 protected: 0027 void resizeEvent(QResizeEvent *resizeEvent) override; 0028 0029 private: 0030 KWallet::Wallet *_wallet = nullptr; 0031 }; 0032 0033 #endif // AUTHORIZEDAPPLICATIONSTABLE_H