forked from quickshell/quickshell
service/mpris: clarify trackinfo emit order and use QBindings
This commit is contained in:
parent
8450543e09
commit
dca75b7d6a
5 changed files with 86 additions and 74 deletions
|
@ -1,6 +1,5 @@
|
|||
#include "popupwindow.hpp"
|
||||
|
||||
#include <qlogging.h>
|
||||
#include <qnamespace.h>
|
||||
#include <qobject.h>
|
||||
#include <qqmlinfo.h>
|
||||
|
@ -42,9 +41,7 @@ void ProxyPopupWindow::setParentWindow(QObject* parent) {
|
|||
this->mAnchor.setWindow(parent);
|
||||
}
|
||||
|
||||
QObject* ProxyPopupWindow::parentWindow() const {
|
||||
return this->mAnchor.window();
|
||||
}
|
||||
QObject* ProxyPopupWindow::parentWindow() const { return this->mAnchor.window(); }
|
||||
|
||||
void ProxyPopupWindow::updateTransientParent() {
|
||||
auto* bw = this->mAnchor.backingWindow();
|
||||
|
@ -70,7 +67,8 @@ void ProxyPopupWindow::updateTransientParent() {
|
|||
void ProxyPopupWindow::onParentUpdated() { this->updateTransientParent(); }
|
||||
|
||||
void ProxyPopupWindow::setScreen(QuickshellScreenInfo* /*unused*/) {
|
||||
qmlWarning(this) << "Cannot set screen of popup window, as that is controlled by the parent window";
|
||||
qmlWarning(this
|
||||
) << "Cannot set screen of popup window, as that is controlled by the parent window";
|
||||
}
|
||||
|
||||
void ProxyPopupWindow::setVisible(bool visible) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue