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/childautomobile.h

30 lines
661 B
C
Raw Permalink Normal View History

2024-07-20 11:48:29 +00:00
#ifndef CHILDAUTOMOBILE_H
#define CHILDAUTOMOBILE_H
#include <QObject>
#include <QColor>
#include <automobile.h>
class ChildAutomobile : public Automobile
{
Q_OBJECT
public:
explicit ChildAutomobile(QObject *parent = nullptr);
QString getModel() { return m_model; }
void setModel(QString model) { m_model = model; }
int getSeats() { return m_seats; }
void setSeats(int seats) { m_seats = seats; }
QColor getColor() { return m_color; }
void setColor(QColor color) { m_color = color; }
void setModel(const char *);
signals:
private:
QString m_model;
int m_seats;
QColor m_color;
};
#endif // CHILDAUTOMOBILE_H