2019-12-08 13:57:20 +03:00
|
|
|
//#
|
2021-01-05 13:17:11 +03:00
|
|
|
//# Copyright (C) 2018-2021 QuasarApp.
|
2019-12-08 13:57:20 +03:00
|
|
|
//# Distributed under the lgplv3 software license, see the accompanying
|
|
|
|
//# Everyone is permitted to copy and distribute verbatim copies
|
|
|
|
//# of this license document, but changing it is not allowed.
|
|
|
|
//#
|
|
|
|
|
|
|
|
#include "targetinfo.h"
|
|
|
|
|
|
|
|
TargetInfo::TargetInfo() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-02-26 16:51:28 +03:00
|
|
|
QString TargetInfo::getPackage() const {
|
|
|
|
return package;
|
2019-12-08 13:57:20 +03:00
|
|
|
}
|
|
|
|
|
2020-02-26 16:51:28 +03:00
|
|
|
void TargetInfo::setPackage(const QString &value) {
|
|
|
|
package = value;
|
2019-12-08 13:57:20 +03:00
|
|
|
}
|
2019-12-09 17:28:56 +03:00
|
|
|
|
2021-02-26 20:24:06 +03:00
|
|
|
QString TargetInfo::getIcon() const {
|
|
|
|
if (icon.isEmpty()) {
|
|
|
|
QFileInfo info(getName());
|
|
|
|
if (info.suffix() == "exe") {
|
|
|
|
return ":/shared/Distributions/Templates/Icon.ico";
|
|
|
|
}
|
|
|
|
|
|
|
|
return ":/shared/Distributions/Templates/Icon.png";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return icon;
|
|
|
|
}
|
|
|
|
|
|
|
|
void TargetInfo::setIcon(const QString &value) {
|
|
|
|
icon = value;
|
|
|
|
}
|
|
|
|
|
2019-12-11 18:06:54 +03:00
|
|
|
|