diff --git a/src/gui/src/Screen.cpp b/src/gui/src/Screen.cpp index a694bcea..1e3b8884 100644 --- a/src/gui/src/Screen.cpp +++ b/src/gui/src/Screen.cpp @@ -91,19 +91,19 @@ void Screen::saveSettings(QSettings& settings) const QTextStream& Screen::writeScreensSection(QTextStream& outStream) const { - outStream << "\t" << name() << ":" << Qt::endl; + outStream << "\t" << name() << ":" << endl; for (int i = 0; i < modifiers().size(); i++) { auto mod = static_cast(i); if (modifier(mod) != mod) { outStream << "\t\t" << modifierName(mod) << " = " << modifierName(modifier(mod)) - << Qt::endl; + << endl; } } for (int i = 0; i < fixes().size(); i++) { auto fix = static_cast(i); - outStream << "\t\t" << fixName(fix) << " = " << (fixes()[i] ? "true" : "false") << Qt::endl; + outStream << "\t\t" << fixName(fix) << " = " << (fixes()[i] ? "true" : "false") << endl; } outStream << "\t\t" << "switchCorners = none "; @@ -112,9 +112,9 @@ QTextStream& Screen::writeScreensSection(QTextStream& outStream) const outStream << "+" << switchCornerName(static_cast(i)) << " "; } } - outStream << Qt::endl; + outStream << endl; - outStream << "\t\t" << "switchCornerSize = " << switchCornerSize() << Qt::endl; + outStream << "\t\t" << "switchCornerSize = " << switchCornerSize() << endl; return outStream; } diff --git a/src/gui/src/ServerConfig.cpp b/src/gui/src/ServerConfig.cpp index 856db673..3392572a 100644 --- a/src/gui/src/ServerConfig.cpp +++ b/src/gui/src/ServerConfig.cpp @@ -210,56 +210,56 @@ int ServerConfig::adjacentScreenIndex(int idx, int deltaColumn, int deltaRow) co QTextStream& operator<<(QTextStream& outStream, const ServerConfig& config) { - outStream << "section: screens" << Qt::endl; + outStream << "section: screens" << endl; for (const Screen& s : config.screens()) { if (!s.isNull()) s.writeScreensSection(outStream); } - outStream << "end" << Qt::endl << Qt::endl; + outStream << "end" << endl << endl; - outStream << "section: aliases" << Qt::endl; + outStream << "section: aliases" << endl; for (const Screen& s : config.screens()) { if (!s.isNull()) s.writeAliasesSection(outStream); } - outStream << "end" << Qt::endl << Qt::endl; + outStream << "end" << endl << endl; - outStream << "section: links" << Qt::endl; + outStream << "section: links" << endl; for (int i = 0; i < config.screens().size(); i++) if (!config.screens()[i].isNull()) { - outStream << "\t" << config.screens()[i].name() << ":" << Qt::endl; + outStream << "\t" << config.screens()[i].name() << ":" << endl; for (unsigned int j = 0; j < sizeof(neighbourDirs) / sizeof(neighbourDirs[0]); j++) { int idx = config.adjacentScreenIndex(i, neighbourDirs[j].x, neighbourDirs[j].y); if (idx != -1 && !config.screens()[idx].isNull()) - outStream << "\t\t" << neighbourDirs[j].name << " = " << config.screens()[idx].name() << Qt::endl; + outStream << "\t\t" << neighbourDirs[j].name << " = " << config.screens()[idx].name() << endl; } } - outStream << "end" << Qt::endl << Qt::endl; + outStream << "end" << endl << endl; - outStream << "section: options" << Qt::endl; + outStream << "section: options" << endl; if (config.hasHeartbeat()) - outStream << "\t" << "heartbeat = " << config.heartbeat() << Qt::endl; + outStream << "\t" << "heartbeat = " << config.heartbeat() << endl; - outStream << "\t" << "relativeMouseMoves = " << (config.relativeMouseMoves() ? "true" : "false") << Qt::endl; - outStream << "\t" << "screenSaverSync = " << (config.screenSaverSync() ? "true" : "false") << Qt::endl; - outStream << "\t" << "win32KeepForeground = " << (config.win32KeepForeground() ? "true" : "false") << Qt::endl; - outStream << "\t" << "clipboardSharing = " << (config.clipboardSharing() ? "true" : "false") << Qt::endl; + outStream << "\t" << "relativeMouseMoves = " << (config.relativeMouseMoves() ? "true" : "false") << endl; + outStream << "\t" << "screenSaverSync = " << (config.screenSaverSync() ? "true" : "false") << endl; + outStream << "\t" << "win32KeepForeground = " << (config.win32KeepForeground() ? "true" : "false") << endl; + outStream << "\t" << "clipboardSharing = " << (config.clipboardSharing() ? "true" : "false") << endl; if (config.hasSwitchDelay()) - outStream << "\t" << "switchDelay = " << config.switchDelay() << Qt::endl; + outStream << "\t" << "switchDelay = " << config.switchDelay() << endl; if (config.hasSwitchDoubleTap()) - outStream << "\t" << "switchDoubleTap = " << config.switchDoubleTap() << Qt::endl; + outStream << "\t" << "switchDoubleTap = " << config.switchDoubleTap() << endl; outStream << "\t" << "switchCorners = none "; for (int i = 0; i < config.switchCorners().size(); i++) { @@ -268,15 +268,15 @@ QTextStream& operator<<(QTextStream& outStream, const ServerConfig& config) outStream << "+" << config.switchCornerName(corner) << " "; } } - outStream << Qt::endl; + outStream << endl; - outStream << "\t" << "switchCornerSize = " << config.switchCornerSize() << Qt::endl; + outStream << "\t" << "switchCornerSize = " << config.switchCornerSize() << endl; for (const Hotkey& hotkey : config.hotkeys()) { outStream << hotkey; } - outStream << "end" << Qt::endl << Qt::endl; + outStream << "end" << endl << endl; return outStream; }