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

2506 Commits

Author SHA1 Message Date
sudden6
4f493c5df7
Merge pull request #3424
Colomban Wendling (1):
      refactor(passwordedit): optimize event handler unregistration
2016-06-28 19:03:13 +02:00
Diadlo
29ab61efdf
fix(main): Closing file before removing
Fix #3440
2016-06-26 21:13:39 +03:00
Zetok Zalbavar
dc26379eeb
Merge pull request #3437
Vincas Dargis (1):
      fix(loginscreen.cpp): fix password input focus after mouse click
2016-06-25 16:20:53 +01:00
Zetok Zalbavar
6e2cca7ad1
Merge pull request #3433
Vincas Dargis (1):
      fix(chattextedit.cpp): fix drag-and-drop to be consistent across systems
2016-06-25 16:14:56 +01:00
Vincas Dargis
6e8ea15a15 fix(loginscreen.cpp): fix password input focus after mouse click
Add setFocus() call to make password input focus work after user
clicks Load button (hence losing focus) with invalid password.
Without this patch, focus only works when using Enter key to login.
2016-06-25 17:45:14 +03:00
Diadlo
504ad534e0
fix(directshow): Fixed problem with crosses initialization 2016-06-25 14:20:13 +03:00
Diadlo
c3de6238ca
feat(camerasource): Change default video mode to preferred 2016-06-25 14:20:13 +03:00
Diadlo
1c5158213d
fix(avform): Added restoring selected region 2016-06-25 14:20:13 +03:00
Diadlo
1ddc1371a0
fix(videoframe): Added correct image copy 2016-06-25 14:20:13 +03:00
Diadlo
ef641ce6d3
style(corevideosource): Small style fixes 2016-06-25 14:20:13 +03:00
Diadlo
9cfd678c26
feat(avform, screenshotgrabber): Added custom screen region selection 2016-06-25 14:20:13 +03:00
Diadlo
d781a4f762
feat(cameradevice, avform): Added ability of screen selection 2016-06-25 14:20:08 +03:00
Diadlo
fd701df101
feat(videomode): Added possible video shift 2016-06-25 14:19:46 +03:00
Diadlo
2d861ee25b
fix(avform): Took default resolution from middle of list 2016-06-25 14:19:46 +03:00
Diadlo
33729dcf4a
refactor(avform): Separeted search of preferred index in function 2016-06-25 14:19:45 +03:00
Diadlo
3f82396173
refactor(avform): Replace bestModeInds on videoMode index and video height as quality name 2016-06-25 14:19:45 +03:00
Diadlo
6f3ef0cf59
refactor(avform): Extracted functions with best mode search and combo box filling 2016-06-25 14:19:45 +03:00
Andrew Morgan
fca5f15532 fix(markdown): Remove spaces from markdown translation
Spaces were being inserted before and after markdown translated code which could potentially change intended meaning and/or presentation of the user's message. I believe these were necessary for dealing with an earlier bug but from my testing they are no longer needed.
2016-06-25 01:59:11 -07:00
Vincas Dargis
70fc247b70 fix(chattextedit.cpp): fix drag-and-drop to be consistent across systems
Add explicit setAcceptDrops(false) to allow parent widget to handle
drag-and-drops consistently across various desktop environments.

Closes: #2847
2016-06-24 20:26:45 +03:00
Eugene
684835de1b
feat(l10n): add initial Belarusian translation from weblate 2016-06-23 22:52:56 +01:00
Colomban Wendling
ebc3a60e97 refactor(passwordedit): optimize event handler unregistration
Only search the vector once, and using old enough Qt API.

Follow up to #3418.
2016-06-21 02:49:38 +02:00
Vincas Dargis
f18db4fd50 fix(passwordedit.cpp): Fix build issue with Qt 5.3
QVector<T>::removeOne() was added in Qt 5.4, and this method usage
broke build for Debian 8 whitch has Qt 5.3.2.

Add alternative implementation and comment for the future to use
removeOne() when this becomes possible.

