Commit Graph

1773 Commits

Author SHA1 Message Date
Martin Marmsoler
c836908b9e Fix bug 2023-11-12 18:19:12 +01:00
Martin Marmsoler
986cbf140e updateView() must be done before expandAll is done, otherwise the collapse counter is wrong and an assert will be triggered 2023-11-12 18:10:12 +01:00
Martin Marmsoler
d598ac21fa updateView when updating the rest 2023-11-12 17:44:04 +01:00
Martin Marmsoler
9636a11923 reset selection, because when a list item is selected and treeview is used, no restore is possible with the collapse counter we use 2023-11-12 17:43:45 +01:00
Martin Marmsoler
ad5cfe306c forgotten to return value 2023-11-12 17:42:49 +01:00
Martin Marmsoler
1f3e81ab0b Add setting for multicolumn 2023-11-12 17:42:25 +01:00
Martin Marmsoler
7bb4a7a5f0 Use QAbstractItemModel because then mConstructed is not required and we gain more control 2023-11-12 17:41:13 +01:00
Martin Marmsoler
1bad8fa305 remove mDelegateCol because it is already set to 0 in the header 2023-11-12 16:58:30 +01:00
Martin Marmsoler
d54bb20253 Use function to create actions to make it more readable 2023-11-12 16:58:07 +01:00
devnull
c416cc63cd Add sort by column. Force all columns headers to be initialized. 2023-11-12 15:48:21 +01:00
devnull
1d6d53ba00 Use columns for file name, directory, and state when files are shown as a list in TreeViews. Resolves Dense layout issue #547 2023-11-12 15:48:20 +01:00
Murmele
e7fd8da4b3
Merge pull request #657 from Murmele/translations
enable updating translations
2023-11-12 15:39:12 +01:00
Martin Marmsoler
6eb06f9dcf format also languages file 2023-11-12 14:55:30 +01:00
Martin Marmsoler
8d99b972f6 update translations 2023-11-12 14:47:43 +01:00
Martin Marmsoler
f2f19ab415 Implement setting language with the gui 2023-11-12 14:47:40 +01:00
Murmele
2394355d30
Appimage support
Merge pull request #579 from Murmele/appimage
2023-11-12 12:51:25 +01:00
Martin Marmsoler
1b74bf7357 Revert "trying to fix qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat"
This reverts commit 0c5035fc4786de4ff17c92849f3d7c04bc6da25d.
2023-11-12 11:57:21 +01:00
Martin Marmsoler
3f2d236692 Revert "add Debugging"
This reverts commit 9bcfefeb08a3347547b00f0351b66fc794c5c5cf.
2023-11-12 11:57:20 +01:00
Martin Marmsoler
f81c01fde6 use release build 2023-11-12 11:57:20 +01:00
Murmele
2326e01928 Debug build 2023-11-12 11:57:19 +01:00
Martin Marmsoler
0e6e1e4cde add Debugging 2023-11-12 11:57:19 +01:00
Martin Marmsoler
34aef5bc7f trying to fix qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat 2023-11-12 11:57:18 +01:00
Martin Marmsoler
52db196c52 cleanup 2023-11-12 11:57:18 +01:00
Martin Marmsoler
ceb597bea1 publish also appimagetool 2023-11-12 11:57:17 +01:00
Martin Marmsoler
a21cf7eeb7 do not publish linux artifacts 2023-11-12 11:57:16 +01:00
Martin Marmsoler
7b82477e32 disable updating over gui 2023-11-12 11:57:16 +01:00
Martin Marmsoler
897f65891c Reason: 2023-11-12 11:57:15 +01:00
Martin Marmsoler
0fd2d5506a instead of ignoring the .git folder at multiple places, ignore it directly when requesting the path, otherwise the settings are stored inconsistently and might lead to an infinity loop in void RecentRepositories::load() 2023-11-12 11:45:58 +01:00
Martin Marmsoler
f07f4ed2e1 add comment 2023-11-12 10:34:33 +01:00
Martin Marmsoler
8374baad73 use also as variable name mGitPath 2023-11-12 10:21:55 +01:00
Yann Salmon
9edf99fbed Update src/conf/RecentRepositories.cpp
Co-authored-by: Murmele <Murmele@users.noreply.github.com>
2023-11-12 10:21:55 +01:00
Yann Salmon
bd09d302b8 typo 2023-11-12 10:21:54 +01:00
Yann Salmon
c985a5d1ce clang-format 2023-11-12 10:21:54 +01:00
Yann Salmon
f53493a7e6 Referring repos with their git-dir instead of their work-tree.
Also sets up display routines to avoid displaying a repo as ".git".
2023-11-12 10:21:53 +01:00
Martin Marmsoler
49d994134b enable updating translations 2023-11-02 23:08:01 +01:00
Murmele
cd952a7683
Merge pull request #655 from Murmele/typo
Fix typo
2023-11-01 16:37:08 +01:00
Murmele
a0dde37606
Fix typo 2023-10-30 21:57:43 +01:00
Murmele
820c0fdb75
Merge pull request #618 from mwerle/feature/clean_build
chore: fix compiler warnings
2023-08-31 14:20:08 +02:00
Michael Werle
6cf922f313 fix: revert removing global textHeightFactorCheckBoxSize
This variable is actually required for Flatpak builds, so revert removing it. But to avoid compiler warnings, guard it with a precompiler check.
2023-08-31 20:34:04 +09:00
Michael Werle
fb9a799fd4 chore: forgot clang-format on recent changes 2023-08-31 09:43:19 +09:00
Michael Werle
6ceaa401e2 question: CommitList - correct variable to use?
The lambda captures `model`, but in the code, `mModel` is used.  Either the capture is superfluous, or the usage is incorrect.
2023-08-31 09:43:18 +09:00
Michael Werle
fd6efb474d chore: fix more warnings.
Temporarily enabled `-Wall` and fixed more warnings, but there are several uninitialized variables usages which may require review by the code author in order to ensure the refactor is correct so we leave these additional warnings disabled for now.

