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

2963 Commits

Author SHA1 Message Date
Diadlo
8e93af7fca
refactor: Add copy and move assignment operator to toxid and toxpk
Add assignment operator to classes which has copy constructor
2017-06-12 13:46:42 +03:00
Diadlo
365d703e8a
perf: Pass std::function by reference 2017-06-12 13:46:38 +03:00
Diadlo
7895bcdaa0
refactor: Remove useless check
uint32_t always greater of equal 0
2017-06-12 12:42:54 +03:00
Diadlo
d90a60bdf7
revert: "fix: Replace hardcored roaming path on QStandartPath"
Fix #4449
This reverts commit f616ff36b6.
2017-06-10 09:55:29 +03:00
sudden6
98a01dfefc
Merge pull request #4440
ezavod (1):
      fix(ui): add date message before info messages
2017-06-04 23:52:13 +02:00
Diadlo
f616ff36b6
fix: Replace hardcored roaming path on QStandartPath
Fix #4436

In most system user can change AppData location, so hardcored path can
lead to the wrong directory.
2017-06-04 23:09:40 +03:00
ezavod
ed45359863
fix(ui): add date message before info messages
Fixes #4388.
Separated date message in its own function.
Also added date message before info messages like it is already done with normal chat messages.
2017-06-03 18:12:59 +02:00
Diadlo
331a8f1006
refactor: Split 'onChatrootWidgetClicked' on 2 methods
onChatrootWidgetClicked was used for 2 different actions.
Now it's splitted on 'activate' and 'openNewDialog'
2017-06-02 18:49:08 +03:00
Diadlo
4d15aed53f
fix: Fix freez on circle removing
Fix #4419
2017-06-02 18:48:09 +03:00
sudden6
dd60edb3d7
Merge pull request #4432
ezavod (1):
      refactor(ui): set icon in dialog constructor
2017-06-01 21:13:52 +02:00
sudden6
a3b234e6dd
chore(formatting): run clang-format 2017-06-01 09:50:59 +02:00
sudden6
a1181e10f2
chore(formatting): disable clang-format for certain code sections 2017-06-01 09:49:32 +02:00
ezavod
b518aa8488
refactor(ui): set icon in dialog constructor
Fixes #4430.
Moved `setWindowIcon` to dialog constructor and removed all other occurrences.
2017-05-31 18:42:08 +02:00
sudden6
d87f222c5c
Merge pull request #4427
Zatsepin Nikita (1):
      fix(chatform): add space for current copy link
2017-05-31 13:50:03 +02:00
sudden6
46c848c07f
Merge pull request #4424
ezavod (1):
      fix(ui): do not save splitter state in multiple windows mode
2017-05-30 12:55:01 +02:00
Zatsepin Nikita
41a781d3f8 fix(chatform): add space for current copy link 2017-05-29 00:14:23 +03:00
ezavod
7e5387cad2
fix(ui): do not save splitter state in multiple windows mode
In multiple windows mode there are no two widgets that are separated by the splitter, there is just one widget.
This changes the splitter state without the users intention.
2017-05-27 17:12:34 +02:00
ezavod
6b767e4765
fix(ui): Set Qt::Window flag in multi windows mode
This sets the flag to `Qt::Window` for open dialogs in multi windows mode.
Commit changes the appearance of non-chat windows (Settings, Add Friend, ...).
2017-05-26 16:25:02 +02:00
Diadlo
65b1463933
refactor(core): Move setAvatar to profile from core 2017-05-24 19:43:47 +03:00
Diadlo
4664c6249a
refactor(core): Remove unused Core::reset method 2017-05-24 19:43:47 +03:00
Diadlo
c2f82f7808
fix(IPC): Add update profileId in to IPC
Fix #4384
2017-05-24 19:41:54 +03:00
sudden6
54a269e8c4
Merge pull request #4407
ezavod (1):
      fix(ui): switch to settings after multiple windows mode
2017-05-17 23:05:35 +02:00
sudden6
9428092a3d
Merge pull request #4404
Mario Preksavec (1):
      fix: gcc-7 build
2017-05-14 23:36:18 +02:00
Mario Preksavec
246e23abf3 fix: gcc-7 build 2017-05-14 20:38:02 +02:00
ezavod
0c98f6a548
fix(ui): switch to settings after multiple windows mode
Switch back to settings after disabling multiple windows mode instead of switch to add friend page.
2017-05-14 20:36:18 +02:00
sudden6
50768abbab
Merge pull request #4394
Yuri (1):
      fix(message size): Replaced TOX_MAX_*_LENGTH with API calls.