Closes #3416
2016-06-19 19:15:09 +03:00
sudden6
fd2e5859fb
Merge pull request #3383
Colomban Wendling (10):
      fix(capslockindicator): fix altering the line edit height
      fix(capslock_x11): properly release the X display handle
      refactor(capslockindicator): encapsulate event handling
      fix(capslockindicator): also update indicator when the app gets focus
      refactor(capslockindicator): expose as a QAction to simplify API
      refactor(capslockindicator): use a single shared event handler
      refactor(capslockindicator): avoid overhead on OSX
      refactor: replace CapsLockIndicator with new PasswordEdit widget
      fix(passwordfields): use PasswordEdit widget for all password fields
      refactor(passwordedit): don't add the caps indicator at all if disabled
2016-06-19 13:49:28 +02:00
PafXUS
e852ed92f6
fix(persistence): pass by reference to const 2016-06-18 07:49:40 +03:00
Colomban Wendling
473b29b2a7 refactor(passwordedit): don't add the caps indicator at all if disabled 2016-06-18 00:45:31 +02:00
Colomban Wendling
e3d0cc0e55 fix(passwordfields): use PasswordEdit widget for all password fields
Fixes #3378.
2016-06-17 21:55:27 +02:00
Colomban Wendling
5f34a959fc refactor: replace CapsLockIndicator with new PasswordEdit widget
Introduce a new PasswordEdit widget extending QLineEdit that takes care
of all the specifics of a QLineEntry when it is used to input a
password, including echo mode and caps lock indicator.

Also optimize the event handling to only listen to global events when
it is actually needed, e.g. when a password field is actually visible.
2016-06-17 21:55:27 +02:00
Colomban Wendling
3454f96d4c refactor(capslockindicator): avoid overhead on OSX
On OSX the indicator is disabled, so avoid most of the overhead by not
listening to any events that wouldn't lead to any change anyway.
2016-06-17 21:55:27 +02:00
Colomban Wendling
61892d0c18 refactor(capslockindicator): use a single shared event handler
Optimize the implementation by using a single shared event handler,
managing the caps lock state check and propagating it appropriately to
all instances at once.
2016-06-17 21:55:27 +02:00
Colomban Wendling
6a40ca0b55 refactor(capslockindicator): expose as a QAction to simplify API 2016-06-17 21:55:27 +02:00
Colomban Wendling
2fe41071be fix(capslockindicator): also update indicator when the app gets focus
This allows to have an up-to-date indicator when the caps lock state
changed outside of the application and the user comes back to it, even
if it doesn't trigger a Show event (e.g. the window was visible all the
time).
2016-06-17 21:55:27 +02:00
Colomban Wendling
5fc67284cd refactor(capslockindicator): encapsulate event handling
Use an event filter on QCoreApplication instead of requiring the caller
to manually call updateIndicator() when the caps lock state changed.
2016-06-17 21:55:19 +02:00
Colomban Wendling
f9190734d7 fix(capslock_x11): properly release the X display handle
This fixes caps lock detection after a while, and removes the "Maximum
number of clients reached" message on stdout.
2016-06-15 18:44:12 +02:00
Colomban Wendling
a13c566736 fix(systemtrayicon): don't set an invalid and useless icon on GTK
* The initial status icon to set on GTK didn't exist (anymore?).
* GTK resources aren't compatible with Qt's, so the resource lookup
  couldn't work anyway, even if it did exist.
* The caller calls SystemTryIcon::setIcon() right after instancing it
  anyway, so there's no need for an initial icon.

This fixes a runtime critical warning from GTK as we tried to unref a
NULL icon, which is invalid.

Fixes #3154.
2016-06-14 19:52:33 +02:00
Colomban Wendling
cf4c46ff0b refactor(systemtrayicon): unify QIcon to GdkPixbuf conversion
Also simplify the memory management by using the C++ allocator and by
using the bytes directly as passed to the free callback instead of
passing it again as user data.
2016-06-14 19:50:38 +02:00
a68366
c17c3405bf fix(widget): properly open chat window
Closes #3386
2016-06-14 00:12:28 +03:00
sudden6
6173199a5b
fix(widget): rename "Activate" to "Show" 2016-06-13 16:46:42 +02:00
Colomban Wendling
653e0b5af2 fix(capslockindicator): fix altering the line edit height
Fix altering the Line Edit widget height when the indicator is on (e.g.
when caps lock is active).

