Changeset View
Changeset View
Standalone View
Standalone View
applets/mediaframe/package/contents/ui/main.qml
Show First 20 Lines • Show All 420 Lines • ▼ Show 20 Line(s) | 417 | PlasmaComponents.Button { | |||
---|---|---|---|---|---|
421 | visible: !hasItems | 421 | visible: !hasItems | ||
422 | iconSource: "configure" | 422 | iconSource: "configure" | ||
423 | text: i18n("Configure plasmoid...") | 423 | text: i18n("Configure plasmoid...") | ||
424 | onClicked: { | 424 | onClicked: { | ||
425 | plasmoid.action("configure").trigger(); | 425 | plasmoid.action("configure").trigger(); | ||
426 | } | 426 | } | ||
427 | } | 427 | } | ||
428 | 428 | | |||
429 | Connections { | ||||
430 | target: plasmoid | ||||
431 | onExternalData: { | ||||
432 | var type = items.isDir(data) ? "folder" : "file"; | ||||
433 | var item = { | ||||
434 | "path": data, | ||||
435 | "type": type | ||||
436 | }; | ||||
437 | | ||||
438 | addItem(item); | ||||
439 | } | ||||
440 | } | ||||
429 | } | 441 | } |