File indexing completed on 2025-01-05 05:14:39

0001 /*
0002 SPDX-FileCopyrightText: 2021 Hamed Masafi <hamed.masfi@gmail.com>
0003 
0004 SPDX-License-Identifier: GPL-3.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QListView>
0010 
0011 class ListView : public QListView
0012 {
0013     Q_OBJECT
0014 
0015 public:
0016     explicit ListView(QWidget *parent = nullptr);
0017 
0018 protected Q_SLOTS:
0019     void currentChanged(const QModelIndex &current, const QModelIndex &previous) override;
0020 
0021 Q_SIGNALS:
0022     void itemActivated(const QModelIndex &index);
0023 };