diff options
author | hjk <hjk@qt.io> | 2023-07-06 09:57:16 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-07-07 09:02:29 +0000 |
commit | 91513a53ddfcd20beb219a235da9f603fafff742 (patch) | |
tree | 372e0fff25e0c220b8cd6e15eb93d6b598c92739 /src/plugins/cpaster/cpasterplugin.cpp | |
parent | 9f1b56e91aa34bb706bf2887d1cd06ca5d5ed376 (diff) |
Utils: Make aspect settings access implicit
Generally, aspects should use fromMap/toMap, but some older pages
use {from,to}Settings with always the same ICore::settings().
To make that less intrusive on the user code side, make that globally
implicit.
Task-number: QTCREATORBUG-29167
Change-Id: I29a8e23a31eb8061bb143e93931a07c6741eb7f9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cpaster/cpasterplugin.cpp')
-rw-r--r-- | src/plugins/cpaster/cpasterplugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp index a18b454c86..2a33dcfccb 100644 --- a/src/plugins/cpaster/cpasterplugin.cpp +++ b/src/plugins/cpaster/cpasterplugin.cpp @@ -132,7 +132,7 @@ CodePasterPluginPrivate::CodePasterPluginPrivate() } // Create the settings Page - m_settings.readSettings(ICore::settings()); + m_settings.readSettings(); connect(&m_urlOpen, &Protocol::fetchDone, this, &CodePasterPluginPrivate::finishFetch); @@ -251,7 +251,7 @@ void CodePasterPluginPrivate::post(QString data, const QString &mimeType) // Save new protocol in case user changed it. if (dialogResult == QDialog::Accepted && m_settings.protocols.value() != view.protocol()) { m_settings.protocols.setValue(view.protocol()); - m_settings.writeSettings(ICore::settings()); + m_settings.writeSettings(); } } @@ -282,7 +282,7 @@ void CodePasterPluginPrivate::fetch() // Save new protocol in case user changed it. if (m_settings.protocols.value() != dialog.protocol()) { m_settings.protocols.setValue(dialog.protocol()); - m_settings.writeSettings(ICore::settings()); + m_settings.writeSettings(); } const QString pasteID = dialog.pasteId(); |