Description: Port code to Qt 5
 [ Nick Andrik ]
 Based on ideas taken from:
 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784449#31
 http://sophie.zarb.org/rpms/ccf75da2539311195750bf02728b3e2c/files/8
 [ Sven Geuer ]
 Fix several deprecation warnings to comply with Qt 5.15 LTS.
 [ Bastian Germann ]
 Drop WebKit references
Author: Nick Andrik <nick.andrik@gmail.com>
Author: Sven Geuer <sge@debian.org>
Author: Bastian Germann <bage@debian.org>
Forwarded: not-needed
Last-Update: 2025-01-23

--- a/acetoneiso/acetoneiso.pro
+++ b/acetoneiso/acetoneiso.pro
@@ -1,8 +1,8 @@
 CONFIG += qt
 TEMPLATE = app
-TARGET = 
+TARGET = acetoneiso
 DEPENDPATH += .
-INCLUDEPATH += .
+INCLUDEPATH += . /usr/include/phonon4qt5/KDE
 
 # Input
 HEADERS += sources/acetoneiso.h \
@@ -57,10 +57,10 @@
 
 RESOURCES = acetoneiso.qrc
 
-#QT += phonon
+#LIBS += -lphonon4qt5
 QT += dbus
 #QT += svg
-QT += webkit
+QT += widgets
 
 #install#
     target.path = /usr/bin
--- a/acetoneiso/sources/a_options.h
+++ b/acetoneiso/sources/a_options.h
@@ -16,7 +16,7 @@
 #include"options.h"
 #include"acetoneiso.h"
 //#include"../acetoneiso.h"
-#include <QtGui> 
+#include <QtWidgets>
 void optionsDiag::optionss()
 {
   
--- a/acetoneiso/sources/about.cpp
+++ b/acetoneiso/sources/about.cpp
@@ -15,8 +15,8 @@
 #include "about.h"
 
 //
-aboutDiag::aboutDiag( QWidget * parent, Qt::WFlags f) 
-	: QDialog(parent, f)
+aboutDiag::aboutDiag( QWidget * parent )
+	: QDialog(parent)
 {
 	setupUi(this);
 }
--- a/acetoneiso/sources/about.h
+++ b/acetoneiso/sources/about.h
@@ -22,7 +22,7 @@
 {
 Q_OBJECT
 public:
-	aboutDiag( QWidget * parent = 0, Qt::WFlags f = 0 );
+	aboutDiag( QWidget * parent = 0 );
 };
 #endif
 
--- a/acetoneiso/sources/acetoneiso.cpp
+++ b/acetoneiso/sources/acetoneiso.cpp
@@ -14,7 +14,7 @@
 //    You should have received a copy of the GNU General Public License
 //    along with AcetoneISO.  If not, see <http://www.gnu.org/licenses/>.
 
-#include <QtGui>
+#include <QtWidgets>
 #include <QTabWidget>
 #include <QThread>
 #include <QWebView>
@@ -117,10 +117,10 @@
   //set torrent widge coloum spaces
   QHeaderView *header = torrentWidget->header();
   QFontMetrics fm = fontMetrics();
-  header->resizeSection(0, fm.width("typical-name-for-a-torrent.torrent_helloWorld_"));
-  header->resizeSection(1, fm.width("Progress_100"));
-  header->resizeSection(2, fm.width("999.9MiB/999.9Mib_999.9"));//size
-  header->resizeSection(3, fm.width("999.9KiBs_999.9"));//speed
+  header->resizeSection(0, fm.horizontalAdvance("typical-name-for-a-torrent.torrent_helloWorld_"));
+  header->resizeSection(1, fm.horizontalAdvance("Progress_100"));
+  header->resizeSection(2, fm.horizontalAdvance("999.9MiB/999.9Mib_999.9"));//size
+  header->resizeSection(3, fm.horizontalAdvance("999.9KiBs_999.9"));//speed
   //load torrents
   readTorrentList() ;
 
@@ -243,7 +243,7 @@
 prog.close();
 }
 
