2021-09-15 08:02:08 +08:00
|
|
|
#ifndef PROJECTCOMPILERWIDGET_H
|
|
|
|
#define PROJECTCOMPILERWIDGET_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
2021-09-15 11:23:42 +08:00
|
|
|
#include "settingswidget.h"
|
2021-09-15 08:02:08 +08:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ProjectCompilerWidget;
|
|
|
|
}
|
|
|
|
|
2021-09-15 11:23:42 +08:00
|
|
|
class ProjectCompilerWidget : public SettingsWidget
|
2021-09-15 08:02:08 +08:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2021-09-15 11:23:42 +08:00
|
|
|
explicit ProjectCompilerWidget(const QString& name, const QString& group, QWidget *parent = nullptr);
|
2021-09-15 08:02:08 +08:00
|
|
|
~ProjectCompilerWidget();
|
2021-09-15 11:23:42 +08:00
|
|
|
private:
|
|
|
|
void refreshOptions();
|
2021-09-15 08:02:08 +08:00
|
|
|
private:
|
|
|
|
Ui::ProjectCompilerWidget *ui;
|
2021-09-15 11:23:42 +08:00
|
|
|
QByteArray mOptions;
|
|
|
|
|
|
|
|
// SettingsWidget interface
|
|
|
|
protected:
|
|
|
|
void doLoad() override;
|
|
|
|
void doSave() override;
|
|
|
|
|
|
|
|
// SettingsWidget interface
|
|
|
|
public:
|
|
|
|
void init() override;
|
2021-09-15 12:19:09 +08:00
|
|
|
private slots:
|
|
|
|
void on_cbCompilerSet_currentIndexChanged(int index);
|
2021-09-15 08:02:08 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PROJECTCOMPILERWIDGET_H
|