Enable high DPI scaling

This commit is contained in:
miruka 2019-12-04 11:49:20 -04:00
parent c3dfb523b6
commit 2fe8c80aa5
2 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@
- Replies
- Messages editing and redaction
- Code highlighting
- Adapt shortcuts flicking speed to font size and DPI
- Adapt shortcuts flicking speed to font size
- EditAccount page:
- Device settings
@ -131,8 +131,6 @@
- https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#creating-a-custom-style
- icons.preferredPack: accept multiple values
- Find icon packs in user data dir
- Correctly implement uiScale/fontScale + ctrl+-= keys
- See `QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling)`
- See [Text.fontSizeMode](https://doc.qt.io/qt-5/qml-qtquick-text.html#fontSizeMode-prop)
- Way to round avatar corners to allow box radius
- If avatar is set, name color from average color?

View File

@ -17,6 +17,8 @@ int main(int argc, char *argv[]) {
QApplication::setApplicationName("harmonyqml");
QApplication::setApplicationDisplayName("HarmonyQML");
QApplication::setApplicationVersion("0.2.3");
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QQmlEngine engine;
QQmlContext *objectContext = new QQmlContext(engine.rootContext());