mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +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;
|
||||
}
|
||||
|
||||
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) {
|
||||
switch (e->type()) {
|
||||
case QEvent::KeyPress:
|
||||
|
|
|
@ -143,7 +143,6 @@ public:
|
|||
// Media view interface.
|
||||
void checkMediaViewActivation();
|
||||
bool hideMediaView();
|
||||
[[nodiscard]] PeerData *ui_getPeerForMouseAction();
|
||||
|
||||
[[nodiscard]] QPoint getPointForCallPanelCenter() 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) {
|
||||
if (auto w = App::wnd()) {
|
||||
if (w->contentOverlapped(widget, event)) {
|
||||
|
|
|
@ -4593,10 +4593,6 @@ void HistoryWidget::updateHistoryItemsByTimer() {
|
|||
}
|
||||
}
|
||||
|
||||
PeerData *HistoryWidget::ui_getPeerForMouseAction() {
|
||||
return _peer;
|
||||
}
|
||||
|
||||
void HistoryWidget::handlePendingHistoryUpdate() {
|
||||
if (hasPendingResizedItems() || _updateHistoryGeometryRequired) {
|
||||
updateHistoryGeometry();
|
||||
|
|
|
@ -283,8 +283,6 @@ public:
|
|||
bool floatPlayerHandleWheelEvent(QEvent *e) override;
|
||||
QRect floatPlayerAvailableRect() override;
|
||||
|
||||
PeerData *ui_getPeerForMouseAction();
|
||||
|
||||
bool notify_switchInlineBotButtonReceived(const QString &query, UserData *samePeerBot, MsgId samePeerReplyTo);
|
||||
|
||||
~HistoryWidget();
|
||||
|
|
|
@ -1609,10 +1609,6 @@ void MainWidget::ui_showPeerHistory(
|
|||
floatPlayerCheckVisibility();
|
||||
}
|
||||
|
||||
PeerData *MainWidget::ui_getPeerForMouseAction() {
|
||||
return _history->ui_getPeerForMouseAction();
|
||||
}
|
||||
|
||||
PeerData *MainWidget::peer() {
|
||||
return _history->peer();
|
||||
}
|
||||
|
|
|
@ -218,7 +218,6 @@ public:
|
|||
PeerId peer,
|
||||
const SectionShow ¶ms,
|
||||
MsgId msgId);
|
||||
PeerData *ui_getPeerForMouseAction();
|
||||
|
||||
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() {
|
||||
if (!_photo && !_document) {
|
||||
return;
|
||||
|
|
|
@ -92,8 +92,6 @@ public:
|
|||
void activateControls();
|
||||
void close();
|
||||
|
||||
PeerData *ui_getPeerForMouseAction();
|
||||
|
||||
void notifyFileDialogShown(bool shown);
|
||||
|
||||
void clearSession();
|
||||
|
|
Loading…
Add table
Reference in a new issue