Commit e0a6c5bf authored by LordTermor's avatar LordTermor

Fixed dependencies links

parent 4bae8a2e
......@@ -379,7 +379,7 @@ Page {
onClicked: {
stackView.push("PagePackageInfo.qml", {"pkg" : Database.getPkgDetails(modelData)});
stackView.push("PagePackageInfo.qml", {"pkg" : Database.getPkg(modelData)});
}
}
}
......@@ -398,7 +398,7 @@ Page {
text: modelData
onClicked: {
stackView.push("PagePackageInfo.qml",{"pkg" : Database.getPkgDetails(modelData.split(":")[0])});
stackView.push("PagePackageInfo.qml",{"pkg" : Database.getPkg(modelData.split(":")[0])});
}
}
model: pkg.optDepends
......
......@@ -50,6 +50,7 @@ public:
Q_INVOKABLE QVariantList getInstalledApps();
Q_INVOKABLE QVariantList getInstalledPackages(InstalledPackageTypes type);
Q_INVOKABLE QVariantList getAurPackages(const QStringList &nameList);
Q_INVOKABLE AlpmPackage getPkg(const QString& name);
Q_INVOKABLE QStringList getPkgFiles(const QString &name);
......
......@@ -183,4 +183,9 @@ QVariantList Database::getAurPackages(const QStringList &nameList)
return result;
}
AlpmPackage Database::getPkg(const QString &name)
{
return AlpmPackage(pamac_database_get_pkg(handle,name.toUtf8()));
}
} // namespace LibQPamac
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment