close button

This commit is contained in:
Marco Martin 2015-06-08 19:17:10 -07:00
parent 87bd6285c7
commit 5f412e8b75
3 changed files with 8 additions and 1 deletions

View file

@ -122,7 +122,7 @@ MouseArea {
}
horizontalAlignment: Qt.AlignRight
verticalAlignment: Qt.AlignVCenter
text: summary + (!notificationItem.expanded && body ? "..." : "")
text: background.margins.top + summary + (!notificationItem.expanded && body ? "..." : "")
wrapMode: Text.WordWrap
}
PlasmaComponents.Label {

View file

@ -42,6 +42,12 @@ PlasmaCore.Dialog {
iconSource: "go-home"
onClicked: root.closeWindowList();
}
PlasmaComponents.ToolButton {
anchors.right: parent.right
iconSource: "window-close"
onClicked: workspace.activeClient.closeWindow();
}
}
Component.onCompleted: {
KWin.registerWindow(panel);

View file

@ -12,6 +12,7 @@ X-KDE-PluginInfo-Author=Marco Martin
X-KDE-PluginInfo-Email=mart@kde.org
X-KDE-PluginInfo-Name=org.kde.phone.multitasking
X-KDE-PluginInfo-Version=1.0
X-KDE-PluginInfo-EnabledByDefault=true
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL