Commit Graph

186 Commits

Author SHA1 Message Date
Cacodemon345
548e8b360a qt: Make renderer widget resizable only once 2022-07-16 12:57:35 +06:00
Cacodemon345
6821c03d0a qt: restore fixed window size property 2022-07-13 20:39:29 +06:00
Miran Grča
f55ae27652 Merge pull request #2453 from elyosh/qtstatusbar
qt: switch to polling for status bar updating
2022-07-13 02:02:04 +02:00
Adrien Moulin
24ee676b13 qt: switch to polling for status bar updating 2022-07-13 01:04:01 +02:00
Cacodemon345
9b13df7c3d qt: Window coordinates are saved properly again 2022-07-12 17:28:05 +06:00
Cacodemon345
27e4124574 qt: Fix performance regression 2022-07-12 14:41:38 +06:00
Cacodemon345
3348b747a5 Restore code to properly restore coordinates 2022-07-11 20:52:04 +06:00
OBattler
01bbe0afcd Fixed the buttons in the hard reset dialog. 2022-07-11 03:26:55 +02:00
Jasmine Iwanek
9a3191ccec Merge pull request #2432 from Cacodemon345/multimonitor-take2-ui
Multi-monitor support
2022-07-10 20:16:35 -04:00
Cacodemon345
633075cbfa Fix Hard Reset dialog button order 2022-07-10 21:00:19 +06:00
Cacodemon345
414ab4748c Update qt_mainwindow.cpp 2022-07-10 17:59:04 +06:00
Cacodemon345
4d35a28453 Don't attempt renderer switching on hidden secondary monitors 2022-07-10 17:06:16 +06:00
Cacodemon345
cb1adeb363 Fix resizable option 2022-07-10 16:51:27 +06:00
Cacodemon345
11a75f5fd5 Merge branch 'master' into multimonitor-take2-ui 2022-07-10 11:44:58 +06:00
Cacodemon345
c0c873151b qt: Add Show non-primary monitors option 2022-07-10 11:41:02 +06:00
Cacodemon345
62fd0feba1 qt: Make fatal messageboxes have the correct icons
Fatals now exit the emulator properly
2022-07-09 13:51:12 +06:00
Cacodemon345
e287886dfb Implement multi-monitor screenshots 2022-07-07 16:09:50 +06:00
Cacodemon345
90ba53e4e8 Finish multi-monitor support 2022-07-07 14:34:59 +06:00
Cacodemon345
20d3f0971c Use atomic_bool instead of atomic_flag for doresizes
atomic_flag seems to be broken on Windows for clearing them outside the
thread they were tested and set in
2022-07-06 01:25:39 +06:00
Cacodemon345
85baf0c7fb qt: Restore Close button on monitor windows 2022-07-05 17:57:25 +06:00
Cacodemon345
a809942d4f Fix window coordinate saving and loading 2022-07-05 16:40:04 +06:00
Cacodemon345
81be6e5cb5 qt: Fix confused geometry setting statement 2022-07-05 15:32:50 +06:00
Cacodemon345
b588f163c6 Implement per-monitor window geometry settings 2022-07-05 14:09:14 +06:00
Cacodemon345
46a40a616a qt, video: Fix hard reset crashes 2022-07-05 00:21:30 +06:00
Cacodemon345
fb5ed3fffd qt: Don't resize non-existent monitors 2022-07-04 23:37:19 +06:00
Cacodemon345
e8ffc699ba qt: Implement per-monitor resizing 2022-07-04 17:54:38 +06:00
Cacodemon345
7ab71cafd3 Working multimonitor 2022-07-04 01:50:42 +06:00
Cacodemon345
8a3367ff6f Multi-monitor support (backend preparation part) 2022-07-03 01:18:23 +06:00
Cacodemon345
32b29e91ee qt: add Direct3D 9 renderer 2022-06-22 16:36:38 +06:00
Cacodemon345
c61c9f5e0a qt: Hide MCA devices item on non-MCA machines 2022-06-04 14:15:31 +06:00
Cacodemon345
f9e8520c41 qt: Add MCA device list to Tools 2022-05-23 17:29:45 +06:00
Cacodemon345
b2324e3ff3 qt: Force the renderer to exit at close time 2022-05-04 13:13:03 +06:00
Cacodemon345
5eb0e93f57 qt: Attempt fixing Windows/Super key input 2022-04-26 16:56:44 +06:00
Cacodemon345
6f968e3fd7 qt: Fix compiling with Vulkan support unavailable 2022-04-25 16:09:37 +06:00
Cacodemon345
d5df99fbd8 Merge remote-tracking branch 'upstream/master' into newqt2 2022-04-24 00:58:08 +06:00
Cacodemon345
6edc2a4c2b Merge remote-tracking branch 'upstream/master' into newqt2 2022-04-24 00:56:11 +06:00
RichardG867
bfde3e4867 Qt: Fix middle mouse button uncapture 2022-04-21 13:56:39 -03:00
Cacodemon345
314bf5ad06 Add Vulkan renderer 2022-04-21 16:32:46 +06:00
richardg867
7d6ad0d650 Selectable mouse type on Linux, part 6 2022-04-20 21:39:57 -03:00
richardg867
5810f39f4d Selectable mouse type on Linux, part 3 2022-04-20 20:55:26 -03:00
Alexander Babikov
484a082122 Make sure certain variables used only on some platforms are defined only on said platforms 2022-04-14 07:13:47 +05:00
Emily
9c6001dabb qt: Fix Qt 6 modifier key handling on macOS
Per QTBUG-69608 (https://bugreports.qt.io/browse/QTBUG-69608),
QKeyEvent::nativeVirtualKey() returns 0 on Qt 6 (and possibly some
versions of Qt 5) for keyboard modifier events. Despite being closed,
the bug doesn't appear to have been fixed, or perhaps was fixed and
then regressed again.

Detect this case and handle the events manually by keeping track of the
active modifier keys and using QKeyEvent::nativeModifiers() and the
platform-specific modifier values.

Caps Lock requires some special handling and doesn't get discrete
press/release events, at least with the Qt input system; see the code
for details. It's possible some other toggle modifiers like Scroll Lock
will need special handling along these lines too.

Fix #2211.
2022-04-08 01:46:45 +01:00
Miran Grča
f52b898add Merge pull request #2245 from Cacodemon345/newqt
qt: Get rid of resize rounding
2022-03-31 15:30:23 +02:00
Cacodemon345
e7566d6974 qt: Get rid of resize rounding 2022-03-23 16:00:36 +06:00
Miran Grča
d1898177ef Merge pull request #2243 from Cacodemon345/newqt
qt: Keyboard input now works properly when mouse is uncaptured
2022-03-21 13:25:58 +01:00
Cacodemon345
f2df8a4cce qt: Keyboard input now works properly when mouse is uncaptured 2022-03-21 15:28:43 +06:00
RichardG867
1650b0692d CMI8x38: Fix for logging status bar segfault 2022-03-17 16:31:14 -03:00
ts-korhonen
f2ec3c6201 qt: uncapture mouse when deactivated or dialog.
Uncapture mouse when application is deactivated or window is blocked
(dialog shown). Re-capture after full screen dialog.
2022-03-16 18:19:44 +02:00
Miran Grča
c1ccee6abd Merge pull request #2214 from Cacodemon345/c345/haiku
qt: Add support for Haiku
2022-03-11 20:11:50 +01:00
Cacodemon345
c1f9d35de8 qt: Add support for Haiku
* OpenAL backend is enabled by default on Haiku
* bswap include now makes use of builtins if they exist
* Use a local fgetws method for Haiku to avoid crashes
* OpenGL renderers are completely disabled on Haiku (they do not work)
* Software renderer is a widget, not a window on Haiku (fixes blank screen)
* Add option to disable System MIDI at compile time
2022-03-11 12:13:08 +06:00