Fixed:
* removed unused lambda captures
* removed unused variables
* fixed sign comparisons between variables
2023-08-31 09:43:18 +09:00
Michael Werle
39539746e5 chore(compiler warnings): replace -Wswitch-enum with -Wswitch and fix remaining issues.
Moved the `throw` statements introduced in an earlier commit to after the `switch` statement and removed the `default` which could mask an unhandled case.

Changed some situations where every enum item was listed, but fell through to a default action by replacing the explicitly enumerated items with a `default`. This was primarily where the enum was defined in an external library.
2023-08-31 09:43:17 +09:00
Martin Marmsoler
98eb73bc15 enable -Werror=switch-enum 2023-08-31 09:43:17 +09:00
Michael Werle
ea56be203f doc: update README - contributing
Added a note to the `Contributing` section to invoke `cl-format.sh` and
to run the tests prior to creating any PR.
2023-08-31 09:43:16 +09:00
Michael Werle
16276638df build: add configuration for pre-commit hook
Adding a configuration to invoke clang-format v13 on all modified files
as part of the commit process, and a new script file `setup-env.sh` to
manage installing the pre-commit hook.

The hook is installed using a local python venv to ensure the correct
version of clang-format is used. This approach also enables the hook to
be installed on any platform which supports python although the setup
script is limited to platforms which support bash.
2023-08-31 09:43:16 +09:00
Michael Werle
d729e630c3 chore: revert formatting changes of Setting.cpp
We used v14 of clang-format in commit 2dfb5a483e2a3518cd0bb40f39a05915253d88b6 which introduced unwanted changes. Revert to the formatting enforced by v13 of clang-format.
2023-08-31 09:43:15 +09:00
Micha WERLE
3ffdbac1da chore: clang-format recently modified files. 2023-08-31 09:43:14 +09:00
Micha WERLE
97accfa49b refactor: re-add support compiling with QT < 5.14
The refactor to remove deprecated symbols also broke compatibility with versions of QT prior to QT5.14.  This commit adds back support for earlier versions of QT. Mostly this is via the new "qtsupport.h" header file, but for supporting the changed `QSet` constructor we had to put the changes into each source file. This is, of course, not optimal.
2023-08-31 09:43:14 +09:00
Micha WERLE
e21bea8d15 chore: fix compiler warnings
* add default to switch statements throwing an exception on unhandled
  case. This removes `control reaches end of non-void function` in many
  functions.
* fix QT5.14 deprecations, which will also make it easier to move to QT6
  - fix QSet initialization
  - rename `endl` -> `Qt::endl`
  - rename `QString::SkipEmptyParts` -> `Qt::SkipEmptyParts`
  - and more...
* Scintilla editor 
  - add missing `override`
  - replace deprecated functions
* Settings
  - fix deprecated QDir assignment
  - code-style: replace assignment with initializers (to match QDir in this file)
2023-08-31 09:43:13 +09:00