Files
pilotclient/samples/hotkey/main.cpp
Lars Toenning b4f6e74975 refactor: Remove manual high-dpi support
This removes the --scale command line option.
Qt6 seems to have this already integrated to scale according to the
nativ display settings: https://doc.qt.io/qt-6.8/highdpi.html
Adjusting the scale on a per-application basis is not intended (anymore)
according to the documentation.
Tested on a (near) high-dpi screen.
2025-08-29 23:17:15 +02:00

25 lines
663 B
C++

// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
//! \file
//! \ingroup samplehotkey
#include <QApplication>
#include "gui/components/settingshotkeycomponent.h"
#include "gui/guiapplication.h"
#include "misc/directoryutils.h"
using namespace swift::misc;
using namespace swift::gui;
//! main
int main(int argc, char *argv[])
{
QApplication qa(argc, argv);
CGuiApplication a("samplehotkey", swift::misc::CApplicationInfo::Sample, QPixmap());
swift::gui::components::CSettingsHotkeyComponent w;
w.show();
return a.exec();
}