mirror of
https://github.com/Snigdha-OS/snigdhaos-falcon.git
synced 2025-09-21 15:44:55 +02:00
🛠️ build(_ui): update + upgrade graphic
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -8,6 +8,7 @@ SnigdhaOSFalcon::SnigdhaOSFalcon(QWidget *parent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
updateCheckBoxes();
|
||||
connect(&installer, SIGNAL(finished(int,QProcess::ExitStatus)), this, SLOT(on_installerFinished(int,QProcess::ExitStatus)));
|
||||
}
|
||||
|
||||
SnigdhaOSFalcon::~SnigdhaOSFalcon()
|
||||
@@ -15,6 +16,23 @@ SnigdhaOSFalcon::~SnigdhaOSFalcon()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void SnigdhaOSFalcon::updatePackageList() {
|
||||
|
||||
QList<QCheckBox*> SnigdhaOSFalcon::getCheckboxes() {
|
||||
return this->ui->tabWidget->findChildren<QCheckBox*>();
|
||||
}
|
||||
|
||||
void SnigdhaOSFalcon::updatePackageList() {
|
||||
QStringList packages;
|
||||
for (auto element : getCheckboxes()) {
|
||||
auto string = element->property("packageName").toString();
|
||||
if (string.isEmpty()) {
|
||||
std::runtime_error(("Empty/Non existent package name detected for " + element->objectName()).toStdString());
|
||||
}
|
||||
packages.append(std::move(string));
|
||||
}
|
||||
|
||||
QProcess proc;
|
||||
proc.start("pacman -Qq " + packages.join(" "));
|
||||
proc.waitForFinished();
|
||||
QString installed = proc.readAllStandardOutput();
|
||||
installed_packages = installed.split("\n");
|
||||
}
|
||||
|
2291
snigdhaosfalcon.ui
2291
snigdhaosfalcon.ui
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user