plasma: mark Plasma::View::trackContainmentChanges() as const

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-31 00:07:56 +03:00
parent 5ae3cd4ede
commit 3b22af1d92
4 changed files with 8 additions and 8 deletions

View file

@ -142,7 +142,7 @@ void PopupApplet::setWidget(QWidget *widget)
}
if (!lay) {
lay = new QVBoxLayout;
lay = new QVBoxLayout();
dialog->setLayout(lay);
}

View file

@ -176,11 +176,11 @@ public:
QString themeVersion;
QString themeMetadataPath;
bool isDefault : 1;
bool useGlobal : 1;
bool hasWallpapers : 1;
bool cacheTheme : 1;
bool useNativeWidgetStyle :1;
bool isDefault;
bool useGlobal;
bool hasWallpapers;
bool cacheTheme;
bool useNativeWidgetStyle;
};
PackageStructure::Ptr ThemePrivate::packageStructure(0);

View file

@ -404,7 +404,7 @@ void View::setTrackContainmentChanges(bool trackChanges)
d->trackChanges = trackChanges;
}
bool View::trackContainmentChanges()
bool View::trackContainmentChanges() const
{
return d->trackChanges;
}

View file

@ -148,7 +148,7 @@ public:
/**
* @return whether or not the view tracks changes to the containment
*/
bool trackContainmentChanges();
bool trackContainmentChanges() const;
/**
* @param pos the position in screen coordinates.