summaryrefslogtreecommitdiff
path: root/src/plugins/cpaster
Commit message (Collapse)AuthorAgeFilesLines
* CPaster: Fix compile for some older compilerChristian Stenger2018-08-311-2/+2
| | | | | Change-Id: I32d9f29aa091cb1a9e44b4ce8d519e6ee1aa403a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* CodePaster: Add support for pastecode.xyzChristian Kandeler2018-08-318-2/+219
| | | | | | | | | | | | | Our users are running out of choices for code pasting: KDE has required an account for quite a while now, and pastebin.ca appears to be offline, leaving them only with the ad-heavy pastebin.com. Therefore, we add support for a new site: pastecode.xyz seems responsive enough, has a simple API and has been around for a bit. [ChangeLog] Added support for the pastecode.xyz code pasting service Change-Id: I9b622853df24c28d65c6e388f953c82fc5380fae Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Make it possible to request authenticationFilipe Azevedo2018-06-142-0/+39
| | | | | | | | | | | | | | This still require each backends to connect to the signal and pass their host url like this: connect(this, &NetworkProtocol::authenticationRequired, this, [this](QNetworkReply *reply, QAuthenticator *authenticator) { requestAuthentication(QUrl(QString::fromLatin1(PASTEBIN_BASE)), reply, authenticator); }); Change-Id: Ia07e74f390b13f39c4f50c7514af03e9a39ac168 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CPaster: Let cpaster finish on consoleChristian Stenger2018-06-141-0/+1
| | | | | | | | | | | | If cpaster is used from command line and KDE paster is used as protocol we have no appropriate way to specify the credentials yet. Emit a signal to avoid letting the application wait infinitely. Change-Id: I7895d5211f1573fae0f69d2ea76532dec53b8d98 Reviewed-by: Filipe Azevedo <filipe.azevedo@kdab.com> Reviewed-by: hjk <hjk@qt.io>
* Enable GUI paster in Qbs buildsFilipe Azevedo2018-06-131-0/+1
| | | | | | | | This is unconditionally enabled in qmake builds already. Change-Id: Id80656f4889b7df33c83e9fab2f8ef87f9de7dc6 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Update Options dialog iconsAlessandro Portale2018-04-245-2/+4
| | | | | | | | | A new set of scalable and themable icons with unified look as provided by Diana. Task-number: QTCREATORBUG-20325 Change-Id: I68498b034e9e43fbb61511a38d9c7fc0003ab076 Reviewed-by: hjk <hjk@qt.io>
* Clean up options page category display name and icon set upEike Ziller2018-04-233-6/+2
| | | | | | | | | | | | | | In cases where plugins extend an existing settings category of a plugin that they depend on anyhow, they do not need to specify the translated display name and icon for that category. Some options pages were already not setting the icon, but still the translated name, which makes even less sense. Clean up this mess, only setting display name and icon if that is necessary. Change-Id: I8bc9d0c51b11d48f1d847337838704d663e70b45 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Don't translate default windowTitle again and againRobert Loehning2018-03-062-2/+2
| | | | | Change-Id: I4b4ff16e02c517bcd5a7c5ae73f62dd2a5bcc7cc Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* CodePaster: Avoid use of global object poolhjk2018-02-074-8/+6
| | | | | Change-Id: Ib81694d9dd3e8d040adc9ca12e9296e5cceb8208 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Core: make useMacShortcut constexprDavid Schulz2018-02-021-2/+2
| | | | | Change-Id: I293b96428784b6efecac6dae4f2f9690af0027da Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Move HTML out of translated stringsRobert Loehning2018-01-241-1/+2
| | | | | | | | Change-Id: I4664427086619f33e9a882eb3f0a5f2f52e1b42a Reviewed-by: Jochen Becher <jochen_becher@gmx.de> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/4.5'Eike Ziller2017-10-251-0/+2
|\ | | | | | | Change-Id: Iceaa4ca40b5318744bde8a76c6d3ccca08df71bb
| * CPaster: Fix translation issueEike Ziller2017-10-231-0/+2
| | | | | | | | | | Change-Id: Ic01818e3789d9d4bc2c8ebded167e1e81c798133 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Treat .ui.qml mime type the same as .qmlUlf Hermann2017-10-181-0/+1
|/ | | | | | | | | Right now, the qmake project manager offers a "Build" context menu entry for .ui.qml files and various other things are off because the mime types are different. Change-Id: Icc966e56513b9c5aed05f929dc8cb728ed408723 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* CPaster: Clean forward declarationLaurent Montel2017-09-271-2/+0
| | | | | Change-Id: I05126edb499cff64bd83839933ad831d9845e0e3 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix copyright year in plugin info, --version, and macOS infoEike Ziller2017-08-241-1/+1
| | | | | | | | By using the new QTCREATOR_COPYRIGHT_YEAR variable Task-number: QTCREATORBUG-18612 Change-Id: I3bcf0319660d210436d3130c00f43325c460a66c Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Merge remote-tracking branch 'origin/4.3' into masterOrgad Shaneh2017-05-231-2/+2
|\ | | | | | | Change-Id: I01ab8c85ea3372b6dce4142ddb9cf92d903ffca6
| * CPaster: Fix fetching from pastebin.caChristian Stenger2017-05-181-2/+2
| | | | | | | | | | Change-Id: If41c89dddfd556607dccd940f289408012680e82 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | Merge remote-tracking branch 'origin/4.3'Eike Ziller2017-05-151-2/+2
|\ \ | |/ | | | | | | | | | | | | Conflicts: qbs/modules/qtc/qtc.qbs qtcreator.pri Change-Id: I6d89ea588de955f5d878500b59285d3adde6c77d
| * CPaster: Fix URLs for pastebin.caChristian Stenger2017-05-111-2/+2
| | | | | | | | | | | | | | | | Protocol switched to HTTPS recently. Task-number: QTCREATORBUG-18192 Change-Id: I467534142478f5511e645a2e959ad3422640a0a6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | Reduce usage of qApp in favor of static function callsAlessandro Portale2017-04-242-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Q*Application classes have unusually many static functions. In many cases in our code, these functions are unnecessarily called as instance functions, using the qApp helper. This patch replaces many occurencies of qApp with the according Q*Application classname. Change-Id: I6099a419fa7bf969891269c37ed7a9e817ef5124 Reviewed-by: hjk <hjk@qt.io>
* | Use QString::*Ref methodMontel Laurent2017-04-211-1/+1
|/ | | | | | | Change-Id: I63a10f274dd17e08b5b8a2577762cc9f7960b5af Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CPaster: Fix pasting to KDE pasterChristian Stenger2017-04-128-12/+290
| | | | | | | | | Add minimal handling for credentials. Task-number: QTCREATORBUG-17942 Change-Id: I5f3821fa944fa7800bd1f51947f46d301e2b00b8 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: hjk <hjk@qt.io>
* CPaster: Fix fetching list of pastebin.caChristian Stenger2017-04-041-45/+28
| | | | | | | | | | Page now uses websockets internally that updates respective content asynchronously. Initial GET of the page only fetches an empty list - work around by using a pre-constructed json array that is contained within the initial content. Change-Id: Id8619450ecc758057fce23079e7eed6de8abe5dc Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* CPaster: Fix accessing pastebin.comChristian Stenger2017-03-311-1/+1
| | | | | | | URL now uses http with ssl. Change-Id: Iaa2bedf6710e30a280fa72b430ec3b67bce08d65 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Utils: Wrap MimeDatabase into static functionshjk2017-03-031-2/+1
| | | | | | | | To avoid repeating the 'MimeDatabase mdb; mdb.something(); ' mantra all over the place. Change-Id: I4bfef62e73275a991455141671d6071162788e9d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CPaster: Replace 0 by nullptrMontel Laurent2017-02-279-11/+11
| | | | | Change-Id: Ic916a6b464951ea319345333c0c7188852f58d8c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove spaces in initializer listsTim Jenssen2017-02-222-8/+8
| | | | | | | Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by: hjk <hjk@qt.io>
* Replace a few occurrences of QStringList() << ...hjk2017-02-081-3/+3
| | | | | | | ... by something shorter. Change-Id: I363b4e509adb07997517b2d233246a333aea4aea Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Introduce a TemporaryDirectory and TemporaryFile classTobias Hunger2017-01-202-4/+5
| | | | | | | | Both wrap the corresponding Qt class, but make sure all temporary files or directories are created inside a "master temporary directory". Change-Id: I55461be507c828c965224c02863ea5ed9bbf9498 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Core: Make IOptionsPage::categoryIcon a Utils::IconAlessandro Portale2016-09-201-1/+1
| | | | | | | This is necessary for themable + HighDPI icons in the options dialog. Change-Id: I8e3ff87a24591af40bb76b39cd970443d7678fae Reviewed-by: hjk <hjk@qt.io>
* UI files: Fix tab order in lots of UI formsNazar Gerasymchuk2016-08-023-1/+15
| | | | | | | | | | For unknown reasons tab order in listed UI files was set incorrectly and behave unexpectedly. Now tab order behave naturally. Changes made for listed objects and touches only UI. Change-Id: I057b95eb21943ddb29b108682618382661db7be9 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* CPaster: Use Qt5-style connectOrgad Shaneh2016-05-302-3/+3
| | | | | Change-Id: I22cbec892d1f0cd347929308f6aab40d9483fd88 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Wholesale conversion to #pragma oncehjk2016-03-301-4/+1
| | | | | | | Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* CPaster: Fix handling of pastebin.comChristian Stenger2016-03-161-17/+5
| | | | | | Task-number: QTCREATORBUG-15856 Change-Id: I7084b3537522bb8c5322644bc30c5fe5503f58b2 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* CPaster: Fix failing slot connections...Christian Stenger2016-03-141-5/+4
| | | | | | | | ...and resulting failing fetch attempts. Task-number: QTCREATORBUG-15856 Change-Id: I94a0308a638021b13046b52b0c1f783202d27af0 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* CodePaster: Fix broken connectsTobias Hunger2016-02-101-3/+2
| | | | | | | | I broke some connects today, fix them by turning them into Qt5 style connects. Change-Id: I5aab2afcebbef5a5f36840352598c747d5d60477 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Polish: Remove some more useless "slots" from headersTobias Hunger2016-02-103-6/+3
| | | | | Change-Id: I9ba3b93e53e63153c1573d51c1aac53b7e088362 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* CodePaster: ModernizeTobias Hunger2016-02-1015-93/+48
| | | | | | | | * Use pragma once * Make some slots private members Change-Id: Iebc593f4cd6c690bedfcd1d4dfeb0882bf78ec74 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-1932-534/+379
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Merge remote-tracking branch 'origin/3.5'Eike Ziller2015-08-202-2/+2
|\ | | | | | | Change-Id: I65968dd02ea6bdd15f304ae567dd0c02238e6949
| * Preferences: Options pages need unique IDsEike Ziller2015-08-102-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Since we are referring to them by ID without specifying the category in addition. This requirement was implicitly added by 592ffe737794c59045b6d2f7964621ecfd44dea3 Task-number: QTCREATORBUG-14742 Change-Id: I7be539127b76de90c19b0282565d845fa42010ab Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
* | CodePaster: Add missing override modifiers.Christian Kandeler2015-08-202-3/+3
| | | | | | | | | | Change-Id: I94397c4b8f645b63666ff9c6c0b467d7fa44b259 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* | Cpaster: Fix RPATHChristian Stenger2015-07-141-2/+0
| | | | | | | | | | | | | | | | No additional RPATH magic necessary - cpaster gets it set already by including qtcreatortool.pri. Change-Id: I08af0ea47f0cd12608aed9caebe424be97531447 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* | Adapt RPATHs to new libexec path.Christian Kandeler2015-07-141-5/+0
|/ | | | | | Task-number: QTCREATORBUG-14725 Change-Id: I4b5c76faa878897ca7fbf1fe01945550a2d82964 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* CodePaster: Register type safe service objectEike Ziller2015-07-084-16/+74
| | | | | | | | | | | | Use Q_DECLARE_INTERFACE et al. This provides a way to have the dependency on code pasting optional in the using plugins (VCS, diff editor), while still being able to use a nice API to perform the pasting itself. Change-Id: Ia61e0066d552e45031f4aa7fd1f6693b68f92384 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* Cpaster frontend: Fix deploymentEike Ziller2015-06-231-8/+2
| | | | | | | | | | | | | On OS X we may not set QMAKE_RPATH because otherwise the default rpath to the Qt libs is removed. Install the tool on Windows and Linux. Add the plugins path to the rpath on Linux. Also make the rpath when building relative instead of absolute on Linux. Change-Id: Ieb6a79d9f9f922d117736ae7b4ae65c784ade5c9 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* CPaster: Introduce override.Friedemann Kleint2015-06-1710-60/+60
| | | | | Change-Id: I0c002895a6585fac79c8aa1d773b68c4a1540916 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* CPaster: Introduce member initialization.Friedemann Kleint2015-06-1716-72/+27
| | | | | | | Remove/simplify constructors accordingly. Change-Id: I27ac0281a89dfadefb1f7837d99ce185745b7aae Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* CPaster: Remove unneeded declarationhjk2015-05-071-1/+0
| | | | | Change-Id: Idba2af421e07f09b89392b490d0b2eb388553ec9 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>