Enable highdpi for all executables
This commit is contained in:
parent
872e213010
commit
12d8adef76
6 changed files with 12 additions and 4 deletions
|
@ -21,6 +21,8 @@
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
QIcon::setFallbackThemeName(QStringLiteral("breeze"));
|
QIcon::setFallbackThemeName(QStringLiteral("breeze"));
|
||||||
|
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
||||||
|
|
|
@ -127,9 +127,10 @@ static void detectPlatform(int argc, char **argv)
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
detectPlatform(argc, argv);
|
detectPlatform(argc, argv);
|
||||||
|
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
|
|
||||||
KAboutData aboutData(
|
KAboutData aboutData(
|
||||||
QStringLiteral("kdeconnect.daemon"),
|
QStringLiteral("kdeconnect.daemon"),
|
||||||
i18n("KDE Connect Daemon"),
|
i18n("KDE Connect Daemon"),
|
||||||
|
|
|
@ -33,9 +33,10 @@
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
QIcon::setFallbackThemeName(QStringLiteral("breeze"));
|
QIcon::setFallbackThemeName(QStringLiteral("breeze"));
|
||||||
|
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
|
|
||||||
KAboutData about(QStringLiteral("kdeconnect-indicator"),
|
KAboutData about(QStringLiteral("kdeconnect-indicator"),
|
||||||
i18n("KDE Connect Indicator"),
|
i18n("KDE Connect Indicator"),
|
||||||
QStringLiteral(KDECONNECT_VERSION_STRING),
|
QStringLiteral(KDECONNECT_VERSION_STRING),
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
QIcon::setFallbackThemeName(QStringLiteral("breeze"));
|
QIcon::setFallbackThemeName(QStringLiteral("breeze"));
|
||||||
|
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
||||||
|
|
|
@ -28,7 +28,8 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QIcon::setFallbackThemeName(QStringLiteral("breeze"));
|
QIcon::setFallbackThemeName(QStringLiteral("breeze"));
|
||||||
|
|
||||||
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
||||||
KAboutData aboutData(QStringLiteral("kdeconnect.sms"),
|
KAboutData aboutData(QStringLiteral("kdeconnect.sms"),
|
||||||
|
|
|
@ -36,7 +36,8 @@
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
||||||
const QString description = i18n("KDE Connect URL handler");
|
const QString description = i18n("KDE Connect URL handler");
|
||||||
|
|
Loading…
Reference in a new issue