Commit Graph

26 Commits

Author SHA1 Message Date
Tobias Fella
ed033a1c5e Raise compiler settings level to 5.105 2023-08-21 13:02:14 +02:00
Carl Schwan
3e6c426397 Port Avatar usage in Settings KirigamiAddons 2023-07-22 18:41:09 +00:00
Tobias Fella
c963966f1d Enforce namespaced includes for libQuotient 2023-07-15 14:05:11 +02:00
Laurent Montel
6d45d126f8 Add explicit moc includes to sources for moc-covered headers
Add missing #pragma once + missing include

* speeds up incremental builds as changes to a header will not always
  need the full mocs_compilation.cpp for all the target's headers rebuild,
  while having a moc file sourced into a source file only adds minor
  extra costs, due to small own code and the used headers usually
  already covered by the source file, being for the same class/struct
* seems to not slow down clean builds, due to empty mocs_compilation.cpp
  resulting in those quickly processed, while the minor extra cost of the
  sourced moc files does not outweigh that in summary.
  Measured times actually improved by some percent points.
  (ideally CMake would just skip empty mocs_compilation.cpp & its object
  file one day)
* enables compiler to see all methods of a class in same compilation unit
  to do some sanity checks
* potentially more inlining in general, due to more in the compilation unit
* allows to keep using more forward declarations in the header, as with the
  moc code being sourced into the cpp file there definitions can be ensured
  and often are already for the needs of the normal class methods
2023-07-12 13:15:19 +00:00
Tobias Fella
cdf2c390ca Don't abandon job when image request is cancelled
Aborting the request causes a lot of logged messages. In theory, not stopping the job causes some overhead,
but that's negligible and the provider is on its way out anyway.
2023-04-27 11:32:46 +00:00
Tobias Fella
22448ea9ae Clean up includes 2022-10-08 19:03:49 +02:00
Nicolas Fella
589dfe0343 Re-run clang-format 2021-08-23 19:38:56 +02:00
Tobias Fella
a117eaa12b Improve License header style 2021-04-18 17:47:22 +02:00
Tobias Fella
eed14e9c14 Remove debug output in MatrixImageProvider
Cancelled requests are normal when scrolling through the timeline.
This makes the error messages useless and spam the console a lot.
2021-04-08 12:37:12 +02:00
Tobias Fella
e4ab2e565f Apply clang-format 2021-04-04 22:43:17 +02:00
Tobias Fella
0fe0f45944 Fix segfault/assert when logging out of account 2020-12-28 00:07:37 +00:00
Carl Schwan
136a8f2af8 Clang-tidy + clang-format 2020-11-27 00:26:39 +01:00
Tobias Fella
3a11ff614c Port away from qsTr/tr 2020-11-17 20:52:40 +01:00
Tobias Fella
16c64ad67f Rename Controller.connection to activeConnection 2020-11-12 12:26:08 +01:00
Tobias Fella
d8dde6e082 Add license headers to code files 2020-11-11 15:17:23 +00:00
Nicolas Fella
f5b4914d11 Simplify connection handling in image provider
Controller is a singleton now, no need to pass the connection object around
2020-11-05 21:47:56 +00:00
Nicolas Fella
ca97b8ddc3 Properly sort includes 2020-11-04 20:29:19 +01:00
Nicolas Fella
a08d017c02 Normalize includes 2020-11-04 20:25:52 +01:00
Carl Schwan
fd19e0f27d Workarround empty requestedSize in Kirigami Avatar 2020-11-04 08:43:59 +00:00
Carl Schwan
ce69506cf6 s/emit/Q_EMIT 2020-11-03 12:03:06 +01:00
Carl Schwan
bea870ad75 Apply Clang Format 2020-11-02 16:11:24 +01:00
Carl Schwan
7851cfe5cd Rebranding and add copyright headers 2020-11-02 10:10:54 +01:00
Black
68ca557389 Some fixes in layout. 2020-03-25 19:19:28 -07:00
Black
5c4d0a969d First attempt. 2020-02-12 00:37:35 -08:00
Black Hat
d25a9fb3a4 Working public room directory.
Fix "no known servers".
Rename all QMatrixClient to Quotient.
2019-12-25 19:53:50 +08:00
Black Hat
603cb33042 New attachment mechanism. Also add image from clipboard. 2019-05-19 21:58:54 +08:00