MCPcopy Create free account
hub / github.com/Sonic-DE/sonic-win / commitTile

Method commitTile

src/window.cpp:3677–3702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3675}
3676
3677void Window::commitTile(Tile *tile)
3678{
3679 if (m_tile == tile) {
3680 return;
3681 }
3682
3683 Tile *oldTile = m_tile;
3684 QuickTileMode oldTileMode = quickTileMode();
3685
3686 m_tile = tile;
3687
3688 if (m_tile) {
3689 Q_ASSERT(!isDeleted());
3690 m_tile->addWindow(this);
3691 }
3692
3693 if (oldTile) {
3694 oldTile->removeWindow(this);
3695 }
3696
3697 Q_EMIT tileChanged(tile);
3698
3699 if (oldTileMode != quickTileMode()) {
3700 Q_EMIT quickTileModeChanged();
3701 }
3702}
3703
3704Tile *Window::tile() const
3705{

Callers

nothing calls this directly

Calls 2

addWindowMethod · 0.80
removeWindowMethod · 0.45

Tested by

no test coverage detected