This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2024_Stanislav_Mykhailenko/Lesson_5/Task_2/cardindex.h

39 lines
622 B
C
Raw Permalink Normal View History

2024-07-22 20:58:22 +00:00
#ifndef CARDINDEX_H
#define CARDINDEX_H
#include <QMainWindow>
#include <QListWidget>
#include <record.h>
QT_BEGIN_NAMESPACE
namespace Ui {
class CardIndex;
}
QT_END_NAMESPACE
class CardIndex : public QMainWindow
{
Q_OBJECT
public:
CardIndex(QWidget *parent = nullptr);
~CardIndex();
private slots:
void filter();
void add();
void edit();
void remove();
void select(QListWidgetItem *);
private:
Ui::CardIndex *ui;
QVector<Record *> m_records;
Record *findRecordByTitle(QString title);
void reloadRecords();
void setRecordData(Record *);
};
#endif // CARDINDEX_H