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_1/autoservice.h

34 lines
602 B
C
Raw Normal View History

2024-07-20 11:48:29 +00:00
#ifndef AUTOSERVICE_H
#define AUTOSERVICE_H
#include <QMainWindow>
#include "childautomobile.h"
#include <QListWidget>
2024-07-22 11:42:11 +00:00
#include <QRandomGenerator>
2024-07-20 11:48:29 +00:00
QT_BEGIN_NAMESPACE
namespace Ui {
class AutoService;
}
QT_END_NAMESPACE
class AutoService : public QMainWindow
{
Q_OBJECT
public:
AutoService(QWidget *parent = nullptr);
~AutoService();
private slots:
void filter();
private:
Ui::AutoService *ui;
QVector<ChildAutomobile *> m_automobiles;
void addAutomobile(ChildAutomobile*);
2024-07-22 11:42:11 +00:00
void generateAutomobiles();
2024-07-20 11:48:29 +00:00
void select(QListWidgetItem *);
};
#endif // AUTOSERVICE_H