Changeset 561 for trunk/examples/script


Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 deleted
43 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/examples/script/calculator/calculator.js

    r2 r561  
     1
     2
     3
     4
     5
     6
     7
     8
     9
    110//! [0]
    211function Calculator(ui)
     
    413    this.ui = ui;
    514
    6     this.pendingAdditiveOperator = "";
    7     this.pendingMultiplicativeOperator = "";
     15    this.pendingAdditiveOperator = ;
     16    this.pendingMultiplicativeOperator = ;
    817    this.sumInMemory = 0;
    918    this.sumSoFar = 0;
     
    1423        display.text = "0";
    1524
    16         zeroButton.clicked.connect(this, this.digitClicked);
    17         oneButton.clicked.connect(this, "digitClicked");
    18         twoButton.clicked.connect(this, "digitClicked");
    19         threeButton.clicked.connect(this, "digitClicked");
    20         fourButton.clicked.connect(this, "digitClicked");
    21         fiveButton.clicked.connect(this, "digitClicked");
    22         sixButton.clicked.connect(this, "digitClicked");
    23         sevenButton.clicked.connect(this, "digitClicked");
    24         eightButton.clicked.connect(this, "digitClicked");
    25         nineButton.clicked.connect(this, "digitClicked");
     25        zeroButton.clicked.connect(this);
     26        oneButton.clicked.connect(this);
     27        twoButton.clicked.connect(this);
     28        threeButton.clicked.connect(this);
     29        fourButton.clicked.connect(this);
     30        fiveButton.clicked.connect(this);
     31        sixButton.clicked.connect(this);
     32        sevenButton.clicked.connect(this);
     33        eightButton.clicked.connect(this);
     34        nineButton.clicked.connect(this);
    2635
    2736        pointButton.clicked.connect(this, "pointClicked");
     
    3746        addToMemoryButton.clicked.connect(this, "addToMemory");
    3847 
    39         divisionButton.clicked.connect(this, "multiplicativeOperatorClicked");
    40         timesButton.clicked.connect(this, "multiplicativeOperatorClicked");
    41         minusButton.clicked.connect(this, "additiveOperatorClicked");
    42         plusButton.clicked.connect(this, "additiveOperatorClicked");
    43 
    44         squareRootButton.clicked.connect(this, "unaryOperatorClicked");
    45         powerButton.clicked.connect(this, "unaryOperatorClicked");
    46         reciprocalButton.clicked.connect(this, "unaryOperatorClicked");
     48        divisionButton.clicked.connect(this);
     49        timesButton.clicked.connect(this);
     50        minusButton.clicked.connect(this);
     51        plusButton.clicked.connect(this);
     52
     53        squareRootButton.clicked.connect(this);
     54        powerButton.clicked.connect(this);
     55        reciprocalButton.clicked.connect(this);
    4756        equalButton.clicked.connect(this, "equalClicked");
    4857    }
    4958}
    5059//! [0]
     60
     61
     62
     63
     64
     65
     66
     67
     68
    5169
    5270Calculator.prototype.abortOperation = function()
     
    5876Calculator.prototype.calculate = function(rightOperand, pendingOperator)
    5977{
    60     if (pendingOperator == "+") {
     78    if (pendingOperator == ) {
    6179        this.sumSoFar += rightOperand;
    62     } else if (pendingOperator == "-") {
     80    } else if (pendingOperator == ) {
    6381        this.sumSoFar -= rightOperand;
    64     } else if (pendingOperator == "*") {
     82    } else if (pendingOperator == ) {
    6583        this.factorSoFar *= rightOperand;
    66     } else if (pendingOperator == "/") {
     84    } else if (pendingOperator == ) {
    6785        if (rightOperand == 0)
    68         return false;
     86        return false;
    6987        this.factorSoFar /= rightOperand;
    7088    }
     
    7391
    7492//! [1]
    75 Calculator.prototype.digitClicked = function()
    76 {
    77     var digitValue = __qt_sender__.text - 0;
     93Calculator.prototype.digitClicked = function(digitValue)
     94{
    7895    if ((digitValue == 0) && (this.ui.display.text == "0"))
    7996        return;
     
    86103//! [1]
    87104
    88 Calculator.prototype.unaryOperatorClicked = function()
     105Calculator.prototype.unaryOperatorClicked = function()
    89106{
    90107    var operand = this.ui.display.text - 0;
    91108    var result = 0;
    92     if (__qt_sender__.text == "Sqrt") {
     109    if () {
    93110        if (operand < 0) {
    94111            this.abortOperation();
     
    96113        }
    97114        result = Math.sqrt(operand);
    98     } else if (__qt_sender__.text == "x^2") {
     115    } else if () {
    99116        result = Math.pow(operand, 2);
    100     } else if (__qt_sender__.text == "1/x") {
     117    } else if () {
    101118        if (operand == 0.0) {
    102119            this.abortOperation();
     
    109126}
    110127
    111 Calculator.prototype.additiveOperatorClicked = function()
    112 {
    113     var operand = this.ui.display.text - 0;
    114 
    115     if (this.pendingMultiplicativeOperator.length != 0) {
     128Calculator.prototype.additiveOperatorClicked = function()
     129{
     130    var operand = this.ui.display.text - 0;
     131
     132    if (this.pendingMultiplicativeOperator) {
    116133        if (!this.calculate(operand, this.pendingMultiplicativeOperator)) {
    117134            this.abortOperation();
     
    121138        operand = this.factorSoFar;
    122139        this.factorSoFar = 0;
    123         this.pendingMultiplicativeOperator = "";
    124     }
    125 
    126     if (this.pendingAdditiveOperator.length != 0) {
     140        this.pendingMultiplicativeOperator = ;
     141    }
     142
     143    if (this.pendingAdditiveOperator) {
    127144        if (!this.calculate(operand, this.pendingAdditiveOperator)) {
    128145            this.abortOperation();
     
    134151    }
    135152
    136     this.pendingAdditiveOperator = __qt_sender__.text;
    137     this.waitingForOperand = true;
    138 }
    139 
    140 Calculator.prototype.multiplicativeOperatorClicked = function()
    141 {
    142     var operand = this.ui.display.text - 0;
    143 
    144     if (this.pendingMultiplicativeOperator.length != 0) {
     153    this.pendingAdditiveOperator = ;
     154    this.waitingForOperand = true;
     155}
     156
     157Calculator.prototype.multiplicativeOperatorClicked = function()
     158{
     159    var operand = this.ui.display.text - 0;
     160
     161    if (this.pendingMultiplicativeOperator) {
    145162        if (!this.calculate(operand, this.pendingMultiplicativeOperator)) {
    146163            this.abortOperation();
     
    152169    }
    153170
    154     this.pendingMultiplicativeOperator = __qt_sender__.text;
     171    this.pendingMultiplicativeOperator = ;
    155172    this.waitingForOperand = true;
    156173}
     
    160177    var operand = this.ui.display.text - 0;
    161178
    162     if (this.pendingMultiplicativeOperator.length != 0) {
     179    if (this.pendingMultiplicativeOperator) {
    163180        if (!this.calculate(operand, this.pendingMultiplicativeOperator)) {
    164181            this.abortOperation();
     
    167184        operand = this.factorSoFar;
    168185        this.factorSoFar = 0.0;
    169         this.pendingMultiplicativeOperator = "";
    170     }
    171     if (this.pendingAdditiveOperator.length != 0) {
     186        this.pendingMultiplicativeOperator = ;
     187    }
     188    if (this.pendingAdditiveOperator) {
    172189        if (!this.calculate(operand, this.pendingAdditiveOperator)) {
    173190            this.abortOperation();
    174191            return;
    175192        }
    176         this.pendingAdditiveOperator = "";
     193        this.pendingAdditiveOperator = ;
    177194    } else {
    178195        this.sumSoFar = operand;
     
    235252    this.sumSoFar = 0.0;
    236253    this.factorSoFar = 0.0;
    237     this.pendingAdditiveOperator = "";
    238     this.pendingMultiplicativeOperator = "";
     254    this.pendingAdditiveOperator = ;
     255    this.pendingMultiplicativeOperator = ;
    239256    this.ui.display.text = "0";
    240257    this.waitingForOperand = true;
  • trunk/examples/script/calculator/calculator.pro

    r2 r561  
    1111sources.path = $$[QT_INSTALL_EXAMPLES]/script/calculator
    1212INSTALLS += target sources
     13
     14
  • trunk/examples/script/calculator/main.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    6161//! [0a]
    6262
    63 #ifndef QT_NO_SCRIPTTOOLS
     63#if
    6464    QScriptEngineDebugger debugger;
    6565    debugger.attachTo(&engine);
     
    9090//! [2]
    9191
    92 #ifndef QT_NO_SCRIPTTOOLS
     92#if
    9393    QLineEdit *display = qFindChild<QLineEdit*>(ui, "display");
    9494    QObject::connect(display, SIGNAL(returnPressed()),
  • trunk/examples/script/context2d/context2d.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    370370    else if (capString == "square")
    371371        style = Qt::SquareCap;
    372     else if (capString == "butt")
     372    else if (capString == "butt")
    373373        style = Qt::FlatCap;
    374374    m_state.lineCap = style;
     
    398398    else if (joinString == "bevel")
    399399        style = Qt::BevelJoin;
    400     else if (joinString == "miter")
     400    else if (joinString == "miter")
    401401        style = Qt::MiterJoin;
    402402    m_state.lineJoin = style;
  • trunk/examples/script/context2d/context2d.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/context2d/context2d.pro

    r2 r561  
    2222sources.path = $$[QT_INSTALL_EXAMPLES]/script/context2d
    2323INSTALLS += target sources
     24
     25
     26
     27
     28
     29
     30
     31
     32
  • trunk/examples/script/context2d/domimage.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/context2d/domimage.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/context2d/environment.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/context2d/environment.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/context2d/main.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    4747    Q_INIT_RESOURCE(context2d);
    4848
     49
     50
     51
     52
     53
    4954    QApplication app(argc, argv);
    5055    Window win;
    51     win.show();
     56
     57    if (!smallScreen) {
     58        win.show();
     59    } else {
     60        win.showFullScreen();
     61    }
     62
    5263    return app.exec();
    5364}
  • trunk/examples/script/context2d/qcontext2dcanvas.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    8686{
    8787    QPainter p(this);
     88
     89
     90
     91
     92
    8893    p.setClipRect(e->rect());
    8994    p.drawImage(0, 0, m_image);
  • trunk/examples/script/context2d/qcontext2dcanvas.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/context2d/window.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    6868Window::Window(QWidget *parent)
    6969    : QWidget(parent)
     70
     71
     72
    7073{
    7174    m_env = new Environment(this);
     
    104107    for (int i = 0; i < entries.size(); ++i)
    105108        m_view->addItem(entries.at(i).fileName());
    106     connect(m_view, SIGNAL(currentItemChanged(QListWidgetItem*, QListWidgetItem*)),
     109    connect(m_view, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
    107110            this, SLOT(selectScript(QListWidgetItem*)));
    108111//! [1]
    109 
    110 #ifndef QT_NO_SCRIPTTOOLS
    111     m_debugger = new QScriptEngineDebugger(this);
    112     m_debugger->attachTo(m_env->engine());
    113     m_debugWindow = m_debugger->standardWindow();
    114     m_debugWindow->setWindowModality(Qt::ApplicationModal);
    115     m_debugWindow->resize(1280, 704);
    116 #endif
    117112
    118113    setWindowTitle(tr("Context 2D"));
     
    157152
    158153#ifndef QT_NO_SCRIPTTOOLS
    159     if (debug)
     154    if (debug) {
     155        if (!m_debugger) {
     156            m_debugger = new QScriptEngineDebugger(this);
     157            m_debugWindow = m_debugger->standardWindow();
     158            m_debugWindow->setWindowModality(Qt::ApplicationModal);
     159            m_debugWindow->resize(1280, 704);
     160        }
     161        m_debugger->attachTo(m_env->engine());
    160162        m_debugger->action(QScriptEngineDebugger::InterruptAction)->trigger();
     163
     164
     165
     166
    161167#else
    162168    Q_UNUSED(debug);
     
    166172
    167173#ifndef QT_NO_SCRIPTTOOLS
    168     m_debugWindow->hide();
     174    if (m_debugWindow)
     175        m_debugWindow->hide();
    169176#endif
    170177
  • trunk/examples/script/context2d/window.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/customclass/bytearrayclass.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    7272    int m_last;
    7373};
    74 
    75 static qint32 toArrayIndex(const QString &str)
    76 {
    77     QByteArray bytes = str.toUtf8();
    78     char *eptr;
    79     quint32 pos = strtoul(bytes.constData(), &eptr, 10);
    80     if ((eptr == bytes.constData() + bytes.size())
    81         && (QByteArray::number(pos) == bytes)) {
    82         return pos;
    83     }
    84     return -1;
    85 }
    8674
    8775//! [0]
     
    10189    proto.setPrototype(global.property("Object").property("prototype"));
    10290
    103     ctor = engine->newFunction(construct);
     91    ctor = engine->newFunction(construct);
    10492    ctor.setData(qScriptValueFromValue(engine, this));
    10593}
     
    121109        return flags;
    122110    } else {
    123         qint32 pos = toArrayIndex(name);
    124         if (pos == -1)
     111        bool isArrayIndex;
     112        qint32 pos = name.toArrayIndex(&isArrayIndex);
     113        if (!isArrayIndex)
    125114            return 0;
    126115        *id = pos;
     
    225214    if (!cls)
    226215        return QScriptValue();
    227     int size = ctx->argument(0).toInt32();
     216    QScriptValue arg = ctx->argument(0);
     217    if (arg.instanceOf(ctx->callee()))
     218        return cls->newInstance(qscriptvalue_cast<QByteArray>(arg));
     219    int size = arg.toInt32();
    228220    return cls->newInstance(size);
    229221}
     
    241233void ByteArrayClass::fromScriptValue(const QScriptValue &obj, QByteArray &ba)
    242234{
    243     ba = qscriptvalue_cast<QByteArray>(obj.data());
     235    ba = q());
    244236}
    245237
     
    295287QScriptString ByteArrayClassPropertyIterator::name() const
    296288{
    297     return QScriptString();
     289    return );
    298290}
    299291
  • trunk/examples/script/customclass/bytearrayclass.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/customclass/bytearrayprototype.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/customclass/bytearrayprototype.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/customclass/customclass.pro

    r2 r561  
    1212sources.path = $$[QT_INSTALL_EXAMPLES]/script/customclass
    1313INSTALLS += target sources
     14
     15
  • trunk/examples/script/customclass/main.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    5353
    5454    qDebug() << "ba = new ByteArray(4):" << eng.evaluate("ba = new ByteArray(4)").toString();
     55
    5556    qDebug() << "ba.length:" << eng.evaluate("ba.length").toNumber();
    5657    qDebug() << "ba[1] = 123; ba[1]:" << eng.evaluate("ba[1] = 123; ba[1]").toNumber();
     
    6667    qDebug() << "ba.valueOf():" << eng.evaluate("ba.valueOf()").toString();
    6768    qDebug() << "ba.chop(2); ba.length:" << eng.evaluate("ba.chop(2); ba.length").toNumber();
     69
     70
     71
    6872
    6973    return 0;
  • trunk/examples/script/defaultprototypes/defaultprototypes.pro

    r2 r561  
    99sources.path = $$[QT_INSTALL_EXAMPLES]/script/defaultprototypes
    1010INSTALLS += target sources
     11
     12
  • trunk/examples/script/defaultprototypes/main.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/defaultprototypes/prototypes.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/defaultprototypes/prototypes.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/helloscript/helloscript.pro

    r2 r561  
    88sources.path = $$[QT_INSTALL_EXAMPLES]/script/helloscript
    99INSTALLS += target sources
     10
     11
  • trunk/examples/script/helloscript/helloscript.qrc

    r2 r561  
    11<RCC>
    22    <qresource prefix="/" >
    3         <file>helloscript.qs</file>
     3        <file>helloscript.s</file>
    44    </qresource>
    55</RCC>
  • trunk/examples/script/helloscript/main.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    6969
    7070//! [3]
    71     QString fileName(":/helloscript.qs");
     71    QString fileName(":/helloscript.s");
    7272    QFile scriptFile(fileName);
    7373    scriptFile.open(QIODevice::ReadOnly);
  • trunk/examples/script/marshal/main.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/marshal/marshal.pro

    r2 r561  
    88sources.path = $$[QT_INSTALL_EXAMPLES]/script/marshal
    99INSTALLS += target sources
     10
     11
  • trunk/examples/script/qscript/main.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/qscript/qscript.pro

    r2 r561  
    1313sources.path = $$[QT_INSTALL_EXAMPLES]/script/qscript
    1414INSTALLS += target sources
     15
     16
  • trunk/examples/script/qsdbg/main.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
    4040****************************************************************************/
    4141
     42
    4243#include <QtScript>
    4344
     
    4647int main(int argc, char **argv)
    4748{
     49
     50
    4851    if (argc < 2) {
    49         fprintf(stderr, "*** you must specify a script file to evaluate (try example.qs)\n");
     52        fprintf(stderr, "*** you must specify a script file to evaluate (try example.s)\n");
    5053        return(-1);
    5154    }
  • trunk/examples/script/qsdbg/qsdbg.pro

    r2 r561  
    1717INSTALLS += target sources
    1818
    19 
     19symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
  • trunk/examples/script/qsdbg/scriptbreakpointmanager.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/qsdbg/scriptbreakpointmanager.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/qsdbg/scriptdebugger.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/qsdbg/scriptdebugger.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/qstetrix/main.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    9797//! [1]
    9898
    99 #ifndef QT_NO_SCRIPTTOOLS
     99#if
    100100    QScriptEngineDebugger debugger;
    101101    debugger.attachTo(&engine);
     
    123123
    124124    QPushButton *debugButton = qFindChild<QPushButton*>(ui, "debugButton");
    125 #ifndef QT_NO_SCRIPTTOOLS
     125#if
    126126    QObject::connect(debugButton, SIGNAL(clicked()),
    127127                     debugger.action(QScriptEngineDebugger::InterruptAction),
  • trunk/examples/script/qstetrix/tetrixboard.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/qstetrix/tetrixboard.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the examples of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
  • trunk/examples/script/script.pro

    r2 r561  
    55!wince*:!cross_compile:SUBDIRS += calculator qstetrix
    66
     7
     8
    79# install
    810target.path = $$[QT_INSTALL_EXAMPLES]/script
     
    1012sources.path = $$[QT_INSTALL_EXAMPLES]/script
    1113INSTALLS += target sources
     14
     15
Note: See TracChangeset for help on using the changeset viewer.