1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-04 23:05:48 +02:00
Commit graph

25 commits

Author SHA1 Message Date
Andreas Traczyk
733a2d000c app: use the default scenegraph render backend(OpenGL) on Windows
We've had reports of missing vulkan dependencies on fresh Windows
10 installs. Until this has been investigated, we should keep the
default rendering backend at the cost of some flicker.

Change-Id: Idaab06ff80d7841231270a207cceb134f8d790b0
2022-03-15 13:48:44 -04:00
Sébastien Blin
dfae73d0d6 misc: remove code duplication and use native theme on KDE
GitLab: #603
Change-Id: I271f6d4b9b8089dc88479f1d7d98514acb3d52be
2022-02-23 13:00:49 -05:00
Andreas Traczyk
3db33c4f89 mainapplication: add URI start option
+ Refactors some window management logic in LayoutManagar.qml.
+ Refactors app start to support both a minimized start and a start
  URI. The start URI should force visibility.
+ StartMinimized now starts the application in a closed-to-tray
  state, instead of a minimized state.
+ The close-to-tray feature now saves the previous windowed state.
+ InstanceManager handles URI transfer to secondary instances.

This commit does not implement URI handling. The original
implementation supported only calls via a user infohash as the URI
parameter. A new and flexible protocol should be defined to support
multiple Jami features.

Gitlab: #655
Change-Id: I2c47028930e4e9d7ccca94d9362545df14b98160
2022-02-03 13:12:16 -05:00
Andreas Traczyk
5613a81ada main: use IPC to terminate secondary client during re-install(win)
To coordinate the MSI installer with Jami's close-to-tray feature,
a custom action was used to kill QtWebEngineProcess and Jami, prior
to the file installation step. The close-to-tray feature makes it
so the only way to terminate the app is via the systray context
menu.

This patch harnesses the IPC mechanism used by the run-guard, and
adds a command-line option('--term') used to signal the secondary
process and provoke graceful termination.

The benefits are:
- the app can save data before closing
- system tray icons aren't left dangling after updates
- QtWebEngineProcess is guaranteed to be terminated during install

Gitlab: #654
Gitlab: #543
Change-Id: I79421eeab49c9ec0826010af99a364471bb81d1a
2022-02-03 12:51:55 -05:00
Sébastien Blin
29c758a141 qtwebengine: remove no-sandbox flag
In 64720224eb, a no-sandbox flag was
added because QtWebEngine can't load fonts on recent glibc. Source:
https://bugreports.qt.io/browse/QTBUG-92969
https://bugs.chromium.org/p/chromium/issues/detail?id=1164975

Now, we use Qt 6.2, so this flag should not be necessary.
So, we can finally close #442 without any dirty workaround.

GitLab: #442
Change-Id: I52835e40d37d2397a891415fd2b1dd8dd4048b8b
2022-01-21 13:31:39 -05:00
Amin Bandali
a2a6e761a6 misc: unset QT_STYLE_OVERRIDE
* src/main.cpp (main): unset QT_STYLE_OVERRIDE.  Some distros, like
Zorin OS, set QT_STYLE_OVERRIDE to force a particular Qt style.
This has been fine with Qt5 even when using our own Qt package
which may not have that style/theme available.  However, with Qt6,
attempting to override to a nonexistent style seems to result in the
main window simply not showing.  So here we unset this variable, also
because jami-qt currently has the Material style hard-coded anyway.
https://bugreports.qt.io/browse/QTBUG-99889

Change-Id: Ic261b46baf79cf36491578ff969b398b95363c94
2022-01-18 11:42:29 -05:00
Amin Bandali
db0fd56763 misc: update (and fix) copyright years to 2022
Change-Id: I8eb66c1c3cddb3bf73b6784a9876dd9dc9c12481
2022-01-06 11:24:13 -05:00
Andreas Traczyk
9ada53ace9 window: set graphics backend to vulkan for Windows
Qt on Windows defaults to Direct3D rendering backend which causes
flickering and visualy glitchy resizing.

Gitlab: #601
Change-Id: I175d6131aca234f557234a23984e46f94c7d5417
2021-12-22 14:06:14 -05:00
kkostiuk
168165a1bb UI: fix window resizing on macOS
Change-Id: Ib92cf40dafd02f1bdc55ba51bfce0744fe4d88fc
2021-12-22 13:04:24 -05:00
Ming Rui Zhang
be41f0e7a6 misc: Qt 6.2.0 initial migration
Remove unsupported QtQuick One component and it will be
added back in the following patches

