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

6278 Commits

Author SHA1 Message Date
noavarice
3ae1e2a25b
refactor: simplified applMarkdown() 2017-11-03 21:00:10 +03:00
noavarice
de108ce834
refactor: allow newline|space to appear after multiline code seq
Also added tests
2017-11-03 21:00:09 +03:00
noavarice
acff6e0450
test: removed debug messages 2017-11-03 21:00:09 +03:00
noavarice
3faa0ecaad
test: added test for multiline code 2017-11-03 21:00:09 +03:00
noavarice
e80a2bcc69
test: added tests for IPv6 format 2017-11-03 21:00:09 +03:00
noavarice
5a569ea467
test: re-made test for URL highlighting
Also one test was removed. Answering sudden6's question, this test will
not pass after merging current pull request (if it will)
2017-11-03 21:00:09 +03:00
noavarice
40c4f431dd
refactor: removed unnecessary functions and test depending on them 2017-11-03 21:00:09 +03:00
noavarice
d302e261d4
test: updated tests for text formatting
Updated test data, changed additional functions and reimplemented test
slots
2017-11-03 21:00:09 +03:00
noavarice
6ffe4cd8d8
fix: URL patterns based on RFC 3986
Also added const's and changed way of REGEX_TO_WRAPPER' initialization
2017-11-03 21:00:09 +03:00
noavarice
7b74cc5019
refactor: added separate regex for single slash and minor change
Also added lazy evaluator operator for single, double sign regex
and regex for multiline code for performance reason. Added missing
QStringLiteral
2017-11-03 21:00:08 +03:00
noavarice
d48a479a39
refactor: applyMarkdown() function logic is more rigorous
Brief list of changes:
  - changed way of getting count of formatting symbols for captured
    string: patternSignsCount() function replaced with constant index
    which points to regex group that captures formatting symbols.
    Regexes updated accordingly;
  - updated docs for applyMarkdown() function;
  - applyMarkdown() function refactored:
    * changed var names;
    * logic is more strict: get captured string -> crop formatting symbols
      if necessary -> wrap captured string into HTML and replace in result.
2017-11-03 21:00:08 +03:00
noavarice
5e5352c268
refactor: changed markdown regexes and related constants
Brief list of changes:
  - removed several headers;
  - added single array of pairs for direct mapping regexes to HTML
    wrapper strings;
  - COMMON_PATTERN splitted into two regexes;
  - wrapper for hrefs is a single constant.
2017-11-03 21:00:08 +03:00
noavarice
a9eca8e626
refactor: removed TextFormatter instantiations from tests 2017-11-03 21:00:08 +03:00
noavarice
1ac21c07db
refactor: replace TextFormatter class with function
Brief list of changes:
  - removed TextFormatter class and its unnecessary instantiation;
  - added single method for applying markdown.
2017-11-03 21:00:08 +03:00
noavarice
e9209b06f9
refactor: independent URL highlighting
Brief list of changes:
  - removed workarounds while applying markdown;
  - URL highlighting now is independent for markdown support;
  - URL patterns reverted to the state they were before.
2017-11-03 21:00:01 +03:00
sudden6
b9daf5b312
Merge pull request #4786
Maxim Biro (1):
      fix(travis): make Windows cross-compilation caching work
2017-11-03 13:39:29 +01:00
sudden6
39047f2ebd
Merge pull request #4784
anthony.bilinski (1):
      fix(call): fix bugs introduced from ToxCall refactor
2017-11-03 13:38:39 +01:00
anthony.bilinski
1394dd1b7f fix(call): fix bugs introduced from ToxCall refactor
-inverted call active booleans
-audio subscription leak on move assignment
-NullVideoBitrate check
-return peers list by reference so that adding audio source in GroupCallCallback is persisted
-fix output muting for friend calls
2017-11-02 13:41:44 -07:00
Maxim Biro
0966e91e31 fix(travis): make Windows cross-compilation caching work 2017-11-02 02:33:58 -04:00
Diadlo
4af90a7f97
Merge pull request #4677
anthony.bilinski (1):
      fix(logout): Synchronously call showLogin to avoid multiple deletion