-void acetoneiso::on_options_nda_activated()
+void acetoneiso::on_options_nda_triggered()
 {
 QMainWindow::showNormal();
 optionsDiag *opt=new optionsDiag;
@@ -260,7 +260,7 @@
       QTextStream out_adv(&advanced);
       out_adv << ( "must call option directly in database settings\n" );
       advanced.close();
-on_options_nda_activated();  
+on_options_nda_triggered();
 }
 
 
@@ -295,20 +295,20 @@
    file.close();
  advanced.remove();
 QMessageBox::warning(this, "AcetoneISO::First Launch",tr("This is the first time you launch AcetoneISO software.\nIn the next dialog you can set your default file manager, set database and some other things.\nHappy AcetoneISO usage from the team:)"));
-on_options_nda_activated();
+on_options_nda_triggered();
    }
 
 }
 
 
-void acetoneiso::on_actionAbout_activated()
+void acetoneiso::on_actionAbout_triggered()
 {
 QMainWindow::showNormal();
 aboutDiag *abt=new aboutDiag;
 abt->exec();
 }
 
-void acetoneiso::on_actionManual_activated()
+void acetoneiso::on_actionManual_triggered()
 {
 manualDiag *man=new manualDiag;
 man->exec();
--- a/acetoneiso/sources/burn_iso_2_cd.cpp
+++ b/acetoneiso/sources/burn_iso_2_cd.cpp
@@ -13,7 +13,7 @@
 //
 //    You should have received a copy of the GNU General Public License
 //    along with AcetoneISO.  If not, see <http://www.gnu.org/licenses/>.
-#include <QtGui>
+#include <QtWidgets>
 #include <QFileDialog>
 #include <QCoreApplication>
 #include <QByteArray>
@@ -38,8 +38,8 @@
 */
 
 //
-burniso2cd::burniso2cd( QWidget * parent, Qt::WFlags f) 
-	: QDialog(parent, f)
+burniso2cd::burniso2cd( QWidget * parent )
+	: QDialog(parent)
 {
 
     setupUi(this);
@@ -403,8 +403,8 @@
     //connection to update the display
     QDir bin("/usr/bin");
     QDir::setCurrent( bin.absolutePath() );
-    QString cuecommand = "cue2toc \"" +  imageToBurn + "." + realSuffix + "\" -o \"" +  imageToBurn + ".toc\"";  
-    cue2tocP->start(cuecommand );
+    //QString cuecommand = "cue2toc \"" +  imageToBurn + "." + realSuffix + "\" -o \"" +  imageToBurn + ".toc\"";
+    cue2tocP->start("cue2toc", QStringList() << imageToBurn + "." + realSuffix << "-o" << imageToBurn + ".toc" );
     cue2tocP->waitForFinished();
     QFile newTocFile(imageToBurn + ".toc");
     if (!newTocFile.exists()) {
@@ -504,36 +504,38 @@
   current_speed = ( current_speed.split("x"))[0]  ;
 
 
-  QString wodim = "";
+  QString wodimCmd = "";
+  QStringList wodimArgs;
 
   //realize if it must burn an ISO or TOC
   if (imageType == "toc") {
     //image is TOC
+	wodimCmd = "cdrdao";
     if (simulation_checkbox->isChecked()) {
-      wodim = "cdrdao simulate "; 
+      wodimArgs << "simulate";
     }
     else {
-       wodim = "cdrdao write "; 
+      wodimArgs << "write";
     }
     if (eject->isChecked()) {
-      wodim = wodim.append(" --eject "); 
+      wodimArgs << "--eject";
     }
-    wodim = wodim.append(" --speed " + current_speed  + " --device " +  (dev.split("="))[1]  + " --driver generic-mmc " + "  \"" + imageToBurn + "." + realSuffix + "\"" );
+    wodimArgs << "--speed" << current_speed << "--device" << (dev.split("="))[1] << "--driver" << "generic-mmc" << imageToBurn + "." + realSuffix;
   }
   else {
   //image is ISO
-    wodim = "wodim -v -dao " + dev + " -speed=" + current_speed ;
+    wodimCmd = "wodim";
+	wodimArgs << "-v" << "-dao" << dev << "-speed=" + current_speed;
     if (simulation_checkbox->isChecked()) {
-      wodim = wodim.append(" -dummy"); 
+      wodimArgs << "-dummy";
     }
     if (eject->isChecked()) {
-      wodim = wodim.append(" -eject");   
+      wodimArgs << "-eject";
     }
-  
-    wodim = wodim.append("  \"" + imageToBurn + "\"" ); 
+    wodimArgs << imageToBurn;
   }
   
- // qDebug() << wodim;
+ // qDebug() << wodimCmd << wodimArgs;
   
   erase = new QProcess();
   erase->setReadChannel(QProcess::StandardOutput);
@@ -545,7 +547,7 @@
   QDir::setCurrent( bin.absolutePath() );
   is_erasing = true;
 
-  erase->start(wodim );
+  erase->start(wodimCmd, wodimArgs );
 
 
 }
--- a/acetoneiso/sources/burn_iso_2_cd.h
+++ b/acetoneiso/sources/burn_iso_2_cd.h
@@ -29,7 +29,7 @@
 {
 Q_OBJECT
 public:
-	burniso2cd( QWidget * parent = 0, Qt::WFlags f = 0 );
+	burniso2cd( QWidget * parent = 0 );
 	QStringList device_path;
 	QStringList id_device;
 	QByteArray erase_output;
--- a/acetoneiso/sources/burn_iso_2_dvd.cpp
+++ b/acetoneiso/sources/burn_iso_2_dvd.cpp
@@ -13,7 +13,7 @@
 //
 //    You should have received a copy of the GNU General Public License
 //    along with AcetoneISO.  If not, see <http://www.gnu.org/licenses/>.
-#include <QtGui>
+#include <QtWidgets>
 #include <QByteArray>
 #include <QProcess>
 #include <QDBusConnection>
@@ -29,8 +29,8 @@
 
 
 //
-burniso2dvd::burniso2dvd( QWidget * parent, Qt::WFlags f) 
-	: QDialog(parent, f)
+burniso2dvd::burniso2dvd( QWidget * parent )
+	: QDialog(parent)
 {
 
     setupUi(this);
@@ -488,10 +488,10 @@
   QString current_speed = combo_speed->currentText();
   current_speed = ( current_speed.split("x"))[0];
   dev = dev.append("=\"" + imageToBurn + "\"");
-  QString grow = "growisofs -dvd-compat -speed=" + current_speed + "  -Z " + dev;
+  //QString grow = "growisofs -dvd-compat -speed=" + current_speed + "  -Z " + dev;
 
   //qDebug() << grow;
-  erase->start(grow );
+  erase->start("growisofs", QStringList() << "-dvd-compat" << "-speed=" + current_speed << "-Z" << dev);
 
   
   
--- a/acetoneiso/sources/burn_iso_2_dvd.h
+++ b/acetoneiso/sources/burn_iso_2_dvd.h
@@ -28,7 +28,7 @@
 {
 Q_OBJECT
 public:
-	burniso2dvd( QWidget * parent = 0, Qt::WFlags f = 0 );
+	burniso2dvd( QWidget * parent = 0 );
 	QStringList device_path;
 	QStringList id_device;
 	QByteArray erase_output;
--- a/acetoneiso/sources/erase_cd.cpp
+++ b/acetoneiso/sources/erase_cd.cpp
@@ -14,7 +14,7 @@
 //    You should have received a copy of the GNU General Public License
 //    along with AcetoneISO.  If not, see <http://www.gnu.org/licenses/>.
 
-#include <QtGui>
+#include <QtWidgets>
 #include <QCoreApplication>
 #include <QByteArray>
 #include <QProcess>
@@ -31,8 +31,8 @@
 */
 
 //
-erasecd::erasecd( QWidget * parent, Qt::WFlags f) 
-	: QDialog(parent, f)
+erasecd::erasecd( QWidget * parent )
+	: QDialog(parent)
 {
 
     setupUi(this);
@@ -56,7 +56,7 @@
   QDir bin("/usr/bin");
   QDir::setCurrent( bin.absolutePath() );
   Devices_Burn = "";
-  scan_devices_process->start("xorriso -devices" );
+  scan_devices_process->start( "xorriso", QStringList() << "-devices" );
   scan_devices_process->waitForFinished();
   QString stream_Devices_Burn = Devices_Burn;
   Devices_Burn.clear();
@@ -100,7 +100,7 @@
 
   //Devices_Burn = "~ 0  -dev '/dev/sr0' rwrw-- :  'TSSTcorp' 'CDDVDW SE-S084F' ~ 1  -dev '/dev/sr1' rwrw-- :  'ASUS' 'CDDVDW' ";
   
-  QStringList split_devices = Devices_Burn.split("~",QString::SkipEmptyParts);
+  QStringList split_devices = Devices_Burn.split("~",Qt::SkipEmptyParts);
   int count = split_devices.count();
   //qDebug() << count;
   int cc = 0;
@@ -109,7 +109,7 @@
   while (cc < count) {
     Properties_Device = "";
     //controllare se device supporta masterizzare su cd-r cd-rw, in caso contrario ripartire ciclo:  xorriso -outdev /dev/sr0 -list_profiles
-    QString device_current = split_devices[cc].split("'", QString::SkipEmptyParts)[1];
+    QString device_current = split_devices[cc].split("'", Qt::SkipEmptyParts)[1];
     scan_device_properties_process = new QProcess();
     scan_device_properties_process->setReadChannel(QProcess::StandardOutput);
     scan_device_properties_process->setProcessChannelMode(QProcess::MergedChannels);		
@@ -117,7 +117,7 @@
     connect(scan_device_properties_process, SIGNAL(readyReadStandardOutput()), SLOT(updateScanDevicesProperties() )); 
     QDir bin("/usr/bin");
     QDir::setCurrent( bin.absolutePath() );
-    scan_device_properties_process->start("xorriso -outdev " + device_current + " -list_profiles" );
+    scan_device_properties_process->start("xorriso", QStringList() << "-outdev " + device_current << "-list_profiles" );
     scan_device_properties_process->waitForFinished(); 
     if (!Properties_Device.contains("cd-rw", Qt::CaseInsensitive) ) {
       qDebug() << "Removed:" << Properties_Device;
@@ -183,7 +183,7 @@
 
   Properties_Device = "";
   //controllo se ce un cd inserito ed è di tipo CD-RW :  xorriso -outdev /dev/sr0 -list_profiles
-  QString device_current = id.split("'", QString::SkipEmptyParts)[1];
+  QString device_current = id.split("'", Qt::SkipEmptyParts)[1];
   //qDebug() << device_current;
   scan_device_properties_process = new QProcess();
   scan_device_properties_process->setReadChannel(QProcess::StandardOutput);
@@ -193,7 +193,7 @@
   connect( scan_device_properties_process, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(scan_device_properties_process_Finished(int, QProcess::ExitStatus)));
   QDir bin("/usr/bin");
   QDir::setCurrent( bin.absolutePath() );
-  scan_device_properties_process->start("xorriso -outdev " + device_current + " -list_profiles" );
+  scan_device_properties_process->start("xorriso", QStringList() << "-outdev " + device_current << "-list_profiles" );
   //qDebug() << Properties_Device;
 }
 
--- a/acetoneiso/sources/erase_cd.h
+++ b/acetoneiso/sources/erase_cd.h
@@ -28,7 +28,7 @@
 {
 Q_OBJECT
 public:
-	erasecd( QWidget * parent = 0, Qt::WFlags f = 0 );
+	erasecd( QWidget * parent = 0 );
 	QStringList device_path;
 	QStringList id_device;
 	QByteArray erase_output;
--- a/acetoneiso/sources/erase_dvd.cpp
+++ b/acetoneiso/sources/erase_dvd.cpp
@@ -13,7 +13,7 @@
 //
 //    You should have received a copy of the GNU General Public License
 //    along with AcetoneISO.  If not, see <http://www.gnu.org/licenses/>.
-#include <QtGui>
+#include <QtWidgets>
 #include <QByteArray>
 #include <QProcess>
 #include <QDBusConnection>
@@ -33,8 +33,8 @@
 */
 
 //
-erasedvd::erasedvd( QWidget * parent, Qt::WFlags f) 
-	: QDialog(parent, f)
+erasedvd::erasedvd( QWidget * parent )
+	: QDialog(parent)
 {
 
     setupUi(this);
--- a/acetoneiso/sources/erase_dvd.h
+++ b/acetoneiso/sources/erase_dvd.h
@@ -27,7 +27,7 @@
 {
 Q_OBJECT
 public:
-	erasedvd( QWidget * parent = 0, Qt::WFlags f = 0 );
+	erasedvd( QWidget * parent = 0 );
 	QStringList device_path;
 	QStringList id_device;
 	QByteArray erase_output;
--- a/acetoneiso/sources/formatcd.h
+++ b/acetoneiso/sources/formatcd.h
@@ -87,7 +87,7 @@
 if (msgBox.clickedButton() == connectButton) {
    umountcheck();
    bool ok;
-   int i = QInputDialog::getInteger(this, tr("AcetoneISO::Erase Speed"),tr("Please insert the erasing speed:"), 4, 2, 16, 2, &ok);
+   int i = QInputDialog::getInt(this, tr("AcetoneISO::Erase Speed"),tr("Please insert the erasing speed:"), 4, 2, 16, 2, &ok);
 	if (!ok) {
 	   }
 	else {
--- a/acetoneiso/sources/isocd.h
+++ b/acetoneiso/sources/isocd.h
@@ -20,7 +20,7 @@
                                           "/dev/cdrom", &ok);
 if (ok && !text.isEmpty()) {
    bool ok2;
-   int i = QInputDialog::getInteger(this, tr("AcetoneISO::Byte Size"),tr("Please insert the Byte Size.\nLeaving default is the best solution!"), 1024, 0, 100000, 2, &ok2);
+   int i = QInputDialog::getInt(this, tr("AcetoneISO::Byte Size"),tr("Please insert the Byte Size.\nLeaving default is the best solution!"), 1024, 0, 100000, 2, &ok2);
    if (!ok2) {
       return;
      }
--- a/acetoneiso/sources/manual.cpp
+++ b/acetoneiso/sources/manual.cpp
@@ -15,8 +15,8 @@
 #include "manual.h"
 
 //
-manualDiag::manualDiag( QWidget * parent, Qt::WFlags f) 
-	: QDialog(parent, f)
+manualDiag::manualDiag( QWidget * parent )
+	: QDialog(parent)
 {
 	setupUi(this);
 
--- a/acetoneiso/sources/manual.h
+++ b/acetoneiso/sources/manual.h
@@ -23,7 +23,7 @@
 {
 Q_OBJECT
 public:
-	manualDiag( QWidget * parent = 0, Qt::WFlags f = 0 );
+	manualDiag( QWidget * parent = 0 );
 
 };
 #endif
--- a/acetoneiso/sources/options.cpp
+++ b/acetoneiso/sources/options.cpp
@@ -15,8 +15,8 @@
 #include "options.h"
 #include"a_options.h"
 //
-optionsDiag::optionsDiag( QWidget * parent, Qt::WFlags f) 
-	: QDialog(parent, f)
+optionsDiag::optionsDiag( QWidget * parent )
+	: QDialog(parent)
 {
 
     setupUi(this);
--- a/acetoneiso/sources/options.h
+++ b/acetoneiso/sources/options.h
@@ -22,7 +22,7 @@
 {
 Q_OBJECT
 public:
-	optionsDiag( QWidget * parent = 0, Qt::WFlags f = 0 );
+	optionsDiag( QWidget * parent = 0 );
 private slots:
    void optionss();
    void update_options();
--- a/acetoneiso/sources/progress.cpp
+++ b/acetoneiso/sources/progress.cpp
@@ -15,8 +15,8 @@
 #include "progress.h"
 
 //
-progressDiag::progressDiag( QWidget * parent, Qt::WFlags f) 
-	: QDialog(parent, f)
+progressDiag::progressDiag( QWidget * parent )
+	: QDialog(parent)
 {
 	setupUi(this);
 }
--- a/acetoneiso/sources/progress.h
+++ b/acetoneiso/sources/progress.h
@@ -23,7 +23,7 @@
 {
 Q_OBJECT
 public:
-	progressDiag( QWidget * parent = 0, Qt::WFlags f = 0 );
+	progressDiag( QWidget * parent = 0 );
 
 };
 #endif
--- a/acetoneiso/sources/split.h
+++ b/acetoneiso/sources/split.h
@@ -33,7 +33,7 @@
   }
 
   bool ok;
-  int i = QInputDialog::getInteger(this, tr("AcetoneISO::Split number"),tr("Please insert the volume number in MegaByte:"), 99, 1, 100000, 1, &ok);
+  int i = QInputDialog::getInt(this, tr("AcetoneISO::Split number"),tr("Please insert the volume number in MegaByte:"), 99, 1, 100000, 1, &ok);
   if (!ok) {
     return;
   }
@@ -41,7 +41,7 @@
   QString file;
   file = QString::number(i).append("m");
   file.prepend("-v");
-  bin = split_folder;
+  bin.setPath(split_folder);
   QDir::setCurrent( bin.path() );
   disable_all_button_processes();
   SPlit.start("7z",QStringList()  << "a" << "-y" << "-t7z" << "-m0=lzma" << "-mx=0" << "-mfb=8" << "-md=2m" << "-ms=on" << file << split_folder << fileName);
--- a/acetoneiso/sources/vidgen.h
+++ b/acetoneiso/sources/vidgen.h
@@ -32,7 +32,7 @@
 								       tr("Video (*.avi)"));
    if ( !fileName.isNull() ) {
       bool ok;
-      int i = QInputDialog::getInteger(this, tr("AcetoneISO::Fixed Quant"),tr("Please insert the Fixed Quant number.\nLowering the number will result in a higher quality video."), 7, 2, 13, 1, &ok);
+      int i = QInputDialog::getInt(this, tr("AcetoneISO::Fixed Quant"),tr("Please insert the Fixed Quant number.\nLowering the number will result in a higher quality video."), 7, 2, 13, 1, &ok);
       if (!ok) {
          return;
         }
@@ -145,7 +145,7 @@
 if(valore_uscita == 0) {
    QMessageBox::information(this, "AcetoneISO",tr("Encoding Pass 1 has succesfully finished.\nPass 2 will be done now. Please choose the bitrate in the next dialog and then choose where to save the video."));
    bool ok;
-   int i = QInputDialog::getInteger(this, tr("AcetoneISO::Bitrate"),tr("Please insert Bitrate. Higher bitrate means more quality but will generate a bigger file."), 896, 384, 4096, 128, &ok);
+   int i = QInputDialog::getInt(this, tr("AcetoneISO::Bitrate"),tr("Please insert Bitrate. Higher bitrate means more quality but will generate a bigger file."), 896, 384, 4096, 128, &ok);
    if (!ok) {
       return;
      }
--- a/acetoneiso/sources/acetoneiso.h
+++ b/acetoneiso/sources/acetoneiso.h
@@ -141,10 +141,10 @@
     void mergeMSG(int, QProcess::ExitStatus);
     void Monta( QString &image, QString &destination );
     void openBrowser( QString &destination, QString onlyfile, float divide, QString &temporary, QString image_with_path );
-    void on_options_nda_activated();
+    void on_options_nda_triggered();
     void createOption();
-    void on_actionAbout_activated();
-    void on_actionManual_activated();
+    void on_actionAbout_triggered();
+    void on_actionManual_triggered();
     void printOutvidgen(int, QProcess::ExitStatus);
     void printOutflv(int, QProcess::ExitStatus);
     void printOututube(int, QProcess::ExitStatus);
--- a/acetoneiso/sources/global_functions.h
+++ b/acetoneiso/sources/global_functions.h
@@ -216,9 +216,9 @@
 //carico tray icon
 void acetoneiso::load_trayicon() {
     AboutAction = new QAction(tr("About AcetoneISO"), this);
-    connect(AboutAction, SIGNAL(triggered()), this, SLOT(on_actionAbout_activated() ));
+    connect(AboutAction, SIGNAL(triggered()), this, SLOT(on_actionAbout_triggered() ));
     OptionsAction = new QAction(tr("Options"), this);
-    connect(OptionsAction, SIGNAL(triggered()), this, SLOT(on_options_nda_activated() ));
+    connect(OptionsAction, SIGNAL(triggered()), this, SLOT(on_options_nda_triggered() ));
     
     MountAction = new QAction(tr("Mount Image"), this);
     connect(MountAction, SIGNAL(triggered()), this, SLOT(mount()));
--- a/README
+++ b/README
@@ -17,13 +17,13 @@
 SYSTEM REQUIREMENTS:
 - fuseiso
 - fuse-utils
-- libqt4-gui 4.5 and libqtwebkit 4.5 or later
+- libqt5gui5
 - genisoimage (may be part of cdrkit package)
 - cdrdao
 - p7zip-full
 - gnupg-agent
 - gnupg2
-- pinentry-qt4
+- pinentry-qt
 - ffmpeg
 - mencoder
 - cdparanoia
@@ -34,12 +34,12 @@
 #############################   INSTALL  #############################################
 
 
-a) You must have libqt4-dev 4.5 and libphonon-dev or later and the standard gcc compiler (gcc,g++,make) installed.
+a) You must have qttools5-dev-tools, libqt5webkit5-dev, and libphonon4qt5-dev and the standard gcc compiler (gcc,g++,make) installed.
 
 
 b) open a terminal inside acetoneiso folder and type:
 
-   qmake-qt4 (if it gives errors simply type "qmake" instead)
+   qmake-qt5 (if it gives errors simply type "qmake" instead)
    make
    make install (must be run as root user)
 
--- a/acetoneiso/sources/torrent.h
+++ b/acetoneiso/sources/torrent.h
@@ -130,7 +130,7 @@
   connect(aria2cTorrentName, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(ariaGotName(int, QProcess::ExitStatus)));
   //connection to update the display
   connect(aria2cTorrentName, SIGNAL(readyReadStandardOutput()), SLOT(AriaName() ));
-  aria2cTorrentName->start("aria2c --show-files \"" + torrent + "\"" );  
+  aria2cTorrentName->start("aria2c", QStringList() << "--show-files" << torrent);
    
 }
 //realtime reads process that gets torrent name
@@ -214,7 +214,7 @@
   aria2c->setProcessChannelMode(QProcess::MergedChannels);	
   //connection to update the display
   connect(aria2c, SIGNAL(readyReadStandardOutput()), SLOT(AriaDisplay() ));
-  aria2c->start("aria2c --allow-overwrite=true --log-level=info --check-certificate=false --summary-interval=0 -d /home/bulletxt \"" + file + "\"");  
+  aria2c->start("aria2c", QStringList() << "--allow-overwrite=true" << "--log-level=info" << "--check-certificate=false" << "--summary-interval=0" << "-d" << "/home/bulletxt" << file);
   
   //store process object in array
   process_list.append(aria2c);
@@ -366,7 +366,7 @@
   //ETA
   QString containsETA = aria2_output;
   if (containsETA.contains("ETA",Qt::CaseInsensitive ) ) {
-    QStringList splitEta = containsETA.split("ETA",QString::SkipEmptyParts) ;
+    QStringList splitEta = containsETA.split("ETA",Qt::SkipEmptyParts) ;
     containsETA = (splitEta[splitEta.count() - 1]).split(":")[1].split("]")[0]    ;
     item_list[conta]->setText(4, containsETA );
   }
@@ -398,13 +398,3 @@
   } 
   
 }
- 
-
- 
- 
- 
- 
- 
- 
- 
- 
\ No newline at end of file
--- a/acetoneiso/sources/database.h
+++ b/acetoneiso/sources/database.h
@@ -244,7 +244,7 @@
 
 
 QStringList database_list = list.split("\n");
-database_list = database_list[3].split("=",QString::SkipEmptyParts);
+database_list = database_list[3].split("=",Qt::SkipEmptyParts);
 //qDebug() << database_list[1];
 
 //label_database->setText(database_list[1]); may cause segfault if conf file doesn't have at least "DB =" string
--- a/acetoneiso/sources/history.h
+++ b/acetoneiso/sources/history.h
@@ -72,7 +72,7 @@
 
 	
 	QString history_line = history_out.readAll();  
-	QStringList list = history_line.split("\n",QString::SkipEmptyParts);
+	QStringList list = history_line.split("\n",Qt::SkipEmptyParts);
 	int size = list.size();
 	int read_i = 0;
 
