Commit 4501e386 authored by Ingemar Ceicer's avatar Ingemar Ceicer

Qt Installer Framework Linux ?

parent 03d306d8
......@@ -121,15 +121,19 @@ Hash::Hash(QWidget *parent) :
QMessageBox::critical(nullptr, APPLICATION_NAME " " VERSION, tr("\"Control Panel\\All Control Panel Items\\Programs and Features\" cannot be found"));
#endif
QString path = QCoreApplication::applicationDirPath() + "/hashSumMaintenanceTool";
qInfo() << path;
bool b = QProcess::startDetached(path);
// bool b = QProcess::startDetached("/opt/Hashsum/hashSumMaintenanceTool");
if(b)
exit(0);
QMessageBox::critical(nullptr, APPLICATION_NAME " " VERSION, tr("MaintenanceTool cannot be found"));
#ifdef Q_OS_LINUX // Linux
if(QTINSTALLERFRAMEWORK)
{
QString path = QCoreApplication::applicationDirPath() + "/hashSumMaintenanceTool";
bool b = QProcess::startDetached(path);
if(b)
exit(0);
QMessageBox::critical(nullptr, APPLICATION_NAME " " VERSION, tr("MaintenanceTool cannot be found"));
}
#endif
......@@ -3430,7 +3434,7 @@ void Hash::setStartConfig()
file.close();
// Windows
// #ifdef Q_WS_WIN // QT4
// #ifdef Q_WS_WIN
#ifdef Q_OS_WIN // QT5
ui->actionUseNativeDialogs->setVisible(false);
ui->actionCreateDebianMd5sums->setVisible(false);
......@@ -3438,9 +3442,16 @@ void Hash::setStartConfig()
ui->actionUninstall->setVisible(true);
ui->actionUninstall->setEnabled(true);
#endif
ui->actionUninstall->setVisible(true);
ui->actionUninstall->setEnabled(true);
// End Windows
// Linux
#ifdef Q_OS_LINUX
if(QTINSTALLERFRAMEWORK) {
ui->actionUninstall->setVisible(true);
ui->actionUninstall->setEnabled(true);
}
#endif
// End Linux
}
void Hash::setEndConfig()
{
......
......@@ -51,6 +51,7 @@
#define DOWNLOAD_PATH "https://gitlab.com/posktomten/hashsum/-/wikis/DOWNLOADS"
#define elGR_TRANSLATOR "www.geogeo.gr"
#define deDE_TRANSLATOR "Benjamin Weis"
#define QTINSTALLERFRAMEWORK false
#define QLINEEDIT_MAX 32767
#define SIZE_OF_RECENT_FILES 50
......
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