diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-05-04 14:52:47 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-05-05 12:35:11 +0000 |
commit | 97165f0cb89921439b4f0c9eee92d8599606ac04 (patch) | |
tree | 874458015aebdebda34398dd97131899d89edf37 /src/plugins/cpaster/fileshareprotocol.cpp | |
parent | 43a0e9d2c57cdbaf1c73cb5af2e4dbf6095ad59b (diff) |
CodePaster: Expose privacy setting
Let the user decide whether their pasted content is public. Default is
non-public, for safety reasons.
Task-number: QTCREATORBUG-23972
Change-Id: I5be444807d3f2cb41c629825715f0eaaa50d34c7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cpaster/fileshareprotocol.cpp')
-rw-r--r-- | src/plugins/cpaster/fileshareprotocol.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/plugins/cpaster/fileshareprotocol.cpp b/src/plugins/cpaster/fileshareprotocol.cpp index 3b821db4e3e..937165a3f2b 100644 --- a/src/plugins/cpaster/fileshareprotocol.cpp +++ b/src/plugins/cpaster/fileshareprotocol.cpp @@ -177,11 +177,15 @@ void FileShareProtocol::list() emit listDone(name(), entries); } -void FileShareProtocol::paste(const QString &text, - ContentType /* ct */, int /* expiryDays */, - const QString &username, - const QString & /* comment */, - const QString &description) +void FileShareProtocol::paste( + const QString &text, + ContentType /* ct */, + int /* expiryDays */, + bool /* publicPaste */, + const QString &username, + const QString & /* comment */, + const QString &description + ) { // Write out temp XML file Utils::TempFileSaver saver(m_settings->path + QLatin1Char('/') + QLatin1String(tempPatternC)); |