mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-29 11:14:33 +00:00
41 lines
814 B
C++
41 lines
814 B
C++
//#
|
|
//# Copyright (C) 2018-2021 QuasarApp.
|
|
//# 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() {
|
|
|
|
}
|
|
|
|
QString TargetInfo::getPackage() const {
|
|
return package;
|
|
}
|
|
|
|
void TargetInfo::setPackage(const QString &value) {
|
|
package = value;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
|