Changeset View
Changeset View
Standalone View
Standalone View
containments/panel/contents/ui/main.qml
Show First 20 Lines • Show All 415 Lines • ▼ Show 20 Line(s) | 412 | onHeightChanged: { | |||
---|---|---|---|---|---|
416 | } | 416 | } | ||
417 | } | 417 | } | ||
418 | 418 | | |||
419 | Timer { | 419 | Timer { | ||
420 | id: containmentSizeSyncTimer | 420 | id: containmentSizeSyncTimer | ||
421 | interval: 150 | 421 | interval: 150 | ||
422 | onTriggered: { | 422 | onTriggered: { | ||
423 | dndSpacer.parent = root; | 423 | dndSpacer.parent = root; | ||
424 | currentLayout.x = (isHorizontal && toolBox && Qt.application.layoutDirection === Qt.RightToLeft && (plasmoid.editMode || plasmoid.userConfiguring)) ? toolBox.width : 0; | 424 | currentLayout.x = (isHorizontal && toolBox && Qt.application.layoutDirection === Qt.RightToLeft && plasmoid.editMode) ? toolBox.width : 0; | ||
425 | currentLayout.y = 0 | 425 | currentLayout.y = 0 | ||
426 | currentLayout.width = root.width - (isHorizontal && toolBox && (plasmoid.editMode || plasmoid.userConfiguring) ? toolBox.width : 0) | 426 | currentLayout.width = root.width - (isHorizontal && toolBox && plasmoid.editMode ? toolBox.width : 0) | ||
427 | currentLayout.height = root.height - (!isHorizontal && toolBox && (plasmoid.editMode || plasmoid.userConfiguring) ? toolBox.height : 0) | 427 | currentLayout.height = root.height - (!isHorizontal && toolBox && plasmoid.editMode ? toolBox.height : 0) | ||
428 | currentLayout.isLayoutHorizontal = isHorizontal | 428 | currentLayout.isLayoutHorizontal = isHorizontal | ||
429 | } | 429 | } | ||
430 | } | 430 | } | ||
431 | 431 | | |||
432 | //FIXME: I don't see other ways at the moment a way to see when the UI is REALLY ready | 432 | //FIXME: I don't see other ways at the moment a way to see when the UI is REALLY ready | ||
433 | Timer { | 433 | Timer { | ||
434 | id: startupTimer | 434 | id: startupTimer | ||
435 | interval: 4000 | 435 | interval: 4000 | ||
Show All 11 Lines |