To avoid messing with the style and all the complex issues that arise
from it, use an action to display the icon inside the line edit, as it
is a built-in feature that work just fine.

Fixes #3379.
2016-06-12 23:57:10 +02:00
sudden6
a851a5b18d
feat(systemtray): add "Show" action to context menu
Makes it possible for all users to get qTox back from the tray.
2016-06-12 22:29:17 +02:00
sudden6
f74ba9131c
Merge pull request #3376
Colomban Wendling (1):
      fix(video): do not list the same mode twice
2016-06-12 22:19:54 +02:00
sudden6
53953912e0
Merge pull request #3375
Colomban Wendling (1):
      feat(video): add setting for 120p very-low-res video
2016-06-12 22:18:03 +02:00
Colomban Wendling
03c3923694 fix(video): do not list the same mode twice
Do not provide more than one entry in the settings for the same actual
mode, even if it was selected for different expected resolutions.

For example, do not list 640x480 twice for both 480p and 360p if the
device doesn't have a better 360p mode, and simply skip the 360p entry.
2016-06-12 16:21:15 +02:00
sudden6
3f4a0abe6b
feat(smileys): add emojione emoji-pack and make it the default
Thanks to @ProMcTagonist who suggested to use emojis from emojione.com

Fixes #3315
2016-06-12 15:50:43 +02:00
sudden6
7ca98093a2
Merge pull request #3257
Diadlo (10):
      feat(capslock): Added caps lock checker
      feat(loginform): Added caps lock indicator to newPass
      feat(loginscreen): Created new CapsLockIndicator class
      feat(capslockindicator): Added tooltip
      fix(platform): Added checkCapsLock OSX implementation
      docs(INSTALL.md): Added libX11 in dependencies
      refactor(loginscreen, capslockindicator): Caps Lock indicator class was made independent
      fix(capslockindicator): Tooltip color was changed. Tooltip translation was added
      style(capslockindicator): Fixed code style
      fix(capslockindicator): Fix position of capslock indicator
2016-06-12 00:31:40 +02:00
Diadlo
124769017d
fix(capslockindicator): Fix position of capslock indicator 2016-06-12 01:34:02 +03:00
sudden6
5e5e27cf60
Merge pull request #3365
PafXUS (4):
      fix(widget): delete icon in destructor
      fix(systemtrayicon): delete qtIcon in destructor
      fix(profileform): set parent for validator
      fix(friendwidget): check pointer before using it
2016-06-11 20:45:38 +02:00
Colomban Wendling
6045ced3f8 feat(video): add setting for 120p very-low-res video 2016-06-11 20:16:03 +02:00
Colomban Wendling
b4df3c8b4a fix(video): fix video resolution setting
Index the filtered modes we show to the user when selecting from the
combobox, not the full list of modes actually supported by the device.

Fixes #1033.
2016-06-11 20:13:28 +02:00
Zetok Zalbavar
76239aa890
chore(l18n): update translation files for Weblate
Also add Esperanto.
2016-06-09 17:20:49 +01:00
sudden6
8589f944aa
Merge pull request #3360
Alexander Zhdanov (3):
      feat(genericchatform): add "Quote selected text" feature to chat window
      docs(user_manual_en.md): add some documentation about quotes
      docs(user_manual_en.md): fix documentation about quotes
2016-06-08 23:59:03 +02:00
sudden6
e8a4599f69
Merge pull request #3348
a68366 (1):
      fix(widget): open a chat window instead of contacts list in multi-window mode
