nheko/src
Nicolas Werner cd21ff6993
Horrific hack to hide menu entries when invisible
Workaround for https://bugreports.qt.io/browse/QTBUG-54767 or
https://bugreports.qt.io/browse/QTBUG-130996.

This is probably the worst code I have written in a while, but basically
we add a value interceptor to filter out any invisible menu entry. This
is pretty dangerous because one false step crashes the whole menu. Menu
entries are actually Cpp owned and need to be manually deleted unless
they are removed via removeItem. Care needs to be taken to not mess up
the contentData list.

I expect this to break soon.
2025-01-06 22:04:48 +01:00
..
dbus Make a few headers forward declarations 2024-03-16 11:50:39 +01:00
dock Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
emoji Remove manual menu bar mangling on macos 2024-09-25 12:11:01 +02:00
encryption Fixed build against fmt 11. 2024-07-16 12:41:30 +02:00
notifications Allow loading image only after explicit interactions 2024-08-21 00:29:11 +02:00
timeline Bump clazy version 2025-01-05 16:34:44 +01:00
ui Horrific hack to hide menu entries when invisible 2025-01-06 22:04:48 +01:00
voip Fix OpenGL video sinkchain crash 2024-05-17 14:55:33 -07:00
AliasEditModel.cpp Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
AliasEditModel.h Speed up compilation a bit 2023-10-31 13:04:39 +01:00
AvatarProvider.cpp Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
AvatarProvider.h Speed up compilation a bit 2023-10-31 13:04:39 +01:00
BlurhashProvider.cpp Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
BlurhashProvider.h Get rid of year in license headers 2023-02-21 23:48:49 +01:00
Cache.cpp Break up large key requests into smaller ones 2025-01-05 15:32:25 +01:00
Cache.h Cleanup headers a bit more 2023-10-31 18:47:58 +01:00
Cache_p.h Move more templates out of the cache private header 2024-10-08 20:18:47 +02:00
CacheCryptoStructs.cpp Make a few headers forward declarations 2024-03-16 11:50:39 +01:00
CacheCryptoStructs.h Make a few headers forward declarations 2024-03-16 11:50:39 +01:00
CacheStructs.h Spaces are now bold 2023-11-01 21:44:21 +01:00
ChatPage.cpp Fix marking newly created rooms as DM automatically 2024-06-04 00:37:23 +02:00
ChatPage.h Fix trailing whitespace 2023-11-01 20:16:20 +01:00
Clipboard.cpp Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
Clipboard.h Remove final which breaks type registration 2023-07-16 20:32:19 +02:00
ColorImageProvider.cpp Get rid of year in license headers 2023-02-21 23:48:49 +01:00
ColorImageProvider.h Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
CombinedImagePackModel.cpp Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
CombinedImagePackModel.h Make default completer complete custom emoji 2023-05-25 21:53:23 +02:00
CommandCompleter.cpp Fix ordering of switch statement 2024-03-01 19:47:33 -05:00
CommandCompleter.h Add a command to gradually glitch text in a message 2024-02-27 13:17:20 -05:00
CompletionModelRoles.h Get rid of year in license headers 2023-02-21 23:48:49 +01:00
CompletionProxyModel.cpp Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
CompletionProxyModel.h Replace search vector with span 2023-05-20 00:57:51 +02:00
Config.h Allow for # in fragments because some clients send matrix.to links like that 2023-03-31 01:29:18 +02:00
EventAccessors.cpp Add support for intentional mentions 2024-03-08 18:45:18 +01:00
EventAccessors.h Make a few headers forward declarations 2024-03-16 11:50:39 +01:00
FallbackAuth.cpp refactor: replace QString constructors with QStringLiteral 2024-04-26 13:34:51 -07:00
FallbackAuth.h QML the fallback auth dialog 2023-07-14 13:16:43 -04:00
GridImagePackModel.cpp fix naming issues with emoji, edit how codegen works 2024-05-08 18:32:09 -04:00
GridImagePackModel.h Make emoji picker use the grid view 2023-05-25 19:07:13 +02:00
ImagePackListModel.cpp Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
ImagePackListModel.h Properly register image pack types 2023-06-19 19:55:14 +02:00
InviteesModel.cpp Make a few headers forward declarations 2024-03-16 11:50:39 +01:00
InviteesModel.h Make a few headers forward declarations 2024-03-16 11:50:39 +01:00
JdenticonProvider.cpp Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
JdenticonProvider.h Bump clazy version 2025-01-05 16:34:44 +01:00
Logging.cpp Speed up compilation a bit 2023-10-31 13:04:39 +01:00
Logging.h Speed up compilation a bit 2023-10-31 13:04:39 +01:00
LoginPage.cpp Update changelog 2024-06-10 02:16:20 +02:00
LoginPage.h Fix login and registration page registration 2023-06-19 20:59:35 +02:00
main.cpp Remove manual menu bar mangling on macos 2024-09-25 12:11:01 +02:00
MainWindow.cpp Bump clazy version 2025-01-05 16:34:44 +01:00
MainWindow.h Use dynamic properties for NhekoFixupPaletteEventFilter 2024-01-08 17:22:46 +08:00
MatrixClient.cpp Disable http3 support by default and warn if users enable it 2024-10-08 23:49:29 +02:00
MatrixClient.h A few more small speedups 2023-10-31 13:04:39 +01:00
MemberList.cpp Make a few headers forward declarations 2024-03-16 11:50:39 +01:00
MemberList.h Fix UserSettingsModel and Communities singleton instantiation 2023-06-19 20:30:27 +02:00
MxcImageProvider.cpp Bump clazy version 2025-01-05 16:34:44 +01:00
MxcImageProvider.h Make a few headers forward declarations 2024-03-16 11:50:39 +01:00
PowerlevelsEditModels.cpp Fix "redacts" power level editing 2024-12-18 01:26:33 +01:00
PowerlevelsEditModels.h Fix "redacts" power level editing 2024-12-18 01:26:33 +01:00
ReadReceiptsModel.cpp Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
ReadReceiptsModel.h Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
ReCaptcha.cpp refactor: replace QString constructors with QStringLiteral 2024-04-26 13:34:51 -07:00
ReCaptcha.h Port the reCAPTCHA dialog to QML 2023-07-06 08:35:37 -04:00
RegisterPage.cpp Fixed build against fmt 11. 2024-07-16 12:41:30 +02:00
RegisterPage.h Make a few headers forward declarations 2024-03-16 11:50:39 +01:00
RoomDirectoryModel.cpp Make a few headers forward declarations 2024-03-16 11:50:39 +01:00
RoomDirectoryModel.h Move to automatic type registration 2023-06-19 01:38:40 +02:00
RoomsModel.cpp Spaces are now bold 2023-11-01 21:44:21 +01:00
RoomsModel.h Spaces are now bold 2023-11-01 21:44:21 +01:00
SingleImagePackModel.cpp Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
SingleImagePackModel.h Factor out the logic to delete an ImagePack 2023-12-16 15:48:06 +01:00
SSOHandler.cpp Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
SSOHandler.h Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
TrayIcon.cpp Add profile name to tooltip & fix message count 2024-10-13 20:55:58 +08:00
TrayIcon.h Fix tray icon badge count not getting updated since 838b091acd 2024-06-20 21:35:55 +02:00
UserDirectoryModel.cpp Include moc files for a tiny speedup on incremental builds 2024-03-16 01:34:23 +01:00
UserDirectoryModel.h Move to automatic type registration 2023-06-19 01:38:40 +02:00
UserSettingsPage.cpp Allow loading image only after explicit interactions 2024-08-21 00:29:11 +02:00
UserSettingsPage.h Allow loading image only after explicit interactions 2024-08-21 00:29:11 +02:00
UsersModel.cpp Skip users we don't share a room with in invite dialog 2024-06-20 21:56:12 +02:00
UsersModel.h Get rid of year in license headers 2023-02-21 23:48:49 +01:00
Utils.cpp Get rid of reply fallback in text messages since MSC2781 is merged 2024-11-17 20:17:39 +01:00
Utils.h Get rid of reply fallback in text messages since MSC2781 is merged 2024-11-17 20:17:39 +01:00