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

2871 Commits

Author SHA1 Message Date
ezavod
96b2977a5f fix: set CSS font-weight of editbox always to normal
This fixes issue #4292 by setting CSS `font-weight: normal` always.
2017-03-28 10:45:27 +02:00
sudden6
6a16a2bdbc
feat(groups): add option to automatically accept groupchat invites
Allows to accept group chat invites from select contacts automatically.

fix #1197
2017-03-25 21:50:00 +01:00
sudden6
e9515f4898
fix: remove useless line that caused a warning 2017-03-23 13:36:29 +01:00
noavarice
08208e9aa5 fix: fixed wrong formatting for multiple URL's in one message
Fix #4275
I did not consider that replacing one substring with another will point
to shifting position of next URL found with regexp. That's the behavior
of Qt's "QRegularExpression" class - it takes a string into constructor
and seems to make its copy inside so changing source string does not
affect this regex object
2017-03-22 14:23:57 +03:00
Diadlo
74356abda4
docs: Add docs to ContentDialog 2017-03-21 01:38:03 +03:00
Diadlo
add8d51a29
refactor: ContentDialog refactoring 2017-03-21 01:38:03 +03:00
Diadlo
c7202c8b24
fix(widget): Add friendWidget deletation
Thanks @noavarice for help.
Fix #4254, #4229
2017-03-21 01:06:51 +03:00
sudden6
f0cec44a8c
fix: silence various warnings 2017-03-20 22:21:38 +01:00
tux3
f07daaf159
fix: Stop using deprecated avcodec_decode_video2 2017-03-20 21:10:27 +03:00
tux3
91414b4fce
fix: Remove unnecessary calls to av_frame_unref
If we immediately free it, the refcount goes to zero!
2017-03-20 21:10:27 +03:00
tux3
9674bff0cf
fix: Stop using deprecated AVStream::codec
We now use the AVCodecParameters instead, as recommended
2017-03-20 21:10:27 +03:00
sudden6
300ac12e3f
fix: silence warning by not using dynamic arrays on stack 2017-03-19 19:27:50 +01:00
DX37
0fc3911318 fix: Fix incorrect headers order
Because of incorrect order, qTox on Windows can't be compiled properly.

Fixes #4220
2017-03-18 19:36:50 +06:00
noavarice
18c3f3a217 fix: URL's are not affected by markdown
Fix #4242
Just running in a loop through all of markdown symbols in found URL's,
replacing them with their associated HTML character code before the code
formatting to avoid any chance of interception
2017-03-12 23:14:44 +03:00
Zetok Zalbavar
bfd47733c2
fix(UI): actually load bundled Unicode font as soon as possible
Hopefully this fixes an issue with ugly fonts that started happening
some time ago for Windows & FreeBSD users.
2017-03-12 12:14:25 +00:00
Diadlo
d1ec8cc989
Merge pull request #4239
ezavod (1):
      fix: iterate all blocks
2017-03-12 14:53:46 +03:00
ezavod
7a5c5a86fd fix: iterate all blocks
refactor: block iteration loop

refactor: replaced checks with chop()
2017-03-12 11:20:14 +01:00
sudden6
4e548662d7
refactor(core): remove CString 2017-03-09 11:01:43 +01:00
sudden6
25c279c320
refactor(core): replace CString with ToxString 2017-03-09 11:01:43 +01:00
sudden6
1f0467bb1b
refactor(core): add new class for easy string conversion 2017-03-09 11:01:34 +01:00
sudden6
bf0e6817af
refactor: correct indentation in filetransferwidget.cpp 2017-03-08 17:49:37 +01:00
Diadlo
ec81b07bb3
refactor(friend): Remove obsolete code from Friend class 2017-03-08 15:18:40 +03:00
Diadlo
ea50eaaef7
fix(core): Ignore online connection status
Fix #4010.

qTox use status system, where offline is one of the status, but toxcore
use two different meaning: 'connection' and 'user status'. To correct
qTox status handling we should ignore online connection status.
2017-03-08 08:55:17 +03:00
noavarice
e8ed7e1f53 fix: fixed documentation mistake 2017-03-07 15:34:52 +03:00
noavarice
3e2bfdd548 refactor: further improvement of message formatting
Brief list of changes:
-  names of some variables and constants were replaced for reading
   convenience;
-  URL-highlighting method moved to TextFormatter so URL's don't
   conflict with italic text formatting;
-  as I understand, in previous version 'file://' URL does not work
   because of bad regex. I fix this with help of wiki page that
   referenced in comment for old code. Important note: there are two
   equal 'file://' URL syntax: 'file:///...' and 'file://localhost/...'
   and the second one does NOT work in KDE but works in Gnome so that's
   not a bug
Fix #4233
2017-03-06 11:55:54 +03:00
sudden6
aabf34ebad
refactor: remove unused file 2017-03-05 12:05:41 +01:00
sudden6
23b8b84bc9
Merge pull request #4232
DX37 (1):
      revert: "fix(icons): Removed unnecessary icon preparation."
