1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
Commit Graph

7664 Commits

Author SHA1 Message Date
Anthony Bilinski
8a9c89f239
Merge pull request #6109
iphydf (1):
      chore(interface): avoid gnu extensions in macros
2020-05-13 00:16:05 -07:00
sudden6
a90f0762d9
refactor(cmake): change folder structure
The new folder structure will be like this:

/<module>/CMakeLists.txt
/<module>/src/file.cpp
/<module>/include/<module>/file.h
/<module>/<subdir>/<...>
2020-05-11 16:45:52 +02:00
sudden6
f3a10815ed
refactor: remove Core::getInstance from AvatarBroadcaster
During this process, make AvatarBroadcaster a non-static class.
2020-05-11 10:28:26 +02:00
sudden6
82e0852f3c
refactor: remove Core::getInstance from grouplist 2020-05-11 10:28:26 +02:00
Anthony Bilinski
365a452fb8
feat(core): use user editable bootstrap node list
Fix #5767
2020-05-10 21:40:04 -07:00
Anthony Bilinski
e5f33608c4
refactor(core): pass Paths into BootstrapNodeUpdater
In preparation of loading local bootstrap list files.
2020-05-10 21:40:04 -07:00
Anthony Bilinski
5a877d742b
refactor(core): pass bootstrap list interface to Core 2020-05-10 21:39:58 -07:00
Anthony Bilinski
5d56a3c039
refactor(paths): move Settings path functions into Paths 2020-05-10 18:03:47 -07:00
Anthony Bilinski
062ba03fb8
refactor(db): map foreign key dependency in db schema
Reorder deletion of history to avoid violating constraint.
2020-05-03 18:06:10 -07:00
Anthony Bilinski
f37f9a9492
refactor(history): enforce using PK instead of ToxId in history
We need to be lenient when reading from db because of ToxIds being saved in the
db from a bug introduced in e07d8d358f, which
used self ID rather than self Pk. Was subsequently fixed in
033f28e67e.
2020-05-03 16:22:12 -07:00
Anthony Bilinski
8abd4e47e9
refactor(style): use #pragma once rather than include guards 2020-05-03 15:51:52 -07:00
sudden6
9306e946f8
refactor: remove Core::getInstance() from ChatForm classes 2020-05-02 23:36:38 +02:00
sudden6
ea46c0caf2
refactor: remove Core::getInstance from AvForm 2020-05-02 20:08:11 +02:00
sudden6
ef18afcbf1
refactor: remove Core::getInstance from PrivacyForm 2020-05-02 20:08:11 +02:00
sudden6
2809cd91f5
refactor: remove Core::getInstance from SettingsWidget 2020-05-02 20:08:11 +02:00
sudden6
c1ec6bc649
refactor(widget): remove usage of Core::getInstance 2020-05-02 20:08:06 +02:00
Anthony Bilinski
728621f627
chore(deps): update c-toxcore to v0.2.12 2020-05-01 15:37:47 -07:00
Anthony Bilinski
6105af8279
fix(ipc): allow IPC under windows by not using std::random_device with mingw
https://en.cppreference.com/w/cpp/numeric/random/random_device
"A notable implementation where std::random_device is deterministic is old
versions of MinGW (bug 338, fixed since GCC 9.2)."

Although time is less random off Windows, we don't need a strongly random
number for this, and using time avoids having to use platform specific code.

Fix #2917
2020-04-30 19:26:18 -07:00
Anthony Bilinski
82547263f8
fix(ui): don't notify of available update if local version is newer
This could happen between the time when the release tag is pushed and the time
when the release binaries are published.

Fix #6112
2020-04-28 03:58:18 -07:00
Anthony Bilinski
abd62b638a
Merge branch 'v1.17-dev' 2020-04-28 03:57:40 -07:00
sudden6
153b9327f8
Merge pull request #6108
iphydf (1):
      chore(videosurface): Use UNIX line endings.
2020-04-28 10:03:37 +02:00
iphydf
25a7817229
chore(videosurface): Use UNIX line endings. 2020-04-27 23:11:59 +00:00
sudden6
465d826068
chore: bump version and update changelog 2020-04-26 14:06:16 +02:00
sudden6
c2c3e35fcb
chore: fix travis.yml syntax 2020-04-26 12:56:52 +02:00
sudden6
fa7a26f9f0
chore: don't put access token in variable
Regenerated the token with the `--org` option
2020-04-26 12:06:25 +02:00
sudden6
787c5ca20a
chore: update Travis CI deploy token for releases
This changes the ownership of the token to: sudden6
2020-04-25 21:53:56 -07:00
sudden6
f56943dfee
chore: release only as draft 2020-04-25 21:07:52 -07:00
Anthony Bilinski
00d08d9887
Merge branch 'v1.17-dev' 2020-04-24 18:37:27 -07:00
Anthony Bilinski
4c5783f4e5
Merge branch 'v1.17-dev' 2020-04-24 18:35:38 -07:00
Anthony Bilinski
c748b5a8d0
Merge branch 'v1.17-dev' 2020-04-24 18:35:00 -07:00
sudden6
750f67773f
Merge pull request #6107
iphydf (1):
      chore: remove extra ;
