Changeset 1156 for branches/vendor/nokia/qt/current/examples/sql
- Timestamp:
- Nov 7, 2014, 5:23:02 PM (11 years ago)
- Location:
- branches/vendor/nokia/qt/current/examples/sql
- Files:
-
- 35 edited
-
cachedtable/cachedtable.pro (modified) (1 diff)
-
cachedtable/main.cpp (modified) (4 diffs)
-
cachedtable/tableeditor.cpp (modified) (5 diffs)
-
cachedtable/tableeditor.h (modified) (4 diffs)
-
connection.h (modified) (3 diffs)
-
drilldown/drilldown.pro (modified) (1 diff)
-
drilldown/imageitem.cpp (modified) (3 diffs)
-
drilldown/imageitem.h (modified) (3 diffs)
-
drilldown/informationwindow.cpp (modified) (4 diffs)
-
drilldown/informationwindow.h (modified) (3 diffs)
-
drilldown/main.cpp (modified) (4 diffs)
-
drilldown/view.cpp (modified) (4 diffs)
-
drilldown/view.h (modified) (3 diffs)
-
masterdetail/database.h (modified) (3 diffs)
-
masterdetail/dialog.cpp (modified) (3 diffs)
-
masterdetail/dialog.h (modified) (3 diffs)
-
masterdetail/main.cpp (modified) (4 diffs)
-
masterdetail/mainwindow.cpp (modified) (5 diffs)
-
masterdetail/mainwindow.h (modified) (3 diffs)
-
masterdetail/masterdetail.pro (modified) (1 diff)
-
querymodel/customsqlmodel.cpp (modified) (4 diffs)
-
querymodel/customsqlmodel.h (modified) (3 diffs)
-
querymodel/editablesqlmodel.cpp (modified) (3 diffs)
-
querymodel/editablesqlmodel.h (modified) (3 diffs)
-
querymodel/main.cpp (modified) (5 diffs)
-
querymodel/querymodel.pro (modified) (1 diff)
-
relationaltablemodel/relationaltablemodel.cpp (modified) (4 diffs)
-
relationaltablemodel/relationaltablemodel.pro (modified) (1 diff)
-
sql.pro (modified) (1 diff)
-
sqlwidgetmapper/main.cpp (modified) (4 diffs)
-
sqlwidgetmapper/sqlwidgetmapper.pro (modified) (1 diff)
-
sqlwidgetmapper/window.cpp (modified) (3 diffs)
-
sqlwidgetmapper/window.h (modified) (3 diffs)
-
tablemodel/tablemodel.cpp (modified) (5 diffs)
-
tablemodel/tablemodel.pro (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/vendor/nokia/qt/current/examples/sql/cachedtable/cachedtable.pro
r556 r1156 12 12 13 13 symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri) 14 15 -
branches/vendor/nokia/qt/current/examples/sql/cachedtable/main.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** … … 52 52 53 53 TableEditor editor("person"); 54 55 56 54 57 editor.show(); 55 return editor.exec(); 58 #endif 59 return app.exec(); 56 60 } 57 61 //! [0] -
branches/vendor/nokia/qt/current/examples/sql/cachedtable/tableeditor.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** … … 46 46 //! [0] 47 47 TableEditor::TableEditor(const QString &tableName, QWidget *parent) 48 : Q Dialog(parent)48 : Q(parent) 49 49 { 50 50 model = new QSqlTableModel(this); … … 60 60 QTableView *view = new QTableView; 61 61 view->setModel(model); 62 62 63 //! [1] 63 64 -
branches/vendor/nokia/qt/current/examples/sql/cachedtable/tableeditor.h
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** … … 51 51 52 52 //! [0] 53 class TableEditor : public Q Dialog53 class TableEditor : public Q 54 54 { 55 55 Q_OBJECT -
branches/vendor/nokia/qt/current/examples/sql/connection.h
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/drilldown/drilldown.pro
r556 r1156 20 20 include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri) 21 21 } 22 23 24 -
branches/vendor/nokia/qt/current/examples/sql/drilldown/imageitem.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/drilldown/imageitem.h
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/drilldown/informationwindow.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** … … 97 97 displayedImage = imageFileEditor->currentText(); 98 98 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); 100 104 enableButtons(false); 101 105 setWindowTitle(tr("Office: %1").arg(locationText->text())); -
branches/vendor/nokia/qt/current/examples/sql/drilldown/informationwindow.h
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/drilldown/main.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** … … 57 57 view.show(); 58 58 #else 59 view.show FullScreen();59 view.show(); 60 60 #endif 61 61 #ifdef QT_KEYPAD_NAVIGATION -
branches/vendor/nokia/qt/current/examples/sql/drilldown/view.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** … … 63 63 logo->setPos(30, 515); 64 64 65 #if ndef Q_OS_SYMBIAN65 #if 66 66 setMinimumSize(470, 620); 67 67 setMaximumSize(470, 620); -
branches/vendor/nokia/qt/current/examples/sql/drilldown/view.h
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/masterdetail/database.h
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/masterdetail/dialog.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/masterdetail/dialog.h
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/masterdetail/main.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** … … 55 55 QFile *albumDetails = new QFile("albumdetails.xml"); 56 56 MainWindow window("artists", "albums", albumDetails); 57 58 59 57 60 window.show(); 61 58 62 return app.exec(); 59 63 } -
branches/vendor/nokia/qt/current/examples/sql/masterdetail/mainwindow.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** … … 78 78 layout->addWidget(albums, 1, 0); 79 79 layout->addWidget(details, 0, 1, 2, 1); 80 80 81 layout->setColumnStretch(1, 1); 81 82 layout->setColumnMinimumWidth(0, 500); 83 82 84 83 85 QWidget *widget = new QWidget; … … 87 89 88 90 showImageLabel(); 91 89 92 resize(850, 400); 93 90 94 setWindowTitle(tr("Music Archive")); 91 95 } -
branches/vendor/nokia/qt/current/examples/sql/masterdetail/mainwindow.h
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/masterdetail/masterdetail.pro
r767 r1156 20 20 include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri) 21 21 } 22 23 24 25 26 -
branches/vendor/nokia/qt/current/examples/sql/querymodel/customsqlmodel.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** … … 59 59 } 60 60 if (role == Qt::TextColorRole && index.column() == 1) 61 return qVariantFromValue(QColor(Qt::blue));61 return romValue(QColor(Qt::blue)); 62 62 return value; 63 63 } -
branches/vendor/nokia/qt/current/examples/sql/querymodel/customsqlmodel.h
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/querymodel/editablesqlmodel.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/querymodel/editablesqlmodel.h
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/querymodel/main.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** … … 53 53 } 54 54 55 void createView(const QString &title, QSqlQueryModel *model)55 ) 56 56 { 57 58 59 60 61 62 57 63 static int offset = 0; 58 64 59 QTableView *view = new QTableView;60 view->setModel(model);61 65 view->setWindowTitle(title); 62 66 view->move(100 + offset, 100 + offset); 63 67 offset += 20; 64 68 view->show(); 69 70 71 65 72 } 66 73 … … 79 86 initializeModel(&customModel); 80 87 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 84 99 85 100 return app.exec(); -
branches/vendor/nokia/qt/current/examples/sql/querymodel/querymodel.pro
r556 r1156 14 14 15 15 symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri) 16 17 -
branches/vendor/nokia/qt/current/examples/sql/relationaltablemodel/relationaltablemodel.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** … … 109 109 110 110 QTableView *view = createView(QObject::tr("Relational Table Model"), &model); 111 112 113 111 114 view->show(); 115 112 116 113 117 return app.exec(); -
branches/vendor/nokia/qt/current/examples/sql/relationaltablemodel/relationaltablemodel.pro
r556 r1156 10 10 11 11 symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri) 12 13 -
branches/vendor/nokia/qt/current/examples/sql/sql.pro
r767 r1156 18 18 INSTALLS += sources 19 19 20 symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri) -
branches/vendor/nokia/qt/current/examples/sql/sqlwidgetmapper/main.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** … … 47 47 QApplication app(argc, argv); 48 48 Window window; 49 50 51 49 52 window.show(); 53 50 54 return app.exec(); 51 55 } -
branches/vendor/nokia/qt/current/examples/sql/sqlwidgetmapper/sqlwidgetmapper.pro
r556 r1156 12 12 wince*: DEPLOYMENT_PLUGIN += qsqlite 13 13 14 15 16 -
branches/vendor/nokia/qt/current/examples/sql/sqlwidgetmapper/window.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/sqlwidgetmapper/window.h
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** -
branches/vendor/nokia/qt/current/examples/sql/tablemodel/tablemodel.cpp
r844 r1156 1 1 /**************************************************************************** 2 2 ** 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 6 5 ** 7 6 ** This file is part of the examples of the Qt Toolkit. … … 19 18 ** the documentation and/or other materials provided with the 20 19 ** distribution. 21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor22 ** the names of its contributors may be used to endorse or promote23 ** products derived from this software without specific prior written24 ** permission.20 ** * Neither the name of 21 ** 22 ** 23 ** 25 24 ** 26 25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS … … 35 34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36 35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 37 37 ** $QT_END_LICENSE$ 38 38 ** … … 55 55 } 56 56 57 QTableView *createView( const QString &title, QSqlTableModel *model)57 QTableView *createView() 58 58 { 59 59 QTableView *view = new QTableView; 60 60 view->setModel(model); 61 62 63 61 64 view->setWindowTitle(title); 65 62 66 return view; 63 67 } … … 73 77 initializeModel(&model); 74 78 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)")); 77 88 78 89 view1->show(); 79 90 view2->move(view1->x() + view1->width() + 20, view1->y()); 80 91 view2->show(); 92 81 93 82 94 return app.exec(); -
branches/vendor/nokia/qt/current/examples/sql/tablemodel/tablemodel.pro
r556 r1156 10 10 11 11 symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri) 12 13
Note:
See TracChangeset
for help on using the changeset viewer.