2016-06-08 22:35:24 +02:00
PafXUS
e24f3dbc20
fix(friendwidget): check pointer before using it 2016-06-08 22:31:05 +03:00
PafXUS
93c6aa8ac0
fix(profileform): set parent for validator 2016-06-08 22:31:04 +03:00
PafXUS
f997d51b66
fix(systemtrayicon): delete qtIcon in destructor 2016-06-08 22:31:03 +03:00
PafXUS
f82f49da4d
fix(widget): delete icon in destructor 2016-06-08 22:30:51 +03:00
Diadlo
d7da2f98c0
style(capslockindicator): Fixed code style 2016-06-07 11:34:12 +03:00
Diadlo
bbe158c7d9
fix(capslockindicator): Tooltip color was changed. Tooltip translation was added 2016-06-07 11:27:58 +03:00
Diadlo
af497a9efd
refactor(loginscreen, capslockindicator): Caps Lock indicator class was made independent 2016-06-07 11:27:58 +03:00
Diadlo
35a0e1fb6f
fix(platform): Added checkCapsLock OSX implementation 2016-06-07 11:27:58 +03:00
Diadlo
c7d485f515
feat(capslockindicator): Added tooltip 2016-06-07 11:27:58 +03:00
Diadlo
fb7fcaaa8c
feat(loginscreen): Created new CapsLockIndicator class 2016-06-07 11:27:58 +03:00
Diadlo
cbe8fb8ef9
feat(loginform): Added caps lock indicator to newPass 2016-06-07 11:27:58 +03:00
Diadlo
97f95e7e91
feat(capslock): Added caps lock checker 2016-06-07 11:27:58 +03:00
Alexander Zhdanov
40a805c2fd feat(genericchatform): add "Quote selected text" feature to chat window
add "Quote selected text" feature to chat window context menu and set keyboard shortcut ALT+Q
2016-06-06 21:46:18 +03:00
Nils Fenner
792103f8b0
refactor(filter_audio): completely remove filter_audio dependency
The filter_audio API is not working for qTox/Tox and thus disabled by default via compiler switch. In current qTox UI, it is not configurable, even when this switch is enabled. According to issue #3194 the library is no longer maintained as well. I don't see any reason to keep it in qTox.
2016-06-04 22:12:27 +02:00
Zetok Zalbavar
a77afca1ec
fix: increase timer for checking offline messages timeout (again)
Should make duplicated messages even less common (#2726)
Increased ~proportionally to change in
76d8e19320
2016-06-03 18:18:34 +01:00
a68366
fdf0cbb1e1 fix(widget): open a chat window instead of contacts list in multi-window mode
Closes #3212
2016-06-03 12:01:49 +03:00
Nils Fenner
431a10f82b
feat(audio): add slider tickmarks, improving better visible orientation 2016-06-02 22:16:58 +02:00
Nils Fenner
f72baa613f
feat(audio): add real gain control of the input device
The gain can be set now in dB values, providing acceptable results for a wide range of setups.

note: also introduces const-correctness and some minor cleanup.
2016-06-02 22:16:58 +02:00
Diadlo
e23eb1c5f7
feat(settings, generalform, widget): Added setting for sound notification in busy status 2016-05-15 22:26:17 +03:00
Diadlo
e7785ab4c2
feat(widget): Disable sound notification for busy status
Fix #2893.

BREAKING CHANGE: Disabling notification sound for `busy` status.
2016-05-15 22:15:44 +03:00
sudden6
3231ca2982
Merge pull request #3305
a68366 (2):
      fix(profile): change password buttons behaviour
      refactor(profile): reorder statements
2016-05-15 13:43:05 +02:00
sudden6
e0961722bf
Merge pull request #3302
Diadlo (1):
      refactor(android): All android code is removed
2016-05-15 13:37:55 +02:00
sudden6
3830a1940c
Merge pull request #3253
initramfs (1):
      refactor(hidpi): enable HiDPI support if Qt supports it
2016-05-15 13:14:44 +02:00
Zetok Zalbavar
dbd16ae6a3
fix: correctly tab-complete nicks starting with $
Without it, nicks starting with `$` would have doubled `$`.

Continuation of #1377

Pointed out by @ProMcTagonist in #1167
2016-05-15 11:54:49 +01:00
sudden6
cd26923a24
Merge pull request #3249
Diadlo (3):
      feat(notificationscrollarea): Add ability to delete widget from traced widgets list
      refactor(contentdialog): Refactor window activate event
      fix(contentdialog, widget): Remove "new message" bar after reading message
2016-05-15 12:31:40 +02:00
sudden6
4f0ef6cd71
Merge pull request #3293
Zetok Zalbavar (1):
      fix(friendlistwidget): use nullptr instead of `0`

agilob (2):
      feat(i18n): make Markdown settings translatable
      feat(i18n): Make activity by time labels translated by locale
2016-05-15 12:22:08 +02:00
Diadlo
6ed16db5fd
refactor(android): All android code is removed
Closes #3168.
2016-05-15 02:42:20 +03:00
Diadlo
b2c1f46894
fix(contentdialog, widget): Remove "new message" bar after reading message
Fix #2247.
2016-05-15 00:53:53 +03:00
Diadlo
378d648591
refactor(contentdialog): Refactor window activate event 2016-05-15 00:50:15 +03:00
Diadlo
e3d74117ca
feat(notificationscrollarea): Add ability to delete widget from traced widgets list 2016-05-15 00:50:15 +03:00
Zetok Zalbavar
f1543144be
fix(friendlistwidget): use nullptr instead of 0
thanks to @sudden6's suggestion
2016-05-14 19:58:29 +01:00
a68366
c236b8a1d2 refactor(profile): reorder statements 2016-05-14 15:14:54 +03:00
a68366
f9edd39bba fix(profile): change password buttons behaviour
Closes #3300
2016-05-14 14:28:42 +03:00
agilob
f2aada8f4f
feat(i18n): Make activity by time labels translated by locale 2016-05-11 08:45:38 +01:00
agilob
3e22593ae7
feat(i18n): make Markdown settings translatable 2016-05-11 08:44:58 +01:00
Diadlo
d2d5b23064
feat(profileform): Added log toxme errors 2016-05-11 03:03:04 +03:00
Diadlo
98a1f23bfb
fix(i18n): Divide getting and translating Toxme error message 2016-05-10 23:28:59 +03:00
tux3
998f0915db
fix(chatform): Markdown after emojis
Fix #3260
2016-05-09 22:07:21 +02:00
tux3
e5d146f16f
Merge pull request #3280
tux3 (1):
      fix(settings): Look for portable setting in module path, not CWD
2016-05-09 16:12:10 +02:00
tux3
17e57982df
fix(settings): Look for portable setting in module path, not CWD 2016-05-09 15:55:48 +02:00
tux3
0a2e96ab07
fix(updater): Use module path, not working dir
Fix #3255
2016-05-09 15:40:25 +02:00
Zetok Zalbavar
7c63594adf
fix(settings): correct ordering of languages 2016-05-09 07:43:04 +01:00
qTox translations
83b89f1233
feat(l10n): Add Hebrew translation from Weblate
Translators:

Yaron Shahrabani    Hebrew
2016-05-07 20:26:16 +01:00
qTox translations
c8c7bda38e
feat(l10n): Add Danish translations from Weblate
Translators:

jan madsen         Danish
Peter Jespersen    Danish
2016-05-07 20:26:16 +01:00
initramfs
8e9a065f16
refactor(hidpi): enable HiDPI support if Qt supports it
Previously HiDPI support is conditionally enabled based on compilation
parameters as well as environmental variables which makes binary
distribution difficult. This commit automatically enables runtime DPI
scaling if Qt supports it (version 5.6 and beyond).
2016-05-04 18:31:24 +08:00
sudden6
4432ab6398
Merge pull request #3213
initramfs (3):
      feat(profile): show warning on failure to delete profile
      feat(profile): add a dialog to indicate profile deletion error
      refactor(profile): display files that could not be deleted in prompt
2016-04-30 21:06:56 +02:00
Zetok Zalbavar
d06efd387b
feat(l10n): add Japanese translation
Also sort list of languages ~alphabetically.

Translation thanks to @verycrypt

Closes #3223
2016-04-30 10:04:56 +01:00
initramfs
56e15aeab1
refactor(profile): display files that could not be deleted in prompt 2016-04-30 05:10:21 +08:00
sudden6
08263e9844
Merge pull request #3214
initramfs (1):
      fix(chat window): prevent right click from opening chat window
2016-04-29 19:58:41 +02:00