mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
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.
25 lines
663 B
C++
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();
|
|
}
|