X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=launcher%2Fsrc%2Fappinfo.cpp;h=b6698453cc8088371a5a61afb95a110b93c05e4c;hb=HEAD;hp=78c48ed4a3d9233210ad505a2998fa205b54448b;hpb=aa8e593bf3d5138d007619048eeac0e4b9863b7a;p=apps%2Flauncher.git diff --git a/launcher/src/appinfo.cpp b/launcher/src/appinfo.cpp index 78c48ed..b669845 100644 --- a/launcher/src/appinfo.cpp +++ b/launcher/src/appinfo.cpp @@ -27,32 +27,18 @@ public: Private(const Private &other); QString id; - QString version; - int width; - int height; QString name; - QString description; - QString shortname; - QString author; QString iconPath; }; AppInfo::Private::Private() - : width(-1) - , height(-1) { } AppInfo::Private::Private(const Private &other) : QSharedData(other) , id(other.id) - , version(other.version) - , width(other.width) - , height(other.height) , name(other.name) - , description(other.description) - , shortname(other.shortname) - , author(other.author) , iconPath(other.iconPath) { } @@ -90,41 +76,11 @@ QString AppInfo::id() const return d->id; } -QString AppInfo::version() const -{ - return d->version; -} - -int AppInfo::width() const -{ - return d->width; -} - -int AppInfo::height() const -{ - return d->height; -} - QString AppInfo::name() const { return d->name; } -QString AppInfo::description() const -{ - return d->description; -} - -QString AppInfo::shortname() const -{ - return d->shortname; -} - -QString AppInfo::author() const -{ - return d->author; -} - QString AppInfo::iconPath() const { return d->iconPath; @@ -133,12 +89,6 @@ QString AppInfo::iconPath() const void AppInfo::read(const QJsonObject &json) { d->id = json["id"].toString(); - d->version = json["version"].toString(); - d->width = json["width"].toInt(); - d->height = json["height"].toInt(); d->name = json["name"].toString(); - d->description = json["description"].toString(); - d->shortname = json["shortname"].toString(); - d->author = json["author"].toString(); d->iconPath = json["iconPath"].toString(); }