mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-30 09:07:32 -04:00
Imroved Emoji Tabs for a fixed size and display tabs at bottom.
Imroved Emoji Tabs for a fixed size and display tabs at bottom. Enabled to attach *.webp and *.gif pictures.
This commit is contained in:
parent
f63ae7efbb
commit
3f59cfc7ea
2 changed files with 7 additions and 5 deletions
|
@ -1582,7 +1582,7 @@ void ChatWidget::addExtraPicture()
|
|||
{
|
||||
// select a picture file
|
||||
QString file;
|
||||
if (misc::getOpenFileName(window(), RshareSettings::LASTDIR_IMAGES, tr("Load Picture File"), "Pictures (*.png *.xpm *.jpg *.jpeg)", file)) {
|
||||
if (misc::getOpenFileName(window(), RshareSettings::LASTDIR_IMAGES, tr("Load Picture File"), "Pictures (*.png *.xpm *.jpg *.jpeg *.gif *.webp )", file)) {
|
||||
QString encodedImage;
|
||||
uint32_t maxMessageSize = this->maxMessageSize();
|
||||
if (RsHtml::makeEmbeddedImage(file, encodedImage, 640*480, maxMessageSize - 200)) { //-200 for the html stuff
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue