"Fossies" - the Fresh Open Source Software Archive

Member "tea-49.0.0/manuals/plugins/examples/run-and-close/main.qml" (4 Nov 2019, 412 Bytes) of package /linux/privat/tea-49.0.0.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) QML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 import QtQuick 2.0
    2 
    3 Rectangle {
    4 
    5     id: root
    6     width: 640
    7     height: 480
    8 
    9     property bool close_on_complete: true
   10 
   11     Component.onCompleted: //run it on plugin load
   12        {
   13         console.debug ("Rectangle Component.onCompleted");
   14         documents.create_new(); //create new document
   15         documents.get_current().set_selected_text ("hello world"); //insert text at the cursor position
   16        }
   17   
   18 }