summaryrefslogtreecommitdiffstats
path: root/helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'helper.cpp')
-rw-r--r--helper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/helper.cpp b/helper.cpp
index 7d7710a..b3f2fc6 100644
--- a/helper.cpp
+++ b/helper.cpp
@@ -18,9 +18,9 @@
#include <QTemporaryFile>
#include <QProcess>
#include <QRect>
-#include <QWidget>
-#include <QDesktopWidget>
-#include <QApplication>
+#include <QtWidgets/QWidget>
+#include <QtWidgets/QDesktopWidget>
+#include <QtWidgets/QApplication>
#include <stdio.h>
@@ -200,7 +200,7 @@ namespace Helper {
const QString colorToHtml(const QColor &color){
char colString[7];
::snprintf(colString, 7, "%0x%0x%0x", color.red(), color.green(), color.blue());
- return QString::fromAscii(colString);
+ return QString::fromLatin1(colString);
}
void centerWidget(QWidget *widget){