Commit graph

6 commits

Author SHA1 Message Date
Vadim Peretokin
b6738dd8c2
infrastructure: Apply clang-format to all CPP files (#8804)
#### Brief overview of PR changes/additions
Ran clang-format on all 134 CPP files in src/ using the project's
.clang-format config

#### Motivation for adding to Mudlet
Ensures consistent code formatting across the codebase.

#### Other info (issues closed, discussion etc)
None

**Test case:** Build the project and verify it compiles successfully.
2026-01-19 18:10:44 +01:00
Tim Johnson
83f279173f
fix: ensure that single clicks select without activating items (#7028)
<!-- Keep the title short & concise so anyone non-technical can
understand it,
     the title appears in PTB changelogs -->
#### Brief overview of PR changes/additions
Declare that single clicks should select but not not activate items in
the editor list.

#### Motivation for adding to Mudlet
#6829 made things feel broken on Linux using KDE specifically using the
single-click to activate item mode.

There is `QStyle::SH_ItemView_ActivateItemOnSingleClick` which is taken
from system but application can override it instead. For most setups it
gets 0, and for some setups it gets 1. This change should make it do 0
regardless.

Most should see absolutely no change with this.

The odd setups I'm aware of are that of [eternaleye with unknown
OS](https://github.com/Mudlet/Mudlet/pull/6829#issuecomment-1639403026)
and [SlySven with
FreeBSD](https://github.com/Mudlet/Mudlet/pull/7011#issuecomment-1848681252).

#### Other info (issues closed, discussion etc)
2023-12-24 12:27:16 +01:00
Stephen Lyons
5e6149edbb
Infrastructure: unify class constructor initialisers (Part 1 of 2) (#6387)
This is so they all have each member initialiser on a single line - so
that changes can be more easily seen/comprehended in Git differences (as
opposed to them all being on a long single line...!)

This is a response to the comment:
https://github.com/Mudlet/Mudlet/pull/6379#issuecomment-1287238558

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
2022-10-24 22:33:22 +01:00
Manuel Wegmann
585969df37
Add dark theme toggle to preferences (#4984) 2021-10-02 12:23:40 +02:00
Piotr
92a5238c5f
Fix alt focus disable (#4563)
Co-authored-by: Piotr Wilczynski <piotr.wilczynski@bisnode.com>
2021-01-04 14:00:41 +01:00
Piotr
92798d5aa9
Stop ALT presses from stealing focus (#4512)
* take on alt focus menu bar disable

* correct key_alt case

* add altfocusmenudisable style

* code clean up
put AltFocusMenuBarDisable object creation into Host and make it preference dependant

* make constructor explicit

* correct access to preferences of current profile

* flip condition to be correct

* revert change in TCommandLine

* revert change in dlgProfilePreferences.cpp

* remove alt focus title bar disable preference - just disable it completely

* add new files to mudlet.pro and correct order in CMakeList

* restore parenthesis

Co-authored-by: Piotr Wilczynski <piotr.wilczynski@bisnode.com>
2020-12-28 09:58:28 +01:00