summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Threaded fortune server example: update the screenshotGiuseppe D'Angelo2012-12-011-0/+0
| | | | | | | | It didn't match the reality any more (now it shows an IP address as well as the chosen port). Change-Id: I7b942313ad5246a72186e3b9c93e54af8ab7a5ae Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix compile with -DQT_NO_WIZARDMontel Laurent2012-12-011-0/+1
| | | | | Change-Id: I6f7be895b8c4a1a65de43ee35d1fab25a30a25c6 Reviewed-by: David Faure <david.faure@kdab.com>
* Fix memory leak when error reportedMontel Laurent2012-12-011-0/+4
| | | | | Change-Id: I0c4c0baed8f2a734b3986b0d446cd58df705f7e4 Reviewed-by: David Faure <david.faure@kdab.com>
* QtBase: Remove Meamo part and fix link in documentationDavid Schulz2012-11-301-15/+1
| | | | | | | ... for Application Icon Example Change-Id: I2efa0b49a13889db8b706523d06bf317d35cad4f Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Docs: Moved layout example's image do correct locationOliver Wolff2012-11-302-0/+0
| | | | | Change-Id: I85c6812d8d172c92fc4322d4300721e0f45f34e7 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Doc: Grouped the SQL example pages under sql_examples groupVenugopal Shivashankar2012-11-308-0/+8
| | | | | Change-Id: I98b9cb2acafe82e89d9d170e0f66251180011caa Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* Fix links for threading examplesPaul Olav Tvete2012-11-3013-0/+830
| | | | | Change-Id: I498936e91e3bbf5658ea9f3f0eb33cff271a1d62 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* QtBase: Docs: remove deprecated Q_EXPORT_PLUGIN2David Schulz2012-11-301-9/+4
| | | | | | | ... and add description for Q_PLUGIN_METADATA Change-Id: Ie389787df53d3cdfa27ba8fb0e77f32df1597c4f Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Fix example documentation for OpenGL module and (widget) Tools.Gunnar Sletta2012-11-3021-130/+21
| | | | | Change-Id: Id9dc39752bcae915f618e1a5696115a5e6923251 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* Docs: Moved mainwindow example's image do correct locationOliver Wolff2012-11-301-0/+0
| | | | | Change-Id: Idc22e18aa73fed293f629bdccc438567298f1274 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Fix memory leak. PrinterDialog is not deleted when close itMontel Laurent2012-11-305-14/+16
| | | | | Change-Id: I9f0a300cdaf9803bc2ad723946ac4d0f825cc28b Reviewed-by: David Faure <david.faure@kdab.com>
* Fix broken links in the QtWidgets examples.Gunnar Sletta2012-11-301-0/+0
| | | | | | | | I remove the widgets examples from the gui docs as they will introduce broken duplicates (under doc/qtgui/...). Change-Id: I54255ceaf4187477da3e82f6809be41fb98378a2 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* Fix linking in painting, richtext and desktop examplesGunnar Sletta2012-11-3017-2/+45
| | | | | Change-Id: If08b2c3366610f74201ab6736f216f1a7d29b3c7 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* Fix docs for Drag and Drop examplesPaul Olav Tvete2012-11-303-0/+360
| | | | | | Change-Id: Ic1622b64603f7634b697bd7d8412dcc9f1a8c3fa Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* QtBase: Fix painting example arthur background colorDavid Schulz2012-11-302-5/+40
| | | | | | | | | | | | | | | The arthur style set the background color to a bright color and leave the foregroud color, for example for text, untouched. If you are using a color theme with bright foregroundcolors on your system this will result in unreadable text on push- and radio-buttons. The function drawControl is now reimplemented and the labels with text are drawn with an appropriate color. Change-Id: Ifd7f3a2b1c0305130255009c7733e0966830171a Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* centralize and fixup example sources install targetsOswald Buddenhagen2012-11-29304-1050/+295
| | | | | | | | | | | | | it's confusing for the users if the examples' project files contain code to install their own sources. also, this constitutes an enormous code duplication, and lots of mistakes. consequently, automate it. more or less as a side effect, this also removes the entirely meaningless target installs in subdirs projects. Task-number: QTBUG-28184 Change-Id: I9fc1367a06db9e2c46aeb67d68729a4f67163ef9 Reviewed-by: hjk <qthjk@ovi.com>
* remove the dependency to QT_BUILD_TREEJing Bai2012-11-291-1/+1
| | | | | | | | | | To fix a build problem when plugandpaint is not built with qt src. QT_BUILD_TREE is not set in this case. We use a relative path instead. Task-number: QTBUG-28261 Change-Id: I2456614070f0849ba9400fbe4b76172189e3925f Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Add \brief to the examples.Eike Ziller2012-11-29135-138/+138
| | | | | | | | | That is used by qdoc to generate brief descriptions for the example manifests. Change-Id: I142a6d3259f90d0c9990033b3c36e139062ac343 Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: hjk <qthjk@ovi.com>
* re-enable coloreditorfactory and stardelegate examplesOswald Buddenhagen2012-11-281-1/+3
| | | | | | Change-Id: I99b1a1967973ea28acd9e37c922f96e9dca8875d Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* dbus-chat => chatOswald Buddenhagen2012-11-287-1/+1
| | | | | | | to make the source and install locations consistent Change-Id: Ifde8748eeab843b06bf79f941fa4789b5b68cca9 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* remove rather useless text fileOswald Buddenhagen2012-11-281-4/+0
| | | | | | | somebody who cares can find the information in the git log Change-Id: I97dff4ab33a773247e1320ba6491e6377a2b94e7 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* remove apparently unused fileOswald Buddenhagen2012-11-281-8/+0
| | | | | Change-Id: Ie8b60b9e63c5783674cbac3bbe277f58d3059ea3 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* remove meaningless OTHER_FILES assignmentsOswald Buddenhagen2012-11-282-6/+0
| | | | | | Change-Id: Id3d5690d5b174e5374332158709365ab431f660b Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* README.txt => READMEOswald Buddenhagen2012-11-281-0/+0
| | | | | | | use the same naming everywhere Change-Id: Ic9106a17eb0979278f12f2ea2b7c1a04bc448745 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* delete .desktop files of examplesOswald Buddenhagen2012-11-28219-2409/+0
| | | | | | | | | they were added without an explanation, and they can't be particularly useful (because they contain hard-coded paths and refer to non-existing icons). Change-Id: I27e2c35375e28645b0c03449ddc7ac7017da5943 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Always use QAIM to get the default flags.Stephen Kelly2012-11-286-7/+7
| | | | | Change-Id: I801f5c8023e3e3672fde28139a7f34f640e650f5 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Examples: move widgets specific "tools" examples to the correct placeJ-P Nurmi2012-11-28204-157/+168
| | | | | | | examples/tools -> examples/widgets/tools Change-Id: I8b9e23c45e07ce5cd9da8f24a9a9f7ae10b2b107 Reviewed-by: hjk <qthjk@ovi.com>
* Change copyright information from Nokia to DigiaSergio Ahumada2012-11-271-3/+3
| | | | | | | Task-number: QTBUG-28156 Change-Id: Id6b1cd83155c61b0d3ead2d185b8968511d4a23f Reviewed-by: Robert Loehning <robert.loehning@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Update the StylePlugin exampleJ-P Nurmi2012-11-272-14/+18
| | | | | | | | | QWindowsStyle will soon become an internal class, inherit SimpleStyle from QProxyStyle. The documentation has been updated accordingly. Change-Id: Ib55f59729e980b93276e9c2903f13b5e46612ac8 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Remove remaning TARGET.EPOCHEAPSIZE settings from examples.hjk2012-11-272-4/+0
| | | | | | | Not needed anymore. Change-Id: I28b6566e1498afb68295c16e8786fe8bc0256361 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Fixed abbreviations in QWindow::framePos() and QWindow::setFramePos().Samuel Rødal2012-11-271-2/+2
| | | | | | | | | | | | As 672e7c875e8680818e23d0aef98129d95eb7e91c did changing pos() to position() and setPos() to setPosition(). Luckily there's not much code that uses these. Change-Id: I1e1982f00412a22bd376e667a5e8c30b6149f9b5 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Examples: inherit NorwegianWoodStyle from QProxyStyleJ-P Nurmi2012-11-263-18/+26
| | | | | | | | | | | | | | The QStyle specializations are being made internal. The recommended way to customize styles is now to use QProxyStyle (& QStyleFactory), or to implement a full custom style one can alternatively subclass QCommonStyle. The proxy style approach was chosen for this case, since the example assumes some drawing functionality provided by the windows style and it is not a "complete" custom style implementation but more like a customization anyway. Change-Id: Ib2477339cfef258cfc944a76a2eea728066e1f45 Reviewed-by: Geir Vattekar <geir.vattekar@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Widgets/Painting examples: inherit ArthurStyle from QCommonStyleJ-P Nurmi2012-11-262-12/+12
| | | | | | | | | The QStyle specializations are being made internal. The ArthurStyle does not seem to require anything from QWindowsStyle, but QCommonStyle as a base class gives just as nice looks. Change-Id: I5ad8dd881e03f166ae5d3aedccb2688952dc0a28 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Examples: Install to $$[QT_INSTALL_EXAMPLES]/$submodule/$examplehjk2012-11-26300-584/+584
| | | | | | | | This makes the structure of the examples after an 'make install' similar to the one in a 'developer build'. Change-Id: I9120bd741fab332e64e30adc01cefe87e5633454 Reviewed-by: Martin Smith <martin.smith@digia.com>
* LocaleSelector: Replace hard-coded impl with an algorithmic oneKonstantin Ritt2012-11-251-253/+23
| | | | | | | | The old implementation is just not acceptable! The new one is able to distinguigh locales by script. Change-Id: Ic772f6da8744825080f739e64af00267e5f82434 Reviewed-by: Denis Dzyubenko <denis@ddenis.info>
* QtBase: example code styleDavid Schulz2012-11-2532-93/+83
| | | | | Change-Id: I0685f7e2c7c698a4bf288b8b1ae909167932a3fb Reviewed-by: hjk <qthjk@ovi.com>
* QtBase: examples/widgets/richtext code styleDavid Schulz2012-11-2415-87/+90
| | | | | Change-Id: Ie0c27464e0fdb8f26caf0d8f27043da4ec45f41f Reviewed-by: hjk <qthjk@ovi.com>
* Prevent easing example warnings.Thomas Hartmann2012-11-231-2/+19
| | | | | | | | | | | | | | examples/widgets/animation/easing was spitting out a lot of "QEasingCurve: Invalid tcb curve" warnings. The reason was that in case of the TCP curve we do not provide defaults. The function createEasingCurve() now provides reasonable values for the custom curves to show what is possible and how to use them. Change-Id: I880d8d0f0ce2872ce2019f7d2e000f4c4ce136e2 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* QtBase: examples/widgets/graphicsview/ codestyleDavid Schulz2012-11-2349-302/+296
| | | | | Change-Id: I501066b5eb5a1557d510e0ec20b5270e8c12704a Reviewed-by: hjk <qthjk@ovi.com>
* QtBase: examples/widgets/painting code styleDavid Schulz2012-11-2337-264/+218
| | | | | Change-Id: I3d3c6f3bae20ac8383279437f8f89c92195a704f Reviewed-by: hjk <qthjk@ovi.com>
* QtBase: examples/widgets/itemviews code styleDavid Schulz2012-11-2266-385/+355
| | | | | Change-Id: I78a7745f7dc3add3fd7780220118d1b35b50a941 Reviewed-by: hjk <qthjk@ovi.com>
* QtBase: examples/widgets/itemviews/addressbook codestyleDavid Schulz2012-11-2211-73/+69
| | | | | Change-Id: I710d67018351c34ef14ac30edcca81aba7ff5ad3 Reviewed-by: hjk <qthjk@ovi.com>
* Remove warnings from qtbase.Mitch Curtis2012-11-212-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | geometryengine.cpp: In member function 'void GeometryEngine::drawCubeGeometry(QGLShaderProgram*)': geometryengine.cpp:159:93: warning: cast to pointer from integer of different sie [-Wint-to-pointer-cast] geometryengine.cpp:167:95: warning: cast to pointer f rom integer ofdifferent size [-Wint-to-pointer-cast] benchmarking.cpp: In member function 'void TestBenchmark::multiple()': benchmarking.cpp:85:9: warning: variable 'result' set but not used [-Wunused-but-set-variable] benchmarking.cpp: In member function 'void TestBenchmark::series()': benchmarking.cpp:120:9: warning: variable 'result' set but not used [-Wunused-but-set-variable] qstandarditemmodel.cpp:2717:45: warning: unused variable 'd' [-Wunused-variable] qxcbconnection.cpp: In member function 'xcb_timestamp_t QXcbConnection::getTimestamp()': qxcbconnection.cpp:930:40: warning: suggest parentheses around assignment used as truth value [-Wparentheses] tst_qguiapplication.cpp: In constructor 'BlockableWindow::BlockableWindow()': tst_qguiapplication.cpp:340:9: warning:'BlockableWindow::enters' will be initialized after [-Wreorder] tst_qguia pplication.cpp:339:9: warning 'int BlockableWindow::leaves' [-Wreorder] tst_qguiapplication.cpp:342:12: waring: when initialized here [-Wreorder] tst_qsqltablemodel.cpp:570:10: warning: unused parameter 'value' [-Wunused-parameter] tst_qabstractitemview.cpp:1546:8: warning: unused parameter 'index' [-Wunused-parameter] Change-Id: I49c88547182e4669cfde2c2536403fc5573ca2da Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Clean up diagramscene example's toolbutton icons.Mitch Curtis2012-11-216-4/+4
| | | | | | | | | | | | Remove artefacts from pointer.png. Replace several PNGs with images without artefacts (used FreeSerif as the font). Stopped scaling images up in MainWindow::createColorToolButtonIcon. Change-Id: I7adf2deea73b89c631d39d575804e8d3f58c9fe1 Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
* Fix building of examples.Friedemann Kleint2012-11-21182-355/+385
| | | | | | | | | | | - Correct install path of widget examples to contain widgets directory in target tree. - Add missing resources. Task-number: QTBUG-27977 Change-Id: If4cb117998892b0b165d7678367553d3a7553b91 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* QtBase: examples/widgets/layouts coding styleDavid Schulz2012-11-2110-18/+14
| | | | | Change-Id: I4340c1fcbb467bf3c2ace3b4bd4b042fe9521c35 Reviewed-by: hjk <qthjk@ovi.com>
* Merge branch 'newdocs'Eskil Abrahamsen Blomfeldt2012-11-2023-48/+92
|\ | | | | | | | | | | | | | | | | | | | | Added prepare_docs to qt_build_config.prf (it was added directly in configure in the source branch) Conflicts: configure tools/configure/configureapp.cpp Change-Id: I1337c69fc62b1c934e3e39b4409e4857440c9db8
| * Merge branch 'master' of ssh://codereview.qt-project.org/qt/qtbase into newdocsJerome Pasion2012-11-026-361/+0
| |\ | | | | | | | | | Change-Id: I7e6cee190a341901dfbf8effb54ebccb91bf7a17
| * \ Merge remote-tracking branch 'gerrit/master' into newdocsTor Arne Vestbø2012-10-261-1/+1
| |\ \ | | | | | | | | | | | | Change-Id: I10cf9f915c602c8e5a0e7d7c9e17b7bc5ca00640
| * | | Move validators example from qtdoc repo to qtbase repoJan Arve Saether2012-10-241-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | old path in qtdoc repo: doc/src/examples/widgets-validators.qdoc Change-Id: Ibf6cad9e7525fff3360cd0b99ce0911b864dea1d Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>