2017-03-05 11:26:41 +01:00
DX37
8174a4173d revert: "fix(icons): Removed unnecessary icon preparation."
This reverts commit fac0021a47.
2017-03-03 17:57:24 +07:00
Yuri
54fb9f73cc fix(db): Made RawDatabase::execLater executes statements asynchronously.
Currently RawDatabase::execLater sometimes executes dependent statements
synchronously.
Qt::QueuedConnection ensures they are really executed later.
2017-03-03 01:04:46 -08:00
Jimi Huotari
9322f29ef4 feat(UI): Move filetransferwidget buttons side-by-side.
This aims to prevent accidental clicks on the incorrect button in
cases where the chatlog moves at the time of the click.

Closes #2597.
2017-03-01 23:44:49 +02:00
sudden6
ffd7d0e93e
chore(font): update default font and add its license
Also add a warning message, if the font wasn't loaded.
2017-02-26 20:54:20 +01:00
Zetok Zalbavar
80f5de31b3
style: reformat current C++ codebase using clang-format 2017-02-26 11:52:45 +00:00
Diadlo
a231532bd0
fix: Add splitter restorer
Added splitter restorer, which reset splitter state if it's broken
Fix #2587
2017-02-26 03:14:57 +03:00
Nils Fenner
4b7fc5792d
refactor: use enum class 2017-02-25 22:20:04 +03:00
sudden6
de78e0dddb
Merge pull request #4120
Yuri (1):
      fix(icons): Removed unnecessary icon preparation.
2017-02-25 20:03:17 +01:00
Diadlo
1d0a49c2b7
Merge pull request #4194
noavarice (2):
      refactor: single group invite extracted into a widget
      docs: added documentation for GroupInviteForm class
2017-02-25 20:41:36 +03:00
Nils Fenner
12bcc26154
feat(settings): create ui when needed instead of show/hide
note: no change in "embedded window" mode yet, but doesn't harm either
2017-02-25 19:25:29 +03:00
noavarice
0effac2bdd fix: changed incorrect videocall button offline tooltip 2017-02-25 17:34:50 +03:00
Diadlo
bff25ce8b1
refactor: Remove FriendWidget from Friend class 2017-02-23 00:36:00 +03:00
noavarice
e68aef19f9 docs: added documentation for GroupInviteForm class 2017-02-22 23:53:59 +03:00
noavarice
adba773c6d refactor: single group invite extracted into a widget
Previously GroupInviteForm included several collections of components
which were supposed to use as a single object. Now they are replaced
with a class and all functionality related to this collections moved
there too. Also fix #3621
2017-02-22 16:19:19 +03:00
Zetok Zalbavar
43d16d9181
feat(l10n): add Chinese (Taiwan) translation to UI
Thanks to @LNDDYL for the help with what should be put in the language
name.
2017-02-21 09:24:44 +00:00
noavarice
87f219a78f refactor: message text formatting works better now
- tag intersection detected
- variables and constants' names became shorter
2017-02-19 23:53:11 +03:00
noavarice
5047a65e11 refactor: improved HTML-formatting mechanism for text messages
Added class provides text font formatting with HTML font tags
Supported stuff:
  - nested formatting;
  - several text pieces formatted with the same formatting style at the
    one message;
  - styling applies only if non-whitespace symbol follows opening
    formatting symbol and also non-whitespace symbol preceds closing
    symbol;
  - only multiline code font formatting supports new line inside of
    message text.
Also fix #3804
2017-02-19 10:06:26 +03:00
tux3
60e5375ef7
Merge pull request #4184
tux3 (1):
      fix: Friend list avatars not updating
2017-02-19 00:46:18 +01:00
tux3
ea44095c94
Merge pull request #4183
tux3 (4):
      fix: Accept IDs as tox URIs, not just ToxDNS addresses
      fix: Various IPC event handling and related bugs on startup
      fix: Don't even try to add ourselves as a friend in the Tox URI handler
      fix: msleep in toxuri processEvents loops, to avoid 100% CPU
2017-02-19 00:46:11 +01:00
tux3
20ff68c3a6
fix: Autoupdater trying to open files twice could fail 2017-02-17 17:44:54 +01:00
tux3
2d0698af95
fix: msleep in toxuri processEvents loops, to avoid 100% CPU
Fixes #1926 for realsies.
2017-02-17 17:18:58 +01:00
tux3
bfda028a2a
fix: Don't even try to add ourselves as a friend in the Tox URI handler 2017-02-17 17:18:57 +01:00
tux3
c75ee8a661
fix: Various IPC event handling and related bugs on startup
Fixes #1926 : When an IPC event was processed locally, if the window was closed before the core could start, the event handler would be forever stuck in the background waiting for the core to start. We fix this by substituting QApplication::quit() by a Nexus::quit() function and a Nexus::isRunning() function, which gives us a condition for exiting blocking processEvents() loops. We cannot simply use QApplication::quit(), because this function has no effect before the start of the event loop.

The problem was further exacerbated by the Tox URI event handler being (incorrectly) blocking. The IPC owner would block in this event handler, and the sender of the event would give up waiting and process the event itself a second time, potentially triggering the first bug. We fix the event handlers accordingly to be (mostly) non-blocking.

Also fixes a related deadlock between ~Core and ~Profile in the case of an early exit
2017-02-17 17:18:52 +01:00