2017-11-01 12:51:53 +03:00
Diadlo
d07f53f292
Merge pull request #4671
anthony.bilinski (1):
      fix(settings): Delete dynamically allocated members on destruction
2017-11-01 12:45:13 +03:00
Diadlo
e4064ba8b1
docs(toxmedata): Add docs to functions 2017-10-31 17:51:26 +03:00
Diadlo
6a18ca5243
refactor(toxmedata): Use QJsonObject to parse and build json 2017-10-31 17:51:26 +03:00
Diadlo
7c74491226
fix(test): If json string not quoted is server error 2017-10-31 17:51:26 +03:00
sudden6
967dab8700
style: run format-code.sh on the files 2017-10-31 09:32:53 +01:00
sudden6
90bf0a7e2c
refactor(toxcall): make toxcall a class with getters and setters 2017-10-31 09:32:53 +01:00
sudden6
1dce8f6468
refactor(core): rename corestructs to toxfile.cpp
It only contains this struct now.
2017-10-31 09:32:53 +01:00
sudden6
cac25b4477
refactor(core): move Status class to core.h 2017-10-31 09:32:52 +01:00
sudden6
d2adfe4ca7
refactor: fix some warnings reported with "-Wall" 2017-10-31 09:32:52 +01:00
sudden6
2a15927a16
refactor(core): remove unused declaration 2017-10-31 09:32:47 +01:00
Zetok Zalbavar
5eaf0ab133
chore(simple_make): remove code for no longer supported Debian 8 2017-10-30 14:27:33 +00:00
Zetok Zalbavar
2ce41521f2
chore(i18n): update translation files for Weblate 2017-10-29 11:36:02 +00:00
Zetok Zalbavar
641a80842e
feat(l10n): add Serbian (latin) translation to UI 2017-10-29 11:36:02 +00:00
Slobodan Terzić
66a680df87
feat(l10n): add Serbian (latin) translation using Weblate 2017-10-29 11:36:02 +00:00
Zetok Zalbavar
3c4b1f117d
feat(l10n): add Serbian translation to UI 2017-10-29 11:36:02 +00:00
Slobodan Terzić
17c0048792
feat(l10n): add Serbian translation using Weblate 2017-10-29 11:36:02 +00:00
Zetok Zalbavar
76df9a4535
feat(l10n): add Persian translation to UI 2017-10-29 11:36:01 +00:00
Navid Ivanian
f2d3beb67e
feat(l10n): add Persian translation using Weblate 2017-10-29 11:36:01 +00:00
Moo
7e80cbcaee
feat(l10n): update Lithuanian translation from Weblate 2017-10-29 11:36:01 +00:00
Jonatan Nyberg
27a58b938d
feat(l10n): update Swedish translation from Weblate 2017-10-29 11:36:01 +00:00
Johnny
9b7e23c68b
feat(l10n): update Portuguese translation from Weblate 2017-10-29 11:36:01 +00:00
anonymous
227bba8fa2
feat(l10n): update Portuguese translation from Weblate 2017-10-29 11:36:01 +00:00
Johnny
1425dff6e7
feat(l10n): update Portuguese translation from Weblate 2017-10-29 11:36:00 +00:00
anonymous
8c07a2b225
feat(l10n): update Portuguese translation from Weblate 2017-10-29 11:36:00 +00:00
Johnny
ccc5296fd3
feat(l10n): update Portuguese translation from Weblate 2017-10-29 11:36:00 +00:00
Kaur Männamaa
8710563bd6
feat(l10n): update Estonian translation from Weblate 2017-10-29 11:36:00 +00:00
Kristjan Räts
d5e484b8d9
feat(l10n): update Estonian translation from Weblate 2017-10-29 11:36:00 +00:00
Allan Nordhøy
bcdbd2caef
feat(l10n): update Norwegian (old code) translation from Weblate 2017-10-29 11:36:00 +00:00
remussatala
2d2cdd010a
feat(l10n): update Romanian translation from Weblate 2017-10-29 11:36:00 +00:00
Viktar Vauchkevich
01b9bcd9d2
feat(l10n): update Belarusian translation from Weblate 2017-10-29 11:35:59 +00:00