Change-Id: Iad206a880096cf956a4220a81dca85a993721fbd
2021-12-21 14:21:36 -05:00
Ming Rui Zhang
e7d594b5f7 misc: use single-process mode when migrating to Qt 6.2
Change-Id: I0e02cd89039ff8573c1b8ab974d19976151b4c38
2021-08-31 14:25:25 -04:00
Sébastien Blin
85286bb874
linux: disable qmldiskcache
Seems bugguy on some distributions...

Change-Id: I985d64cc36445ce2b68fe091ad060601071a3e04
2021-08-25 14:39:39 -04:00
Ming Rui Zhang
e165855e95 misc: use single process mode for qt webEngine
1. Add --single-process
2. Rename the httpUserAgent to jami-qt

Change-Id: I6de29ee89176b453f12ce225acf926dd1b819c18
2021-07-06 14:43:14 -04:00
Sébastien Blin
64720224eb qtwebengine: fix loading fonts on recent glibc
QtWebEngine can't load fonts on recent glibc. Source:
https://bugreports.qt.io/browse/QTBUG-92969
https://bugs.chromium.org/p/chromium/issues/detail?id=1164975

I don't want to have custom patched Qt version running for Jami,
so, for now disable sandboxing to fix font loading and wait for a
fixed Qt version.

GitLab: #442
Change-Id: Ia0918b6c47dc8a9bcfed8556043b5163e4963248
2021-06-03 17:24:51 -04:00
Sébastien Blin
6c9b969351 project: misc fixups
Change-Id: I97f256873bbffd79eb08707f0a809172bca06e6b
2021-04-02 15:37:55 -04:00
Ming Rui Zhang
7951764b2e misc: remove LRC singleton
GitLab: #337

Change-Id: Ifb671d38d364714818650a8154c43a5787460039
2021-03-22 15:47:14 -05:00
Ming Rui Zhang
2a9e624007 misc: use PassThrough for HighDpiScaleFactorRoundingPolicy
Gitlab: #302
Change-Id: I3d79443b4338a27a8724600be233a2ff765427f9
2021-03-02 14:27:39 -05:00
Mingrui Zhang
d3ebc43657 dbus: handle dbus error with UI interaction
Gitlab: #160
Change-Id: Ica0aab9ba7f043c4ab56314bbd5312f75239ad51
2020-12-14 17:18:46 -05:00
ababi
4048a9d710 tests: add first samples for c++ and qml testing
- add QtQuickTest, QtTest and googletest support
- create tests folder within cmake hierarchy
- avoid using wildcards in Dockerfile

Change-Id: I81661a86757f01333538908dbc81a0bafae00ab7
2020-11-06 10:53:34 -05:00
Andreas Traczyk
f4c4d0c551 app: change QApplication to "Jami"
Change-Id: I6931f3239c4b9ca19d54272587ae8c97cf02b16b
2020-10-02 17:00:49 -04:00
Andreas Traczyk
5872d40008 chatview: allow remote-debugging-port option to be set
- also re-enables the disable-web-security flag

Change-Id: Iabbae6bd78e30be91b42ea08541cb3ab3aea4045
2020-09-29 13:25:51 -04:00
Andreas Traczyk
3b6bbe772a misc: implement update system
- re-introduce a genericized NetworkManager
- isolate update logic into a qml accessible class derived from
  NetworkManager
- fix QtWebEngineProcess missing when re-installing over existing
  version
- provide a command line option to override the base url
  for testing local and remote updates
- clean-up manual update-check UI

Gitlab: #101
Change-Id: I9c8d2badae59ec31cab12d38b8470edf2bcad401
2020-09-24 12:48:29 -04:00
Andreas Traczyk
eacf5bb458 misc: apply clang-formatting
Change-Id: I9d2ec496aa8d6cc0a41f9096ad153308c3308e8b
2020-09-10 18:00:08 -04:00
Andreas Traczyk
84dec083e2
mainview: support close to systray
- Introduces a C++/Qml common mechanic for accessing system settings
- Refactors a good chunk of application wide settings management code
- Refactors the onboarding and quit-suppression logic
- Makes a first stab at cleaning the Qml object registration
- Removes some 'ClientWrapper' use
- Fixes some file name spelling errors and inconsistencies

Gitlab: #51
Gitlab: #53
Change-Id: I3dd1085aca72a38827ec004e347bd91106be2bcb
2020-09-03 12:23:14 -04:00
Sébastien Blin
1f91576a0b
client-qml: add initial commit
Change-Id: I32bfdd2a618aa7ac6181da2697e241667b010aab
2020-08-03 13:27:42 -04:00