mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 02:34:45 +00:00
get rid of most cannot stack parent warnings
This commit is contained in:
parent
9a2d2269c0
commit
edbab01cdf
2 changed files with 3 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ ApplicationListModel *HomeScreen::applicationListModel()
|
||||||
|
|
||||||
void HomeScreen::stackBefore(QQuickItem *item1, QQuickItem *item2)
|
void HomeScreen::stackBefore(QQuickItem *item1, QQuickItem *item2)
|
||||||
{
|
{
|
||||||
if (!item1 || !item2 || item1->parentItem() != item2->parentItem()) {
|
if (!item1 || !item2 || item1 == item2 || item1->parentItem() != item2->parentItem()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -62,7 +62,7 @@ void HomeScreen::stackBefore(QQuickItem *item1, QQuickItem *item2)
|
||||||
|
|
||||||
void HomeScreen::stackAfter(QQuickItem *item1, QQuickItem *item2)
|
void HomeScreen::stackAfter(QQuickItem *item1, QQuickItem *item2)
|
||||||
{
|
{
|
||||||
if (!item1 || !item2 || item1->parentItem() != item2->parentItem()) {
|
if (!item1 || !item2 || item1 == item2 || item1->parentItem() != item2->parentItem()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ LauncherContainer {
|
||||||
frame.width: width
|
frame.width: width
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
|
parent: root.flow
|
||||||
model: plasmoid.nativeInterface.applicationListModel
|
model: plasmoid.nativeInterface.applicationListModel
|
||||||
delegate: Delegate {
|
delegate: Delegate {
|
||||||
id: delegate
|
id: delegate
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue