mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-09 20:05:51 +00:00
move info label to own class, move dialog to own class as well
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
|
||||
import QtQuick 2.2
|
||||
import QtQuick.Controls 1.3 as QtControls
|
||||
import QtQuick.Dialogs 1.2 as QtDialogs
|
||||
|
||||
import org.kde.plasma.private.awesomewidget 1.0
|
||||
|
||||
@ -34,6 +35,7 @@ Row {
|
||||
property var textArea
|
||||
|
||||
signal unlock
|
||||
signal showMessage(string message)
|
||||
|
||||
QtControls.Button {
|
||||
width: parent.width * 3 / 10
|
||||
@ -73,4 +75,15 @@ Row {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QtDialogs.MessageDialog {
|
||||
id: compiledText
|
||||
modality: Qt.NonModal
|
||||
title: i18n("Preview")
|
||||
}
|
||||
|
||||
onShowMessage: {
|
||||
compiledText.text = message.replace(" ", " ")
|
||||
compiledText.open()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user