Commit Graph

248 Commits

Author SHA1 Message Date
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
ts-korhonen
989926cb7f qt: Disable processing of alt-f4 in windows.
Prevents the alt-f4 from quiting 86Box.
2022-03-10 23:14:13 +02:00
Cacodemon345
ee69b022fc qt: OpenGL ES 3.0 support 2022-03-01 13:31:19 +06:00
ts-korhonen
9af1d0cc5f Revert "qt: Disable OpenGL 3.0 renderer for macOS."
This reverts commit d3b00ff27b.
2022-02-28 08:43:14 +02:00
ts-korhonen
d3b00ff27b qt: Disable OpenGL 3.0 renderer for macOS.
Until it's figured out, macOS has dummy implementation to keep it
building.
2022-02-27 21:57:14 +02:00
ts-korhonen
d2a9389ce7 qt: Initial OpenGL 3.0 renderer implementation 2022-02-27 14:56:51 +02:00
Jasmine Iwanek
4674756664 More newline and whitespace cleanups 2022-02-20 16:26:40 -05:00
Cacodemon345
be3501cfe1 qt: Avoid crashes on X11 at exit 2022-02-17 11:45:42 +06:00
RichardG867
3323844e74 Fix URL hardcoding in the Qt UI 2022-02-15 20:44:13 -03:00
Cacodemon345
c08d864821 qt: Fix VNC keyboard input 2022-02-15 21:06:26 +06:00
Cacodemon345
0d31bb0cc6 qt: X11 Xinput2 mouse motion backend 2022-02-15 02:34:13 +06:00
Alexander Babikov
93ac1b7b52 Unify the naming of Page Up and Page Down keys 2022-02-13 21:00:41 +05:00
Alexander Babikov
e0593523f2 Make the "PAUSED" toolbar string translatable 2022-02-13 21:00:40 +05:00
Cacodemon345
346597a9a9 qt: Fix toolbar text when paused 2022-02-13 00:36:47 +06:00
ts-korhonen
764422f2c0 qt: Set AppUserModelID so 86Box groups with 86BoxManager in task bar 2022-02-12 17:54:39 +02:00
ts-korhonen
7e0596558a qt: Unify VM manager requested shutdown behavior with Win32.
Add implementation for -N commandline switch.
Save nvr on close.
2022-02-12 17:31:28 +02:00
Cacodemon345
4de19361bf qt: Properly set saved window size 2022-02-11 15:40:07 +06:00
Cacodemon345
15bc29aef8 qt: Resize code cleanup 2022-02-11 00:53:02 +06:00
Cacodemon345
f75c1b8a00 qt: Round resize width and height 2022-02-10 22:32:17 +06:00
Cacodemon345
263c1b7ec7 Fix compile error 2022-02-10 20:21:00 +06:00
Cacodemon345
6619bd5932 qt: Fix quote character in VM name on Windows 2022-02-10 16:55:38 +06:00
Cacodemon345
775dad5fa3 qt: Use QDesktopWidget for screen retrival 2022-02-10 15:30:39 +06:00
Cacodemon345
3aea1650fa qt: Fix toolbar size on Windows 2022-02-10 03:34:10 +06:00
Cacodemon345
30af69bfe9 qt: Fix toolbar hiding menu appearing on KDE when right-clicked on an empty space of the main menu bar 2022-02-10 00:50:37 +06:00
Cacodemon345
de0a603916 qt: Status bar and window fixes
* Fix remember window option
* Status bar pixmaps are now scaled when building with Qt 5
2022-02-09 16:45:57 +06:00
Cacodemon345
3f1d638a46 qt: Scale toolbar/statusbar icons only on Windows 2022-02-09 01:37:43 +06:00
Cacodemon345
accd4ca398 qt: Scale statusbar icons based on DPI 2022-02-09 01:30:02 +06:00
Cacodemon345
cbd7ae90d7 qt: Scale icons based on screen DPI 2022-02-09 00:47:05 +06:00
Cacodemon345
0fa87edebb Fix missing semicolons 2022-02-07 20:31:56 +06:00
Cacodemon345
7470c7015a Don't add duplicate separator when minitrace is enabled 2022-02-07 15:39:14 +06:00
Cacodemon345
7451e245ea Copyright header fixes 2022-02-07 15:35:15 +06:00
Cacodemon345
5bdc87569c Merge branch 'newqt' of ssh://github.com/Cacodemon345/86box into newqt 2022-02-07 15:00:34 +06:00
Cacodemon345
a637f61d4f Add missing copyright notices 2022-02-07 15:00:02 +06:00
Cacodemon345
ad00770410 Fix mistyped name for alpha build icon 2022-02-07 12:51:57 +06:00
Cacodemon345
88789ec95d Fix about dialog having wrong icon 2022-02-07 12:30:56 +06:00
Cacodemon345
94ce0f9613 Final round of bugfixes 2022-02-07 12:16:07 +06:00
Cacodemon345
34b9c824e0 Settings mode behaviour now identical to Win32 2022-02-06 12:45:55 +06:00
Cacodemon345
6818c03799 qt: All dialogs are now fixed 2022-02-06 01:50:30 +06:00
ts-korhonen
11e805de78 qt: Fix font only applying to main window 2022-02-04 23:01:53 +02:00