Warning, /maui/shelf/src/views/Viewer/Viewer_TXT.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.0 0002 import QtQuick.Controls 2.2 0003 0004 import org.mauikit.controls 1.0 as Maui 0005 import org.mauikit.texteditor 1.0 as TE 0006 0007 TE.TextEditor 0008 { 0009 id: _editor 0010 property int currentPage : body.cursorPosition 0011 0012 body.readOnly: true 0013 0014 // footBar.middleContent:[ 0015 0016 // ToolButton 0017 // { 0018 // icon.name: "zoom-in" 0019 // onClicked: 0020 // { 0021 // body.font.pointSize = body.font.pointSize + fontSizes.small 0022 // } 0023 // }, 0024 0025 // ToolButton 0026 // { 0027 // icon.name: "zoom-out" 0028 // onClicked: 0029 // { 0030 // body.font.pointSize = body.font.pointSize - fontSizes.small 0031 0032 // } 0033 // } 0034 // ] 0035 0036 function open(filePath) 0037 { 0038 _editor.document.load("file://"+filePath) 0039 } 0040 }