Commit dac8a6b5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some compile error against qt6

parent 5fcebc8d
Pipeline #188846 passed with stage
in 45 seconds
......@@ -68,7 +68,7 @@ void KMouseTool::init_vars()
loadOptions();
// If the ~/.mousetool directory doesn't exist, create it
mSoundFileName = QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("sounds/mousetool_tap.wav"));
mSoundFileName = QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("sounds/mousetool_tap.wav"));
mplayer = Phonon::createPlayer(Phonon::AccessibilityCategory);
mplayer->setParent(this);
......
......@@ -16,10 +16,11 @@
int main(int argc, char *argv[])
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
// enable high dpi support
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
#endif
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("kmousetool");
......
Supports Markdown
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