summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Do not return null Display or Connection when there are no screensv5.5.0-rc1v5.5.0-beta1v5.5.05.5.0Jan Kundrát2015-03-131-2/+2
| | | | | | | | | | | | | This is a followup change for recent changes in QtGui which now handles a situation where there are no outputs, and hence a nullptr QScreen comes haunting us. Thanks to Martin Gräßlin for pointing out where the problem is, and to Richard Moore for explaining how to fix it. Change-Id: I8f70c7a0b232073d4edb55b29eb19dae9fc09413 Reviewed-by: Richard J. Moore <rich@kde.org> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
* Update copyright headersv5.5.0-alpha1Antti Kokko2015-02-165-32/+32
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I5b54cb4819a4d35dd9136d4250f83871bd15c449 Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Doc: corrected link issues qtx11extrasv5.4.25.4.2Nico Vertriest2015-02-042-2/+2
| | | | | | Task-number: QTBUG-34810 Change-Id: I53cb5667bf9ae5ec0b01f36ea02b3fb04a486fb5 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Doc: link issue to qmakeNico Vertriest2015-01-191-1/+1
| | | | | | Task-number: QTBUG-43810 Change-Id: I08d1de90da5817fadf2d6bf1e51f3e2da6453c80 Reviewed-by: Martin Smith <martin.smith@digia.com>
* Update license headers and add new licensesv5.4.0-alpha1Antti Kokko2014-08-243-56/+32
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: I173cdbf20a35132737586a9cdbfc2a6f209f6d6a Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* Doc: Removing url variable from qdocconf file.Jerome Pasion2014-07-071-1/+0
| | | | | | | -url inherited from the url variable set in qtbase/doc/global Change-Id: I8f79cadaa601ab1644a0f36cdfef7b271f39f65c Reviewed-by: Martin Smith <martin.smith@digia.com>
* QX11Info: add nextStartupId/setNextStartupId - for startup-notificationDavid Faure2014-04-122-0/+50
| | | | | | | | | | This controls what the next window to be shown will send as startup-notification message. http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt Change-Id: Ia1b5e6ba004d61ca6fdfd6683d2e22dfcd0c42fb Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com> Reviewed-by: Richard J. Moore <rich@kde.org>
* Doc: Remove references to nonexistent functionsSergio Ahumada2014-03-281-3/+3
| | | | | | | | | | | | | | - setAppDpiX() - setAppDpiY() - screen() they only exist in Qt 4.8. Change-Id: Ifca7cf9712a9b822b0776f413451d6bca7c69a37 Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com> Reviewed-by: Martin Gräßlin <mgraesslin@kde.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
* remove QtWidgets dependencyTasuku Suzuki2014-03-142-3/+2
| | | | | | | | | The module doesn't depend on QtWidgets any more. Change-Id: Ic8036ec1ee53ef8b1a3bb6c827fb815f322865a2 Reviewed-by: Martin Gräßlin <mgraesslin@kde.org> Reviewed-by: David Faure <david.faure@kdab.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Use nativeResourceForIntegration "rootWindow" to get the appRootWindowMartin Gräßlin2014-03-081-11/+4
| | | | | | | | As the native interface can provide the root window it's better to use that instead of going through QDesktopWidget. Change-Id: I0a7b475b5ef2a802f603b29762bf2d9033dfa13d Reviewed-by: David Faure <david.faure@kdab.com>
* Doc: Updated url variable in qdocconf files.v5.2.0-rc1v5.2.0Jerome Pasion2013-11-061-1/+1
| | | | | | | | | | | | | | In 5.2, the HTML output is in a flatter structure and when they are hosted in qt-project.org/doc, the documentation will be found at http://qt-project.org/doc/qt-$QT_VER The url variable is used by projects outside of Qt 5 which need to link to Qt 5 documentation, such as Qt Creator. Task-number: QTBUG-34584 Change-Id: I9ec7609bfeae7bcf393b61941052f921fc328db7 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* Properly get X screen application is running on in appScreenv5.2.0-beta1Martin Gräßlin2013-10-011-2/+15
| | | | | | | | | | | | | | | QDesktopWidget does not provide the X screen number. No matter on which X screen an application is started, QDesktopWidget returns 0. Therefore resolve the X screen through the native interface's x11 screen resource. The documentation is improved to make it more obvious that this is about the X screen and not the RandR screen. Change-Id: I0f78a728769cbdfcac8b67b4fd5de0934f498027 Reviewed-by: Richard J. Moore <rich@kde.org> Reviewed-by: David Faure <david.faure@kdab.com>
* Add a method to let users determine if the current platform is X11.v5.2.0-alpha1Richard J. Moore2013-09-092-0/+12
| | | | | | | | In order to know if the methods in QtX11Extras are usable the user should have a way to tell if they're running on X11. Change-Id: I096267eb1f1fe07ee11811574a96100389c33b7d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Add convenient method getTimestamp to QX11InfoMartin Gräßlin2013-08-122-0/+21
| | | | | | | | Provides access to the getTimestamp method in the XCB plugin which allows users to retrieve the current X timestamp. Change-Id: Ib6acd44c8ff899265ed6826f36b88fe427ff58c3 Reviewed-by: David Faure (KDE) <faure@kde.org>
* Doc: Setting \qtvariable in module page.Jerome Pasion2013-08-021-1/+1
| | | | | | | \qtvariable indicates the QT variable needed in .pro files. Change-Id: I11a7cfa2d72f0dcc3056152c00283670ffcef947 Reviewed-by: Martin Smith <martin.smith@digia.com>
* Doc: Setting navigation variables for the navigation bar.Jerome Pasion2013-06-261-1/+4
| | | | | | Change-Id: I0c53e5e14f01f39ccefe9fdc38e0680d7691fcbe Reviewed-by: David Faure (KDE) <faure@kde.org> Reviewed-by: Martin Smith <martin.smith@digia.com>
* Doc: Fix module inclusion detailsSze Howe Koh2013-05-242-6/+4
| | | | | | | | | - Show the correct "QT +=" option - Use a camel-case header (for the module's sole class) instead of an actual filename Change-Id: I9e030effe7ab34df1a877e1de327fb1e789c645a Reviewed-by: David Faure (KDE) <faure@kde.org>
* Doc: Fix module name in .qdocconfv5.1.0-beta1Topi Reinio2013-04-261-15/+15
| | | | | | | | | Use CamelCase for module name(s) used in in .qdocconf - this is required as qdoc will generate visible output (tags in example manifest files) based on these names. Change-Id: I11ddda5e3c15e9986ce132314d6acfa6839cab1b Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Doc: landing and module page for Qt X11 ExtrasNico Vertriest2013-04-123-2/+115
| | | | | | | | | Ingroup statement in qx11info_x11.cpp Removed trailing whitespace Change-Id: I03c16014f66a809f1c31b4501ffd1ca0691b5ee7 Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* doc: Minor changes to qtx11extras.qdocconfSergio Ahumada2013-04-081-34/+20
| | | | | | Change-Id: I0f8e6b3c4dc6a7ab00f69a0ce38e74d14b46c41a Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* doc: Minor changes to qdocconf filev5.1.0-alpha1Sergio Ahumada2013-04-021-2/+5
| | | | | | | | | | | - substitute fixed version numbers with variables - add url field - add version field - add description field Change-Id: Ia77b944ce13f8fe911c4fb86c52640ebf748fc99 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: David Faure (KDE) <faure@kde.org>
* Fix crash when qApp is a QCoreApplication.David Faure2013-03-261-0/+12
| | | | | | | | | | Yes, it makes little sense to call QX11Info API in such cases; but it happens currently in kio unittests which calls code which creates dialogs but never show them to the user (since they are unittests). With this fix, the tests pass. Change-Id: I96cd2080891a960aa405d98fd1801253930bde1e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Remove QT_BEGIN_HEADER/QT_END_HEADER macro usageDavid Faure2013-02-052-8/+0
| | | | | | | | These were just removed in qtbase dev. Change-Id: Id7683e7407cc4615ca3ed4bc2d262fa21bc3ba48 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* QX11Info: return unsigned long rather than Qt::HANDLE.David Faure2013-02-042-3/+3
| | | | | | | | Qt::HANDLE has changed from unsigned long (on X11) to void* (everywhere) in Qt5, so we have to use "unsigned long" explicitly here. Change-Id: I4b16d1492dcb43fde5a4637d33f049854bec898a Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* This library requires xcb, skip it on platforms where it's not availableDavid Faure2012-12-181-1/+3
| | | | | Change-Id: I5881b1d84b7e7ed0d5b2288d755abb1cb948052e Reviewed-by: Richard J. Moore <rich@kde.org>
* Rename "support" to "extras" everywhere, to match the new module nameDavid Faure2012-12-186-22/+22
| | | | | Change-Id: Ic089aa287b38b756bb9f0bc252c4120859afcefa Reviewed-by: Richard J. Moore <rich@kde.org>
* Port to the version of the appTime/appUserTime that got merged in.David Faure2012-12-181-8/+12
| | | | | | | (60bd2156f81 in qtbase) Change-Id: I95fabfba2d47e4d5e65df03cb95b0fe1fb69d6a7 Reviewed-by: Richard J. Moore <rich@kde.org>
* Implement appTime and appUserTime (getters and setters) on top of QPA.David Faure2012-12-051-13/+23
| | | | | | | | | Add unit test for QX11Info, taken from Qt4 and extended. Change-Id: I22f403f47bb5413b954c06f8cb78992e02726f6d Reviewed-by: Richard J. Moore <rich@kde.org> Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com>
* Initial creation of the qtx11support library.David Faure2012-12-056-0/+469
This implements QX11Info again, for source compat with Qt4, on top of the XCB QPA backend. The API and the documentation are forward-ported from Qt4 (minus things that cannot be implemented anymore). The implementation, however, is new (by Richard Moore, in this initial commit). Change-Id: Iff9fd16fa6aaaa54f6d3cc0843b6b6fd08d5b1fb Reviewed-by: Richard J. Moore <rich@kde.org> Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>