mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +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)
|
||||
{
|
||||
if (!item1 || !item2 || item1->parentItem() != item2->parentItem()) {
|
||||
if (!item1 || !item2 || item1 == item2 || item1->parentItem() != item2->parentItem()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -62,7 +62,7 @@ void HomeScreen::stackBefore(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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ LauncherContainer {
|
|||
frame.width: width
|
||||
|
||||
Repeater {
|
||||
parent: root.flow
|
||||
model: plasmoid.nativeInterface.applicationListModel
|
||||
delegate: Delegate {
|
||||
id: delegate
|
||||
|
|
|
|||
Loading…
Reference in a new issue