Rename DecoratedClient::borderingScreenEdges to adjacentScreenEdges
This commit is contained in:
parent
99545da109
commit
faa78e187e
4 changed files with 6 additions and 6 deletions
|
@ -88,7 +88,7 @@ DecoratedClientImpl::DecoratedClientImpl(Client *client, KDecoration2::Decorated
|
||||||
);
|
);
|
||||||
connect(client, &Client::quickTileModeChanged, decoratedClient,
|
connect(client, &Client::quickTileModeChanged, decoratedClient,
|
||||||
[this, decoratedClient]() {
|
[this, decoratedClient]() {
|
||||||
emit decoratedClient->borderingScreenEdgesChanged(borderingScreenEdges());
|
emit decoratedClient->adjacentScreenEdgesChanged(adjacentScreenEdges());
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
connect(client, &Client::closeableChanged, decoratedClient, &KDecoration2::DecoratedClient::closeableChanged);
|
connect(client, &Client::closeableChanged, decoratedClient, &KDecoration2::DecoratedClient::closeableChanged);
|
||||||
|
@ -200,7 +200,7 @@ bool DecoratedClientImpl::isMaximizedHorizontally() const
|
||||||
return m_client->maximizeMode() & KDecorationDefines::MaximizeHorizontal;
|
return m_client->maximizeMode() & KDecorationDefines::MaximizeHorizontal;
|
||||||
}
|
}
|
||||||
|
|
||||||
Qt::Edges DecoratedClientImpl::borderingScreenEdges() const
|
Qt::Edges DecoratedClientImpl::adjacentScreenEdges() const
|
||||||
{
|
{
|
||||||
Qt::Edges edges;
|
Qt::Edges edges;
|
||||||
const KDecorationDefines::QuickTileMode mode = m_client->quickTileMode();
|
const KDecorationDefines::QuickTileMode mode = m_client->quickTileMode();
|
||||||
|
|
|
@ -65,7 +65,7 @@ public:
|
||||||
int width() const override;
|
int width() const override;
|
||||||
WId windowId() const override;
|
WId windowId() const override;
|
||||||
|
|
||||||
Qt::Edges borderingScreenEdges() const override;
|
Qt::Edges adjacentScreenEdges() const override;
|
||||||
|
|
||||||
void requestClose() override;
|
void requestClose() override;
|
||||||
void requestContextHelp() override;
|
void requestContextHelp() override;
|
||||||
|
|
|
@ -124,7 +124,7 @@ PreviewClient::PreviewClient(DecoratedClient *c, Decoration *decoration)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
auto emitEdgesChanged = [this, c]() {
|
auto emitEdgesChanged = [this, c]() {
|
||||||
c->borderingScreenEdgesChanged(borderingScreenEdges());
|
c->adjacentScreenEdgesChanged(adjacentScreenEdges());
|
||||||
};
|
};
|
||||||
connect(this, &PreviewClient::bordersTopEdgeChanged, this, emitEdgesChanged);
|
connect(this, &PreviewClient::bordersTopEdgeChanged, this, emitEdgesChanged);
|
||||||
connect(this, &PreviewClient::bordersLeftEdgeChanged, this, emitEdgesChanged);
|
connect(this, &PreviewClient::bordersLeftEdgeChanged, this, emitEdgesChanged);
|
||||||
|
@ -296,7 +296,7 @@ void PreviewClient::setColorSchemeIndex(int index)
|
||||||
emit colorSchemeIndexChanged(m_colorSchemeIndex);
|
emit colorSchemeIndexChanged(m_colorSchemeIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
Qt::Edges PreviewClient::borderingScreenEdges() const
|
Qt::Edges PreviewClient::adjacentScreenEdges() const
|
||||||
{
|
{
|
||||||
Qt::Edges edges;
|
Qt::Edges edges;
|
||||||
if (m_bordersBottomEdge) {
|
if (m_bordersBottomEdge) {
|
||||||
|
|
|
@ -92,7 +92,7 @@ public:
|
||||||
int width() const override;
|
int width() const override;
|
||||||
int height() const override;
|
int height() const override;
|
||||||
QPalette palette() const override;
|
QPalette palette() const override;
|
||||||
Qt::Edges borderingScreenEdges() const override;
|
Qt::Edges adjacentScreenEdges() const override;
|
||||||
|
|
||||||
void requestClose() override;
|
void requestClose() override;
|
||||||
void requestContextHelp() override;
|
void requestContextHelp() override;
|
||||||
|
|
Loading…
Reference in a new issue