mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-10 08:51:12 +00:00
Closed beta 10019002: redesign, fix emoji pan hide after inline bot.
This commit is contained in:
parent
b3d1602354
commit
dac96bfc4a
@ -34,8 +34,8 @@ IDI_ICON1 ICON "..\\art\\icon256.ico"
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 0,10,19,1
|
||||
PRODUCTVERSION 0,10,19,1
|
||||
FILEVERSION 0,10,19,2
|
||||
PRODUCTVERSION 0,10,19,2
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
@ -51,10 +51,10 @@ BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "Telegram Messenger LLP"
|
||||
VALUE "FileVersion", "0.10.19.1"
|
||||
VALUE "FileVersion", "0.10.19.2"
|
||||
VALUE "LegalCopyright", "Copyright (C) 2014-2016"
|
||||
VALUE "ProductName", "Telegram Desktop"
|
||||
VALUE "ProductVersion", "0.10.19.1"
|
||||
VALUE "ProductVersion", "0.10.19.2"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
@ -25,8 +25,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 0,10,19,1
|
||||
PRODUCTVERSION 0,10,19,1
|
||||
FILEVERSION 0,10,19,2
|
||||
PRODUCTVERSION 0,10,19,2
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
@ -43,10 +43,10 @@ BEGIN
|
||||
BEGIN
|
||||
VALUE "CompanyName", "Telegram Messenger LLP"
|
||||
VALUE "FileDescription", "Telegram Updater"
|
||||
VALUE "FileVersion", "0.10.19.1"
|
||||
VALUE "FileVersion", "0.10.19.2"
|
||||
VALUE "LegalCopyright", "Copyright (C) 2014-2016"
|
||||
VALUE "ProductName", "Telegram Desktop"
|
||||
VALUE "ProductVersion", "0.10.19.1"
|
||||
VALUE "ProductVersion", "0.10.19.2"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
@ -22,7 +22,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
||||
|
||||
#include "core/utils.h"
|
||||
|
||||
#define BETA_VERSION_MACRO (10019001ULL)
|
||||
#define BETA_VERSION_MACRO (10019002ULL)
|
||||
|
||||
constexpr int AppVersion = 10020;
|
||||
constexpr str_const AppVersionStr = "0.10.20";
|
||||
|
@ -7561,7 +7561,6 @@ void HistoryWidget::updatePinnedBar(bool force) {
|
||||
}
|
||||
}
|
||||
t_assert(_history != nullptr);
|
||||
|
||||
if (!_pinnedBar->msg) {
|
||||
_pinnedBar->msg = App::histItemById(_history->channelId(), _pinnedBar->msgId);
|
||||
}
|
||||
|
@ -501,6 +501,7 @@ void MediaPreviewWidget::showPreview(PhotoData *photo) {
|
||||
startShow();
|
||||
_photo = photo;
|
||||
_document = nullptr;
|
||||
fillEmojiString();
|
||||
resetGifAndCache();
|
||||
}
|
||||
|
||||
@ -548,7 +549,9 @@ void MediaPreviewWidget::fillEmojiString() {
|
||||
return result;
|
||||
};
|
||||
|
||||
if (auto sticker = _document->sticker()) {
|
||||
if (_photo) {
|
||||
_emojiList.clear();
|
||||
} else if (auto sticker = _document->sticker()) {
|
||||
auto &inputSet = sticker->set;
|
||||
if (inputSet.type() == mtpc_inputStickerSetID) {
|
||||
_emojiList = getStickerEmojiList(inputSet.c_inputStickerSetID().vid.v);
|
||||
|
@ -2597,7 +2597,7 @@ EmojiPan::EmojiPan(QWidget *parent) : TWidget(parent)
|
||||
setCurrentTabIcon(dbietRecent);
|
||||
|
||||
_hideTimer.setSingleShot(true);
|
||||
connect(&_hideTimer, SIGNAL(timeout()), this, SLOT(hideAnimated()));
|
||||
connect(&_hideTimer, SIGNAL(timeout()), this, SLOT(hideByTimerOrLeave()));
|
||||
|
||||
connect(&e_inner, SIGNAL(scrollToY(int)), &e_scroll, SLOT(scrollToY(int)));
|
||||
connect(&e_inner, SIGNAL(disableScroll(bool)), &e_scroll, SLOT(disableScroll(bool)));
|
||||
@ -2865,7 +2865,7 @@ bool EmojiPan::preventAutoHide() const {
|
||||
void EmojiPan::leaveEvent(QEvent *e) {
|
||||
if (preventAutoHide() || s_inner.inlineResultsShown()) return;
|
||||
if (_a_appearance.animating()) {
|
||||
hideAnimated();
|
||||
hideByTimerOrLeave();
|
||||
} else {
|
||||
_hideTimer.start(300);
|
||||
}
|
||||
@ -2879,7 +2879,7 @@ void EmojiPan::otherEnter() {
|
||||
void EmojiPan::otherLeave() {
|
||||
if (preventAutoHide() || s_inner.inlineResultsShown()) return;
|
||||
if (_a_appearance.animating()) {
|
||||
hideAnimated();
|
||||
hideByTimerOrLeave();
|
||||
} else {
|
||||
_hideTimer.start(0);
|
||||
}
|
||||
@ -3177,10 +3177,10 @@ void EmojiPan::step_appearance(float64 ms, bool timer) {
|
||||
if (timer) update();
|
||||
}
|
||||
|
||||
void EmojiPan::hideAnimated() {
|
||||
void EmojiPan::hideByTimerOrLeave() {
|
||||
if (isHidden() || preventAutoHide() || s_inner.inlineResultsShown()) return;
|
||||
|
||||
startHideAnimated();
|
||||
hideAnimated();
|
||||
}
|
||||
|
||||
void EmojiPan::prepareShowHideCache() {
|
||||
@ -3193,7 +3193,7 @@ void EmojiPan::prepareShowHideCache() {
|
||||
}
|
||||
}
|
||||
|
||||
void EmojiPan::startHideAnimated() {
|
||||
void EmojiPan::hideAnimated() {
|
||||
if (_hiding) return;
|
||||
|
||||
prepareShowHideCache();
|
||||
|
@ -536,13 +536,14 @@ public:
|
||||
return s_inner.inlineResultsShown();
|
||||
}
|
||||
|
||||
public slots:
|
||||
void showAnimated();
|
||||
void hideAnimated();
|
||||
|
||||
public slots:
|
||||
void refreshStickers();
|
||||
|
||||
private slots:
|
||||
void hideByTimerOrLeave();
|
||||
void refreshSavedGifs();
|
||||
|
||||
void hideFinish();
|
||||
@ -595,7 +596,6 @@ private:
|
||||
void updateContentHeight();
|
||||
|
||||
void leaveToChildEvent(QEvent *e, QWidget *child);
|
||||
void startHideAnimated();
|
||||
void prepareShowHideCache();
|
||||
|
||||
void updateSelected();
|
||||
|
@ -3,4 +3,4 @@ AppVersionStrMajor 0.10
|
||||
AppVersionStrSmall 0.10.20
|
||||
AppVersionStr 0.10.20
|
||||
AlphaChannel 0
|
||||
BetaVersion 10019001
|
||||
BetaVersion 10019002
|
||||
|
Loading…
Reference in New Issue
Block a user