1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Compare commits

...

4 Commits

Author SHA1 Message Date
225e6da48b Use the "Round" HiDPI scaling policy (the default in Qt5) in Qt6
As of Qt 6.7.2 the rendering is completely broken and full of various render
artifacts when the default "PassThrough" policy is used and the user has
a fractional screen size like 125% set.
2024-09-21 13:38:56 +02:00
23c398caf7 Add a comment for the splitter refresh hack 2024-09-21 13:20:32 +02:00
17ef334c4c Revert "Clean up the splitter/graph tabs logic"
This reverts commit b01dcc4569.
2024-09-21 13:14:49 +02:00
b01dcc4569 Clean up the splitter/graph tabs logic 2024-09-21 11:36:51 +02:00
2 changed files with 4 additions and 0 deletions

View File

@ -1171,6 +1171,8 @@ void GUI::loadData(const Data &data)
for (int i = 0; i < _tabs.count(); i++) for (int i = 0; i < _tabs.count(); i++)
graphs.append(_tabs.at(i)->loadData(data, _map)); graphs.append(_tabs.at(i)->loadData(data, _map));
/* Refreshing the splitter is necessary to update the map viewport and
properly fit the data! */
if (updateGraphTabs()) if (updateGraphTabs())
_splitter->refresh(); _splitter->refresh();
paths = _mapView->loadData(data); paths = _mapView->loadData(data);

View File

@ -12,6 +12,8 @@ int main(int argc, char *argv[])
qRegisterMetaTypeStreamOperators<TimeZoneInfo>("TimeZoneInfo"); qRegisterMetaTypeStreamOperators<TimeZoneInfo>("TimeZoneInfo");
#else // QT6 #else // QT6
qRegisterMetaType<TimeZoneInfo>("TimeZoneInfo"); qRegisterMetaType<TimeZoneInfo>("TimeZoneInfo");
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
Qt::HighDpiScaleFactorRoundingPolicy::Round);
#endif // QT6 #endif // QT6
QSurfaceFormat fmt; QSurfaceFormat fmt;