2020-04-24 13:48:04 +02:00
iphydf
8c8534f485
chore(interface): avoid gnu extensions in macros
In Standard C++, the `__VA_ARGS__` (`...`) part of variadic macros must
have at least one argument. `(void)` is a valid way to declare
parameterless functions, so we're using that here, even though it's not
idiomatic (but then again, nor is the whole macro).
2020-04-23 18:50:48 +00:00
sudden6
c549479c0d
chore(release): add changelog for v1.17.1 2020-04-23 00:40:37 -07:00
iphydf
58b4c19709
chore: remove extra ;
These are misleading in some cases, or at least not useful in others.
Most cases of Q_UNUSED in qtox don't have a ;, so this seems acceptable.
2020-04-22 23:55:51 +00:00
Anthony Bilinski
48c688bf1b
fix(ci): remove jenkins deploy step
jenkins is no longer used for release builds, and it's causing travis to fail
to deploy
2020-04-22 17:17:11 +02:00
Douglas Rhine
5f70d5d3d3
chore(flatpak): update runtime to 5.14 2020-04-22 17:17:11 +02:00
sudden6
fd8edb80d5
Merge pull request #6103
Douglas Rhine (1):
      chore(flatpak): update runtime to 5.14
2020-04-22 17:12:46 +02:00
Douglas Rhine
442850ac59
chore(flatpak): update runtime to 5.14 2020-04-20 15:08:50 +01:00
sudden6
9fffd7bca5
chore(release): add changelog for v1.17.0 2020-04-20 00:11:10 +02:00
sudden6
0f5c5482db
chore(release): update qTox version to 1.17.0 2020-04-19 23:26:57 +02:00
sudden6
9e7f2a67dc
Merge pull request #6093
iphydf (1):
      fix(osx): OSX updater dependency moved.
2020-04-19 17:04:06 +02:00
sudden6
1bd5e94edd
Merge pull request #6094
iphydf (1):
      chore: Various code cleanups.
2020-04-19 16:57:08 +02:00
iphydf
28341d8457
fix(osx): Add camera and microphone usage description.
NSCameraUsageDescription and NSMicrophoneUsageDescription are needed on
newer macOS versions (10.14+) to get access to camera/microphone. This
text is shown to the user when they need to press the "allow" button.
2020-04-18 18:24:58 -07:00
sudden6
3d89b41e99
chore: update to Qt 5.12.8 for Windows 2020-04-18 16:10:53 -07:00
Anthony Bilinski
2c59c92030
fix(db): Support opening and upgrading to any of three SQLCipher params
Fix #5952
2020-04-18 14:39:41 -07:00
bodwok
808b90f8ce style: placing files in alphabetical order 2020-04-18 20:52:53 +03:00
bodwok
03124454cd fix(ui): using a separate css file 2020-04-18 20:51:51 +03:00
sudden6
0f338f749c
Merge pull request #6092
iphydf (1):
      fix(osx): Add camera and microphone usage description.
2020-04-17 00:42:46 +02:00
iphydf
e71225268f
chore: Various code cleanups.
* Reorder class data members and/or constructor initialisers to match,
  reducing confusion about when members will be initialised.
* Remove (most) unused variables. Not removed: some global variables with
  `TODO(sudden6)` on them for using them in the future. I don't know how
  far into the future sudden6 wants to use them, so I left them there for
  now.
* Distinguish different bootstrap nodes in the logs by index in the
  bootstrap node list. Originally, we used to log the address/port of the
  node we're bootstrapping to. This was removed out of privacy concerns
  (even though the bootstrap nodes are public). This made the logs much
  less useful when debugging why the client isn't connecting. Having
  indices makes it easier to see that different nodes are being selected,
  and makes it possible to determine which node was selected.
* Explicitly cast unused results of Tox API functions to `void` when all
  we want is to know whether the function succeeds or not.
* Don't try to `#include <unistd.h>` on Windows. It does not exist on
  MSVC.
* Remove extra `;` after function definitions.
* Remove reference indirection of QJsonValueRef, since a copy of that ref
  (small pointer-like object) has to be made anyway when iterating over
  QJsonArrays.
* Make some file-scope global state `static`.
* Use `nullptr` instead of `NULL`.
* Add `#if DESKTOP_NOTIFICATIONS` around the code that implements desktop
  notifications, so it becomes a bit easier to compile everything with a
  single compiler command - useful for manually running static analysers.
* Fix an error on MSVC where `disconnect` is looked up to be a non-static
  member function and the `this` capture is missing.
* Consistently use `struct` and `class` tags for types.
* Use references in ranged-for where it reduces copies.
* Move private static data members out of the Style class and into
  file-local scope. There is no need for them to be in the class. Also
  marked them `const` where possible.
* Removed unused lambda capture.
* Ensure qTox can compile under NDEBUG with `-Wunused-variable` by
  inlining the unused variable into the `assert` that was its only
  target.
* Minor reformatting in core_test.cpp.
2020-04-16 19:07:40 +00:00
iphydf
6d99e9099f
fix(osx): OSX updater dependency moved. 2020-04-16 15:47:51 +00:00