Ignore:
Timestamp:
Nov 7, 2014, 5:23:02 PM (11 years ago)
Author:
Dmitry A. Kuminov
Message:

vendor: Import qt-everywhere-opensource-src-4.8.6 from Digia (excluding doc/html and doc/qch dirs generated from doc/src, and imports and templates dirs which are emtpy).

Location:
branches/vendor/nokia/qt/current/demos/chip
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/vendor/nokia/qt/current/demos/chip/chip.cpp

    r844 r1156  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    4 ** All rights reserved.
    5 ** Contact: Nokia Corporation ([email protected])
     3** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
     4** Contact: http://www.qt-project.org/legal
    65**
    76** This file is part of the demonstration applications of the Qt Toolkit.
    87**
    98** $QT_BEGIN_LICENSE:LGPL$
    10 ** Commercial Usage
    11 ** Licensees holding valid Qt Commercial licenses may use this file in
    12 ** accordance with the Qt Commercial License Agreement provided with the
     9** Commercial Usage
     10** Licensees holding valid licenses may use this file in
     11** accordance with the greement provided with the
    1312** Software or, alternatively, in accordance with the terms contained in
    14 ** a written agreement between you and Nokia.
     13** a written agreement between you and Digia.  For licensing terms and
     14** conditions see http://qt.digia.com/licensing.  For further information
     15** use the contact form at http://qt.digia.com/contact-us.
    1516**
    1617** GNU Lesser General Public License Usage
     
    2223** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2324**
    24 ** In addition, as a special exception, Nokia gives you certain additional
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
     25** In addition, as a special exception, ia gives you certain additional
     26** rights.  These rights are described in the ia Qt LGPL Exception
    2627** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2728**
     
    3435** met: http://www.gnu.org/copyleft/gpl.html.
    3536**
    36 ** If you have questions regarding the use of this file, please contact
    37 ** Nokia at [email protected].
     37**
    3838** $QT_END_LICENSE$
    3939**
  • branches/vendor/nokia/qt/current/demos/chip/chip.h

    r844 r1156  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    4 ** All rights reserved.
    5 ** Contact: Nokia Corporation ([email protected])
     3** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
     4** Contact: http://www.qt-project.org/legal
    65**
    76** This file is part of the demonstration applications of the Qt Toolkit.
    87**
    98** $QT_BEGIN_LICENSE:LGPL$
    10 ** Commercial Usage
    11 ** Licensees holding valid Qt Commercial licenses may use this file in
    12 ** accordance with the Qt Commercial License Agreement provided with the
     9** Commercial Usage
     10** Licensees holding valid licenses may use this file in
     11** accordance with the greement provided with the
    1312** Software or, alternatively, in accordance with the terms contained in
    14 ** a written agreement between you and Nokia.
     13** a written agreement between you and Digia.  For licensing terms and
     14** conditions see http://qt.digia.com/licensing.  For further information
     15** use the contact form at http://qt.digia.com/contact-us.
    1516**
    1617** GNU Lesser General Public License Usage
     
    2223** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2324**
    24 ** In addition, as a special exception, Nokia gives you certain additional
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
     25** In addition, as a special exception, ia gives you certain additional
     26** rights.  These rights are described in the ia Qt LGPL Exception
    2627** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2728**
     
    3435** met: http://www.gnu.org/copyleft/gpl.html.
    3536**
    36 ** If you have questions regarding the use of this file, please contact
    37 ** Nokia at [email protected].
     37**
    3838** $QT_END_LICENSE$
    3939**
  • branches/vendor/nokia/qt/current/demos/chip/main.cpp

    r844 r1156  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    4 ** All rights reserved.
    5 ** Contact: Nokia Corporation ([email protected])
     3** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
     4** Contact: http://www.qt-project.org/legal
    65**
    76** This file is part of the demonstration applications of the Qt Toolkit.
    87**
    98** $QT_BEGIN_LICENSE:LGPL$
    10 ** Commercial Usage
    11 ** Licensees holding valid Qt Commercial licenses may use this file in
    12 ** accordance with the Qt Commercial License Agreement provided with the
     9** Commercial Usage
     10** Licensees holding valid licenses may use this file in
     11** accordance with the greement provided with the
    1312** Software or, alternatively, in accordance with the terms contained in
    14 ** a written agreement between you and Nokia.
     13** a written agreement between you and Digia.  For licensing terms and
     14** conditions see http://qt.digia.com/licensing.  For further information
     15** use the contact form at http://qt.digia.com/contact-us.
    1516**
    1617** GNU Lesser General Public License Usage
     
    2223** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2324**
    24 ** In addition, as a special exception, Nokia gives you certain additional
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
     25** In addition, as a special exception, ia gives you certain additional
     26** rights.  These rights are described in the ia Qt LGPL Exception
    2627** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2728**
     
    3435** met: http://www.gnu.org/copyleft/gpl.html.
    3536**
    36 ** If you have questions regarding the use of this file, please contact
    37 ** Nokia at [email protected].
     37**
    3838** $QT_END_LICENSE$
    3939**
  • branches/vendor/nokia/qt/current/demos/chip/mainwindow.cpp

    r844 r1156  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    4 ** All rights reserved.
    5 ** Contact: Nokia Corporation ([email protected])
     3** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
     4** Contact: http://www.qt-project.org/legal
    65**
    76** This file is part of the demonstration applications of the Qt Toolkit.
    87**
    98** $QT_BEGIN_LICENSE:LGPL$
    10 ** Commercial Usage
    11 ** Licensees holding valid Qt Commercial licenses may use this file in
    12 ** accordance with the Qt Commercial License Agreement provided with the
     9** Commercial Usage
     10** Licensees holding valid licenses may use this file in
     11** accordance with the greement provided with the
    1312** Software or, alternatively, in accordance with the terms contained in
    14 ** a written agreement between you and Nokia.
     13** a written agreement between you and Digia.  For licensing terms and
     14** conditions see http://qt.digia.com/licensing.  For further information
     15** use the contact form at http://qt.digia.com/contact-us.
    1516**
    1617** GNU Lesser General Public License Usage
     
    2223** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2324**
    24 ** In addition, as a special exception, Nokia gives you certain additional
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
     25** In addition, as a special exception, ia gives you certain additional
     26** rights.  These rights are described in the ia Qt LGPL Exception
    2627** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2728**
     
    3435** met: http://www.gnu.org/copyleft/gpl.html.
    3536**
    36 ** If you have questions regarding the use of this file, please contact
    37 ** Nokia at [email protected].
     37**
    3838** $QT_END_LICENSE$
    3939**
  • branches/vendor/nokia/qt/current/demos/chip/mainwindow.h

    r844 r1156  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    4 ** All rights reserved.
    5 ** Contact: Nokia Corporation ([email protected])
     3** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
     4** Contact: http://www.qt-project.org/legal
    65**
    76** This file is part of the demonstration applications of the Qt Toolkit.
    87**
    98** $QT_BEGIN_LICENSE:LGPL$
    10 ** Commercial Usage
    11 ** Licensees holding valid Qt Commercial licenses may use this file in
    12 ** accordance with the Qt Commercial License Agreement provided with the
     9** Commercial Usage
     10** Licensees holding valid licenses may use this file in
     11** accordance with the greement provided with the
    1312** Software or, alternatively, in accordance with the terms contained in
    14 ** a written agreement between you and Nokia.
     13** a written agreement between you and Digia.  For licensing terms and
     14** conditions see http://qt.digia.com/licensing.  For further information
     15** use the contact form at http://qt.digia.com/contact-us.
    1516**
    1617** GNU Lesser General Public License Usage
     
    2223** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2324**
    24 ** In addition, as a special exception, Nokia gives you certain additional
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
     25** In addition, as a special exception, ia gives you certain additional
     26** rights.  These rights are described in the ia Qt LGPL Exception
    2627** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2728**
     
    3435** met: http://www.gnu.org/copyleft/gpl.html.
    3536**
    36 ** If you have questions regarding the use of this file, please contact
    37 ** Nokia at [email protected].
     37**
    3838** $QT_END_LICENSE$
    3939**
  • branches/vendor/nokia/qt/current/demos/chip/view.cpp

    r844 r1156  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    4 ** All rights reserved.
    5 ** Contact: Nokia Corporation ([email protected])
     3** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
     4** Contact: http://www.qt-project.org/legal
    65**
    76** This file is part of the demonstration applications of the Qt Toolkit.
    87**
    98** $QT_BEGIN_LICENSE:LGPL$
    10 ** Commercial Usage
    11 ** Licensees holding valid Qt Commercial licenses may use this file in
    12 ** accordance with the Qt Commercial License Agreement provided with the
     9** Commercial Usage
     10** Licensees holding valid licenses may use this file in
     11** accordance with the greement provided with the
    1312** Software or, alternatively, in accordance with the terms contained in
    14 ** a written agreement between you and Nokia.
     13** a written agreement between you and Digia.  For licensing terms and
     14** conditions see http://qt.digia.com/licensing.  For further information
     15** use the contact form at http://qt.digia.com/contact-us.
    1516**
    1617** GNU Lesser General Public License Usage
     
    2223** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2324**
    24 ** In addition, as a special exception, Nokia gives you certain additional
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
     25** In addition, as a special exception, ia gives you certain additional
     26** rights.  These rights are described in the ia Qt LGPL Exception
    2627** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2728**
     
    3435** met: http://www.gnu.org/copyleft/gpl.html.
    3536**
    36 ** If you have questions regarding the use of this file, please contact
    37 ** Nokia at [email protected].
     37**
    3838** $QT_END_LICENSE$
    3939**
     
    4949#include <qmath.h>
    5050
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
    5164View::View(const QString &name, QWidget *parent)
    5265    : QFrame(parent)
    5366{
    5467    setFrameStyle(Sunken | StyledPanel);
    55     graphicsView = new QGraphicsView;
     68    graphicsView = new ;
    5669    graphicsView->setRenderHint(QPainter::Antialiasing, false);
    5770    graphicsView->setDragMode(QGraphicsView::RubberBandDrag);
    5871    graphicsView->setOptimizationFlags(QGraphicsView::DontSavePainterState);
    5972    graphicsView->setViewportUpdateMode(QGraphicsView::SmartViewportUpdate);
     73
    6074
    6175    int size = style()->pixelMetric(QStyle::PM_ToolBarIconSize);
     
    112126    QHBoxLayout *labelLayout = new QHBoxLayout;
    113127    label = new QLabel(name);
     128
     129
     130
     131
     132
     133
     134
     135
     136
    114137    antialiasButton = new QToolButton;
    115138    antialiasButton->setText(tr("Antialiasing"));
     
    127150    printButton->setIcon(QIcon(QPixmap(":/fileprint.png")));
    128151
     152
     153
     154
     155
     156
    129157    labelLayout->addWidget(label);
     158
     159
     160
     161
    130162    labelLayout->addStretch();
    131163    labelLayout->addWidget(antialiasButton);
     
    146178    connect(graphicsView->verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(setResetButtonEnabled()));
    147179    connect(graphicsView->horizontalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(setResetButtonEnabled()));
     180
     181
    148182    connect(antialiasButton, SIGNAL(toggled(bool)), this, SLOT(toggleAntialiasing()));
    149183    connect(openGlButton, SIGNAL(toggled(bool)), this, SLOT(toggleOpenGL()));
     
    159193QGraphicsView *View::view() const
    160194{
    161     return graphicsView;
     195    return ;
    162196}
    163197
     
    187221    graphicsView->setMatrix(matrix);
    188222    setResetButtonEnabled();
     223
     224
     225
     226
     227
     228
     229
     230
    189231}
    190232
     
    213255}
    214256
    215 void View::zoomIn()
    216 {
    217     zoomSlider->setValue(zoomSlider->value() + 1);
    218 }
    219 
    220 void View::zoomOut()
    221 {
    222     zoomSlider->setValue(zoomSlider->value() - 1);
     257void View::zoomIn()
     258{
     259    zoomSlider->setValue(zoomSlider->value() + );
     260}
     261
     262void View::zoomOut()
     263{
     264    zoomSlider->setValue(zoomSlider->value() - );
    223265}
    224266
  • branches/vendor/nokia/qt/current/demos/chip/view.h

    r844 r1156  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    4 ** All rights reserved.
    5 ** Contact: Nokia Corporation ([email protected])
     3** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
     4** Contact: http://www.qt-project.org/legal
    65**
    76** This file is part of the demonstration applications of the Qt Toolkit.
    87**
    98** $QT_BEGIN_LICENSE:LGPL$
    10 ** Commercial Usage
    11 ** Licensees holding valid Qt Commercial licenses may use this file in
    12 ** accordance with the Qt Commercial License Agreement provided with the
     9** Commercial Usage
     10** Licensees holding valid licenses may use this file in
     11** accordance with the greement provided with the
    1312** Software or, alternatively, in accordance with the terms contained in
    14 ** a written agreement between you and Nokia.
     13** a written agreement between you and Digia.  For licensing terms and
     14** conditions see http://qt.digia.com/licensing.  For further information
     15** use the contact form at http://qt.digia.com/contact-us.
    1516**
    1617** GNU Lesser General Public License Usage
     
    2223** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2324**
    24 ** In addition, as a special exception, Nokia gives you certain additional
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
     25** In addition, as a special exception, ia gives you certain additional
     26** rights.  These rights are described in the ia Qt LGPL Exception
    2627** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2728**
     
    3435** met: http://www.gnu.org/copyleft/gpl.html.
    3536**
    36 ** If you have questions regarding the use of this file, please contact
    37 ** Nokia at [email protected].
     37**
    3838** $QT_END_LICENSE$
    3939**
     
    4444
    4545#include <QFrame>
     46
    4647
    47 QT_FORWARD_DECLARE_CLASS(QGraphicsView)
    4848QT_FORWARD_DECLARE_CLASS(QLabel)
    4949QT_FORWARD_DECLARE_CLASS(QSlider)
    5050QT_FORWARD_DECLARE_CLASS(QToolButton)
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
     64
     65
    5166
    5267class View : public QFrame
     
    5873    QGraphicsView *view() const;
    5974
     75
     76
     77
     78
    6079private slots:
    6180    void resetView();
    6281    void setResetButtonEnabled();
    6382    void setupMatrix();
     83
    6484    void toggleOpenGL();
    6585    void toggleAntialiasing();
    6686    void print();
    67 
    68     void zoomIn();
    69     void zoomOut();
    7087    void rotateLeft();
    7188    void rotateRight();
    72    
     89
    7390private:
    74     QGraphicsView *graphicsView;
     91    GraphicsView *graphicsView;
    7592    QLabel *label;
     93
     94
     95
    7696    QToolButton *openGlButton;
    7797    QToolButton *antialiasButton;
Note: See TracChangeset for help on using the changeset viewer.