]> git.sur5r.net Git - minitube/blobdiff - src/downloadmanager.cpp
HiDPI support
[minitube] / src / downloadmanager.cpp
index 2a7ac2e87620c8cdc0b67e3a3bf7462ce2763b54..9375bb082f6a4164b6ad6ccf87a6e9e0c95a2580 100644 (file)
@@ -32,6 +32,7 @@ $END_LICENSE */
 #endif
 #include "datautils.h"
 #include "compatibility/pathsservice.h"
+#include "iconutils.h"
 
 static DownloadManager *downloadManagerInstance = 0;
 
@@ -73,7 +74,7 @@ void DownloadManager::addItem(Video *video) {
     if (!Activation::instance().isActivated()) {
         if (video->duration() >= 60*4) {
             QMessageBox msgBox(MainWindow::instance());
-            msgBox.setIconPixmap(QPixmap(":/images/app.png").scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation));
+            msgBox.setIconPixmap(IconUtils::pixmap(":/images/app.png").scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation));
             msgBox.setText(tr("This is just the demo version of %1.").arg(Constants::NAME));
             msgBox.setInformativeText(
                         tr("It can only download videos shorter than %1 minutes so you can test the download functionality.")