mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-23 04:13:40 +00:00
feat: Implement Qt6 migration with aqtinstall 3.3.0
- Migrate from Qt5 to Qt6.7.3 using aqtinstall v3.3.0 - Add comprehensive Qt6 API compatibility updates - Implement responsive UI with High DPI scaling support - Add MSVC runtime library configuration for consistency - Update touch/mouse event handling for Qt6 APIs - Fix locale handling (countryToString → territoryToString) - Update string size methods (count() → size()) - Remove deprecated Qt5 high DPI attributes - Add new CopyCitronQt6Deps.cmake for Qt6 dependency management - Update CMake configuration for Qt6-only approach - Add aqt_config.ini with mirror configuration for reliable downloads Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
@@ -108,7 +108,7 @@ void PerformanceOverlay::resizeEvent(QResizeEvent* event) {
|
||||
void PerformanceOverlay::mousePressEvent(QMouseEvent* event) {
|
||||
if (event->button() == Qt::LeftButton) {
|
||||
is_dragging = true;
|
||||
drag_start_pos = event->globalPos();
|
||||
drag_start_pos = event->globalPosition().toPoint();
|
||||
widget_start_pos = this->pos();
|
||||
setCursor(Qt::ClosedHandCursor);
|
||||
}
|
||||
@@ -117,7 +117,7 @@ void PerformanceOverlay::mousePressEvent(QMouseEvent* event) {
|
||||
|
||||
void PerformanceOverlay::mouseMoveEvent(QMouseEvent* event) {
|
||||
if (is_dragging) {
|
||||
QPoint delta = event->globalPos() - drag_start_pos;
|
||||
QPoint delta = event->globalPosition().toPoint() - drag_start_pos;
|
||||
move(widget_start_pos + delta);
|
||||
}
|
||||
QWidget::mouseMoveEvent(event);
|
||||
|
||||
Reference in New Issue
Block a user