2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Remove twidget header.

This commit is contained in:
John Preston
2019-09-13 15:22:54 +03:00
parent e2f54eb3e9
commit c5845f17ae
188 changed files with 1070 additions and 907 deletions

View File

@@ -812,7 +812,7 @@ void AppendEmojiPacks(std::vector<PickerScrubberItem> &to) {
if (const auto inputField = qobject_cast<QTextEdit*>(
QApplication::focusWidget())) {
Ui::InsertEmojiAtCursor(inputField->textCursor(), emoji);
Ui::Emoji::AddRecent(emoji);
AddRecentEmoji(emoji);
return true;
}
}
@@ -1065,7 +1065,7 @@ void AppendEmojiPacks(std::vector<PickerScrubberItem> &to) {
}, _lifetime);
rpl::merge(
Ui::Emoji::UpdatedRecent(),
UpdatedRecentEmoji(),
Ui::Emoji::Updated()
) | rpl::start_with_next([=] {
[self updatePickerPopover:ScrubberItemType::Emoji];

View File

@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "window/window_title.h"
#include "window/themes/window_theme_preview.h"
#include "base/object_ptr.h"
namespace Platform {

View File

@@ -572,7 +572,7 @@ void psSendToMenu(bool send, bool silent) {
_manageAppLnk(send, silent, CSIDL_SENDTO, L"-sendpath", L"Telegram send to link.\nYou can disable send to menu item in Telegram settings.");
}
void psUpdateOverlayed(TWidget *widget) {
void psUpdateOverlayed(QWidget *widget) {
bool wm = widget->testAttribute(Qt::WA_Mapped), wv = widget->testAttribute(Qt::WA_WState_Visible);
if (!wm) widget->setAttribute(Qt::WA_Mapped, true);
if (!wv) widget->setAttribute(Qt::WA_WState_Visible, true);

View File

@@ -82,7 +82,7 @@ int psFixPrevious();
void psNewVersion();
void psUpdateOverlayed(TWidget *widget);
void psUpdateOverlayed(QWidget *widget);
inline QByteArray psDownloadPathBookmark(const QString &path) {
return QByteArray();
}

View File

@@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#pragma once
#include "platform/platform_window_title.h"
#include "base/object_ptr.h"
namespace Ui {
class IconButton;