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/examples/sql
Files:
35 edited

Legend:

Unmodified
Added
Removed
  • branches/vendor/nokia/qt/current/examples/sql/cachedtable/cachedtable.pro

    r556 r1156  
    1212
    1313symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
     14
     15
  • branches/vendor/nokia/qt/current/examples/sql/cachedtable/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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
     
    5252
    5353    TableEditor editor("person");
     54
     55
     56
    5457    editor.show();
    55     return editor.exec();
     58#endif
     59    return app.exec();
    5660}
    5761//! [0]
  • branches/vendor/nokia/qt/current/examples/sql/cachedtable/tableeditor.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
     
    4646//! [0]
    4747TableEditor::TableEditor(const QString &tableName, QWidget *parent)
    48     : QDialog(parent)
     48    : Q(parent)
    4949{
    5050    model = new QSqlTableModel(this);
     
    6060    QTableView *view = new QTableView;
    6161    view->setModel(model);
     62
    6263//! [1]
    6364
  • branches/vendor/nokia/qt/current/examples/sql/cachedtable/tableeditor.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
     
    5151
    5252//! [0]
    53 class TableEditor : public QDialog
     53class TableEditor : public Q
    5454{
    5555    Q_OBJECT
  • branches/vendor/nokia/qt/current/examples/sql/connection.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/drilldown/drilldown.pro

    r556 r1156  
    2020    include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
    2121}
     22
     23
     24
  • branches/vendor/nokia/qt/current/examples/sql/drilldown/imageitem.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/drilldown/imageitem.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/drilldown/informationwindow.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
     
    9797    displayedImage = imageFileEditor->currentText();
    9898
    99     setWindowFlags(Qt::Window);
     99    // Commented the following line. Now the window will look like dialog and the Qt will place the QDialogBox buttons to menu area in Symbian.
     100    // Too bad that the revert button is missing, Should the Qt place the buttons under Option menu in the menu area?!
     101    // If the Qt::Window flag was used, the background of window is white in symbian and the QLabels can't be regognized from the background.
     102
     103    //setWindowFlags(Qt::Window);
    100104    enableButtons(false);
    101105    setWindowTitle(tr("Office: %1").arg(locationText->text()));
  • branches/vendor/nokia/qt/current/examples/sql/drilldown/informationwindow.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/drilldown/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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
     
    5757    view.show();
    5858#else
    59     view.showFullScreen();
     59    view.show();
    6060#endif
    6161#ifdef QT_KEYPAD_NAVIGATION
  • branches/vendor/nokia/qt/current/examples/sql/drilldown/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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
     
    6363    logo->setPos(30, 515);
    6464
    65 #ifndef Q_OS_SYMBIAN
     65#if
    6666    setMinimumSize(470, 620);
    6767    setMaximumSize(470, 620);
  • branches/vendor/nokia/qt/current/examples/sql/drilldown/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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/masterdetail/database.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/masterdetail/dialog.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/masterdetail/dialog.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/masterdetail/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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
     
    5555    QFile *albumDetails = new QFile("albumdetails.xml");
    5656    MainWindow window("artists", "albums", albumDetails);
     57
     58
     59
    5760    window.show();
     61
    5862    return app.exec();
    5963}
  • branches/vendor/nokia/qt/current/examples/sql/masterdetail/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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
     
    7878    layout->addWidget(albums, 1, 0);
    7979    layout->addWidget(details, 0, 1, 2, 1);
     80
    8081    layout->setColumnStretch(1, 1);
    8182    layout->setColumnMinimumWidth(0, 500);
     83
    8284
    8385    QWidget *widget = new QWidget;
     
    8789
    8890    showImageLabel();
     91
    8992    resize(850, 400);
     93
    9094    setWindowTitle(tr("Music Archive"));
    9195}
  • branches/vendor/nokia/qt/current/examples/sql/masterdetail/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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/masterdetail/masterdetail.pro

    r767 r1156  
    2020    include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
    2121}
     22
     23
     24
     25
     26
  • branches/vendor/nokia/qt/current/examples/sql/querymodel/customsqlmodel.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
     
    5959    }
    6060    if (role == Qt::TextColorRole && index.column() == 1)
    61         return qVariantFromValue(QColor(Qt::blue));
     61        return romValue(QColor(Qt::blue));
    6262    return value;
    6363}
  • branches/vendor/nokia/qt/current/examples/sql/querymodel/customsqlmodel.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/querymodel/editablesqlmodel.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/querymodel/editablesqlmodel.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/querymodel/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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
     
    5353}
    5454
    55 void createView(const QString &title, QSqlQueryModel *model)
     55)
    5656{
     57
     58
     59
     60
     61
     62
    5763    static int offset = 0;
    5864
    59     QTableView *view = new QTableView;
    60     view->setModel(model);
    6165    view->setWindowTitle(title);
    6266    view->move(100 + offset, 100 + offset);
    6367    offset += 20;
    6468    view->show();
     69
     70
     71
    6572}
    6673
     
    7986    initializeModel(&customModel);
    8087
    81     createView(QObject::tr("Plain Query Model"), &plainModel);
    82     createView(QObject::tr("Editable Query Model"), &editableModel);
    83     createView(QObject::tr("Custom Query Model"), &customModel);
     88#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
     89    QTabWidget *tabWidget = new QTabWidget;
     90    tabWidget->addTab(createView(&plainModel), QObject::tr("Plain"));
     91    tabWidget->addTab(createView(&editableModel), QObject::tr("Editable"));
     92    tabWidget->addTab(createView(&customModel), QObject::tr("Custom"));
     93    tabWidget->showMaximized();
     94#else
     95    createView(&plainModel, QObject::tr("Plain Query Model"));
     96    createView(&editableModel, QObject::tr("Editable Query Model"));
     97    createView(&customModel, QObject::tr("Custom Query Model"));
     98#endif
    8499
    85100    return app.exec();
  • branches/vendor/nokia/qt/current/examples/sql/querymodel/querymodel.pro

    r556 r1156  
    1414
    1515symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
     16
     17
  • branches/vendor/nokia/qt/current/examples/sql/relationaltablemodel/relationaltablemodel.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
     
    109109
    110110    QTableView *view = createView(QObject::tr("Relational Table Model"), &model);
     111
     112
     113
    111114    view->show();
     115
    112116
    113117    return app.exec();
  • branches/vendor/nokia/qt/current/examples/sql/relationaltablemodel/relationaltablemodel.pro

    r556 r1156  
    1010
    1111symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
     12
     13
  • branches/vendor/nokia/qt/current/examples/sql/sql.pro

    r767 r1156  
    1818INSTALLS += sources
    1919
    20 symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
  • branches/vendor/nokia/qt/current/examples/sql/sqlwidgetmapper/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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
     
    4747    QApplication app(argc, argv);
    4848    Window window;
     49
     50
     51
    4952    window.show();
     53
    5054    return app.exec();
    5155}
  • branches/vendor/nokia/qt/current/examples/sql/sqlwidgetmapper/sqlwidgetmapper.pro

    r556 r1156  
    1212wince*: DEPLOYMENT_PLUGIN += qsqlite
    1313
     14
     15
     16
  • branches/vendor/nokia/qt/current/examples/sql/sqlwidgetmapper/window.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/sqlwidgetmapper/window.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
  • branches/vendor/nokia/qt/current/examples/sql/tablemodel/tablemodel.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 examples of the Qt Toolkit.
     
    1918**     the documentation and/or other materials provided with the
    2019**     distribution.
    21 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
    22 **     the names of its contributors may be used to endorse or promote
    23 **     products derived from this software without specific prior written
    24 **     permission.
     20**   * Neither the name of
     21**     
     22**     
     23**
    2524**
    2625** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     
    3534** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3635** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
     36
    3737** $QT_END_LICENSE$
    3838**
     
    5555}
    5656
    57 QTableView *createView(const QString &title, QSqlTableModel *model)
     57QTableView *createView()
    5858{
    5959    QTableView *view = new QTableView;
    6060    view->setModel(model);
     61
     62
     63
    6164    view->setWindowTitle(title);
     65
    6266    return view;
    6367}
     
    7377    initializeModel(&model);
    7478
    75     QTableView *view1 = createView(QObject::tr("Table Model (View 1)"), &model);
    76     QTableView *view2 = createView(QObject::tr("Table Model (View 2)"), &model);
     79#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
     80    QTabWidget *tabWidget = new QTabWidget;
     81    tabWidget->addTab(createView(&model), "View 1");
     82    tabWidget->addTab(createView(&model), "View 2");
     83
     84    tabWidget->showMaximized();
     85#else
     86    QTableView *view1 = createView(&model, QObject::tr("Table Model (View 1)"));
     87    QTableView *view2 = createView(&model, QObject::tr("Table Model (View 2)"));
    7788
    7889    view1->show();
    7990    view2->move(view1->x() + view1->width() + 20, view1->y());
    8091    view2->show();
     92
    8193
    8294    return app.exec();
  • branches/vendor/nokia/qt/current/examples/sql/tablemodel/tablemodel.pro

    r556 r1156  
    1010
    1111symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
     12
     13
Note: See TracChangeset for help on using the changeset viewer.