2021-09-14 14:05:43 +08:00
|
|
|
#ifndef PROJECTGENERALWIDGET_H
|
|
|
|
#define PROJECTGENERALWIDGET_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "settingswidget.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ProjectGeneralWidget;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ProjectGeneralWidget : public SettingsWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ProjectGeneralWidget(const QString& name, const QString& group, QWidget *parent = nullptr);
|
|
|
|
~ProjectGeneralWidget();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::ProjectGeneralWidget *ui;
|
|
|
|
QString mIconPath;
|
2021-09-15 07:53:35 +08:00
|
|
|
private:
|
|
|
|
void refreshIcon();
|
2021-09-14 14:05:43 +08:00
|
|
|
// SettingsWidget interface
|
|
|
|
protected:
|
|
|
|
void doLoad() override;
|
|
|
|
void doSave() override;
|
2021-09-14 23:56:08 +08:00
|
|
|
private slots:
|
|
|
|
void on_btnBrowse_clicked();
|
|
|
|
void on_btnRemove_clicked();
|
2021-09-15 11:23:42 +08:00
|
|
|
|
|
|
|
// SettingsWidget interface
|
|
|
|
public:
|
|
|
|
void init() override;
|
2021-12-23 09:11:58 +08:00
|
|
|
|
|
|
|
// SettingsWidget interface
|
|
|
|
protected:
|
|
|
|
void updateIcons(const QSize &size) override;
|
2021-09-14 14:05:43 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PROJECTGENERALWIDGET_H
|