mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Removed ui_getPeerForMouseAction.
This commit is contained in:
parent
dcc8a64d37
commit
479611f6df
9 changed files with 0 additions and 31 deletions
|
@ -392,15 +392,6 @@ bool Application::hideMediaView() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
PeerData *Application::ui_getPeerForMouseAction() {
|
|
||||||
if (_mediaView && !_mediaView->isHidden()) {
|
|
||||||
return _mediaView->ui_getPeerForMouseAction();
|
|
||||||
} else if (const auto m = App::main()) { // multi good
|
|
||||||
return m->ui_getPeerForMouseAction();
|
|
||||||
}
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Application::eventFilter(QObject *object, QEvent *e) {
|
bool Application::eventFilter(QObject *object, QEvent *e) {
|
||||||
switch (e->type()) {
|
switch (e->type()) {
|
||||||
case QEvent::KeyPress:
|
case QEvent::KeyPress:
|
||||||
|
|
|
@ -143,7 +143,6 @@ public:
|
||||||
// Media view interface.
|
// Media view interface.
|
||||||
void checkMediaViewActivation();
|
void checkMediaViewActivation();
|
||||||
bool hideMediaView();
|
bool hideMediaView();
|
||||||
[[nodiscard]] PeerData *ui_getPeerForMouseAction();
|
|
||||||
|
|
||||||
[[nodiscard]] QPoint getPointForCallPanelCenter() const;
|
[[nodiscard]] QPoint getPointForCallPanelCenter() const;
|
||||||
[[nodiscard]] QImage logo() const {
|
[[nodiscard]] QImage logo() const {
|
||||||
|
|
|
@ -259,10 +259,6 @@ void showPeerHistory(not_null<const PeerData*> peer, MsgId msgId) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PeerData *getPeerForMouseAction() {
|
|
||||||
return Core::App().ui_getPeerForMouseAction();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool skipPaintEvent(QWidget *widget, QPaintEvent *event) {
|
bool skipPaintEvent(QWidget *widget, QPaintEvent *event) {
|
||||||
if (auto w = App::wnd()) {
|
if (auto w = App::wnd()) {
|
||||||
if (w->contentOverlapped(widget, event)) {
|
if (w->contentOverlapped(widget, event)) {
|
||||||
|
|
|
@ -4593,10 +4593,6 @@ void HistoryWidget::updateHistoryItemsByTimer() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PeerData *HistoryWidget::ui_getPeerForMouseAction() {
|
|
||||||
return _peer;
|
|
||||||
}
|
|
||||||
|
|
||||||
void HistoryWidget::handlePendingHistoryUpdate() {
|
void HistoryWidget::handlePendingHistoryUpdate() {
|
||||||
if (hasPendingResizedItems() || _updateHistoryGeometryRequired) {
|
if (hasPendingResizedItems() || _updateHistoryGeometryRequired) {
|
||||||
updateHistoryGeometry();
|
updateHistoryGeometry();
|
||||||
|
|
|
@ -283,8 +283,6 @@ public:
|
||||||
bool floatPlayerHandleWheelEvent(QEvent *e) override;
|
bool floatPlayerHandleWheelEvent(QEvent *e) override;
|
||||||
QRect floatPlayerAvailableRect() override;
|
QRect floatPlayerAvailableRect() override;
|
||||||
|
|
||||||
PeerData *ui_getPeerForMouseAction();
|
|
||||||
|
|
||||||
bool notify_switchInlineBotButtonReceived(const QString &query, UserData *samePeerBot, MsgId samePeerReplyTo);
|
bool notify_switchInlineBotButtonReceived(const QString &query, UserData *samePeerBot, MsgId samePeerReplyTo);
|
||||||
|
|
||||||
~HistoryWidget();
|
~HistoryWidget();
|
||||||
|
|
|
@ -1609,10 +1609,6 @@ void MainWidget::ui_showPeerHistory(
|
||||||
floatPlayerCheckVisibility();
|
floatPlayerCheckVisibility();
|
||||||
}
|
}
|
||||||
|
|
||||||
PeerData *MainWidget::ui_getPeerForMouseAction() {
|
|
||||||
return _history->ui_getPeerForMouseAction();
|
|
||||||
}
|
|
||||||
|
|
||||||
PeerData *MainWidget::peer() {
|
PeerData *MainWidget::peer() {
|
||||||
return _history->peer();
|
return _history->peer();
|
||||||
}
|
}
|
||||||
|
|
|
@ -218,7 +218,6 @@ public:
|
||||||
PeerId peer,
|
PeerId peer,
|
||||||
const SectionShow ¶ms,
|
const SectionShow ¶ms,
|
||||||
MsgId msgId);
|
MsgId msgId);
|
||||||
PeerData *ui_getPeerForMouseAction();
|
|
||||||
|
|
||||||
bool notify_switchInlineBotButtonReceived(const QString &query, UserData *samePeerBot, MsgId samePeerReplyTo);
|
bool notify_switchInlineBotButtonReceived(const QString &query, UserData *samePeerBot, MsgId samePeerReplyTo);
|
||||||
|
|
||||||
|
|
|
@ -1577,10 +1577,6 @@ void OverlayWidget::handleDocumentClick() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PeerData *OverlayWidget::ui_getPeerForMouseAction() {
|
|
||||||
return _history ? _history->peer.get() : nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
void OverlayWidget::downloadMedia() {
|
void OverlayWidget::downloadMedia() {
|
||||||
if (!_photo && !_document) {
|
if (!_photo && !_document) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -92,8 +92,6 @@ public:
|
||||||
void activateControls();
|
void activateControls();
|
||||||
void close();
|
void close();
|
||||||
|
|
||||||
PeerData *ui_getPeerForMouseAction();
|
|
||||||
|
|
||||||
void notifyFileDialogShown(bool shown);
|
void notifyFileDialogShown(bool shown);
|
||||||
|
|
||||||
void clearSession();
|
void clearSession();
|
||||||
|
|
Loading…
Add table
Reference in a new issue