2017-05-14 12:53:41 +02:00
sudden6
afeca313ba
Merge pull request #4389
ezavod (1):
      fix(ui): restore splitter state
2017-05-14 12:51:52 +02:00
sudden6
9aca348db9
Merge pull request #4391
Łukasz Żarnowiecki (1):
      fix(settings): compute toxcore version in runtime
2017-05-14 12:48:20 +02:00
Maxim Biro
4e5b191553 fix(core): use correct byte representation when bootstrapping
Revert a bug introduced in d126b18d76
where qTox calls tox_bootstrap() and tox_add_relay() with an invalid
argument, which results in qTox not connecting to the bootstrap nodes
from its list of bootsrap nodes and therefore failing to connect to the
Tox DHT network in the case when that list is the only source of nodes
to connect to. The invalid argument is node's public key, which is
non-nullable but is passed a null due to invalid ToxPk object being
constructed. ToxPk's constructor expects the QByteArray argument to be
the byte representation of a public key, but a textual representation
is passed to it instead, which creats an invalid ToxPk that resolves to
null when queried for public key's bytes for calls to  tox_bootstrap()
and tox_add_relay().

Fixes #4385
2017-05-11 17:19:28 -04:00
Yuri
3963d3c150 fix(message size): Replaced TOX_MAX_*_LENGTH with API calls.
It is good for flexibility to have fewer hardcoded values.
2017-05-11 09:24:54 -07:00
Łukasz Żarnowiecki
2d0a4e794d fix(settings): compute toxcore version in runtime
Past this change toxcore version was set during compilation.  This
caused a problem when you changed version of toxcore while qTox would
still display its old.  This behaviour was misleading.
2017-05-11 14:32:56 +02:00
ezavod
9d94cd0c50
fix(ui): restore splitter state
Fixes #4387 and #2378.

This restores the state of the splitter correctly from settings in
multiple window mode and if this mode is quited.
2017-05-11 13:05:16 +02:00
Jerome Pinguet
71a838b53e
fix(profile): set maxLength on userName QLineEdit
Set maxLength of userName QLineEdit to TOX_MAX_NAME_LENGTH
Fixes #4335
2017-05-09 07:28:31 +02:00
Diadlo
a913f150e1
Merge pull request #4381
Yuri (1):
      fix(macro): Fixed clang warning about USING_V4L
2017-05-08 23:40:48 +03:00
Diadlo
eacdafff5f
refactor(group): Changed Group flags types to bool 2017-05-08 22:39:00 +03:00
Diadlo
8634e26694
refactor: Methods renamed
existsFriendWidget -> friendWidgetExists
existsGroupWidget -> groupWidgetExists
2017-05-08 22:39:00 +03:00
Diadlo
4afd13839a
refactor(toxuri): Add using GUI to show warning 2017-05-08 22:36:13 +03:00
Diadlo
b126d21922
refactor(core): Merge friendAdded and friendshipChanged 2017-05-08 22:12:14 +03:00
Diadlo
49e9eb8de2
refactor(core): Move saving request to history to Profile 2017-05-08 22:12:14 +03:00
Diadlo
b25f5b5ed6
fix(core): Add action message with friend request text 2017-05-08 22:12:14 +03:00
Diadlo
d77cb084d6
refactor: Remove unused MicFeedback widget 2017-05-08 22:11:41 +03:00
Yuri
dd59f5ee90 fix(macro): Fixed clang warning about USING_V4L
Clang produced this warning:
"macro expansion producing 'defined' has undefined behavior"
2017-05-08 09:28:29 -07:00
Diadlo
7e3ad7ba87
refactor(chatform): Remove Audio dependencies from ChatForm 2017-05-08 14:12:45 +03:00
Diadlo
695abadd7c
refactor(chatform): Remove Audio::play usage from ChatForm 2017-05-08 14:12:45 +03:00
sudden6
28c2298ad9
feat(audio): split the audio interface from the backend library
This paves the way to support multiple audio backends
2017-05-08 10:37:05 +02:00
sudden6
13029e3047
fix(groupinvite): prevent multiple groupinvites to the same group from showing up
fix #2305
2017-05-07 17:08:02 +02:00
sudden6
c41f533818
Merge pull request #4340
ezavod (1):
      fix(settings): changing language sets title to "Add Friend"
2017-05-07 16:08:06 +02:00
sudden6
407413c65b
fix(core): add missing nullptr check
fix #4324
2017-05-07 01:03:35 +02:00
sudden6
6a6e30d639
fix(settings): remove legacy code 2017-05-06 15:21:37 +02:00
Diadlo
5d117e6af8
refactor: Remove getCompactLayout from GenericChatroomWidget 2017-05-04 20:31:56 +03:00