Introduced in 857dfbcd4c
Regression was due to fact that QPushButton allows icon to overflow.
This patch does:
1. Scale and crop icon to fit into button.
2. Avoid upscaling small images.
3. Refactor FileTransferWidget::showPreview() to load image from file
only once.
Closes#3042
Some builds of Qt appear to have a bug in icon loading: QIcon::hasThemeIcon
is sometimes unaware that the icon returned from QIcon::fromTheme was a
fallback icon, causing hasThemeIcon to incorrectly return true.
In qTox this leads to the tray and window icons using the static qTox logo
icon instead of an icon based on the current presence status.
This workaround checks for an icon that definitely does not exist to
determine if hasThemeIcon can be trusted.
On systems with the Qt bug, this workaround will always use our included
icons but user themes will be unable to override them.
Diadlo (12):
feat(toxme): Add ToxMe registration
fix(toxme): Translation fixs
fix(profileform): Fix tab order, fix loop
fix(toxme): Use format strings
feat(profileform): Added ability to change toxme server
feat(toxme): Add save toxme info
fix(toxme): Fix possible segfault
fix(toxme): Fixed potential memory leaks
fix(profileform): Fixed segfault on logut
fix(profileform): Fixed very quick relogin segfault
fix(toxme): Delete extra check
refactor(toxme): Deleted old debug messages
Polshakov Dmitry (4):
fix(profileform): Deleted extra check and extra url
fix(profileform): Add toxme username limitation
style(profileform): Changed local include brackets type
refactor(profileform): Small changes
Diadlo (4):
fix(groupinviteform): remove deleted buttons from set
style(groupinviteform): extracted few variables
fix(groupinviteform): translation invite message
refactor(groupinviteform): Deleting made clearer
E.g. links like "file://192.168.1.1/" and "smb://localnode/" are now
supported. Before only links to local files were supported, e.g.
"file:///local/file.txt"
the system tray should no longer use a static icon when the xdg
application icons are named qtox.{png,svg}
this means the workaround https://bugs.archlinux.org/task/47910 done
downstream at arch linux shouldn't be necessary anymore.
related discussion in #2903
This commit changes the method used to obtain the active screen from
simply selecting the first screen in the list to using the explicit
default screen from QGuiApplication::primaryScreen() function
apprb (4):
Groupchats: fix user list update
Grouplist: tracking of the friend's alias changing (fix: #1847)
Fix#2600: Missing username in group chat
Check for empty username in a groupchat
sudden6 (12):
Revert "Revert changes from merge of #2092 pull request"
port groupinvitform to new ui
fix segfaults
adapt groupinviteform to existing conventions
Fix notification opening wrong form
notify on friendrequest and groupchat invite
fix layout of friendrequest form
fix segfault when logging out and in again
reject multiple friend requests from one person makes https://github.com/TheSpiritXIII/qTox/commit/
fix wrong text on button
fix friend request notification if friendrequestform is hidden
fix notification if friendrequest tab is visible, don't display friendrequests with html
The QStandardPaths generates paths with app name (qTox) subdirectory
for DataLocation and CacheLocation. No need to add '/tox'.
Both screenshots dir and log file are now in qTox dir in proper location on linux.
Sean (5):
generic pixel format selection
Merge branch 'master' of https://github.com/seanlaguna/qTox into pixfmt
Merge branch 'pixfmt' of https://github.com/seanlaguna/qTox into pixfmt
tabs to spaces
camera res option reduction
Sean Laguna (1):
whoops, forgot an else in an else if
Parse markdown even if manual newline is added before or after markdown'd text. Ex: Check out my\n*skills*.
Removed extraneous debugging.
Fixed some characters accidently parsing markdown formatting, such as **vv**'
Use enum instead of magic number to check md setting.
It was always eating two characters more than needed.
A toxURI passed to handleToxURI always starts with "tox:", it's checked in the handleToxURI callers. So here we need to remove that prefix, that's long 4 characters and not 6.
The previous code was meant to handle tox:// and tox: cases, but the tox:// case is invalid and should not be handled (see #2118).
Fixes: d6a0910fc8 ("fix uri parsing and tox URI detection, closes#2118")