diff options
| author | Alessandro Portale <[email protected]> | 2025-08-19 15:47:15 +0200 |
|---|---|---|
| committer | Alessandro Portale <[email protected]> | 2025-09-04 13:21:52 +0000 |
| commit | 0173bce4610ad6a53ad27f601909787d5ef969dd (patch) | |
| tree | 2c6cc2a7f102977a060e831283e8e159f0dd88af /src/plugins/git/instantblame.cpp | |
| parent | 69efaf74879feac596fc706155f14bf40248376f (diff) | |
Utils: Work-around incorrectly themed icons
The selected application Qt::ColorScheme in Qt Creator can differ from
the system Qt::ColorScheme. On some Linux desktop environments, this may
lead to inappropriately colored icons being returned from
QIcon::fromTheme.
This change ensures that in this scenario, Qt Creator's own icons are
used instead of QIcon::fromTheme.
One usage of QIcon::fromTheme was changed to use the work-around code
path.
Fixes: QTCREATORBUG-33171
Change-Id: I439866983eb3bb05b573350cbc14385821cc62c1
Reviewed-by: Christian Stenger <[email protected]>
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/git/instantblame.cpp')
| -rw-r--r-- | src/plugins/git/instantblame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/git/instantblame.cpp b/src/plugins/git/instantblame.cpp index 8197eaf99a6..ccb3e1e5251 100644 --- a/src/plugins/git/instantblame.cpp +++ b/src/plugins/git/instantblame.cpp @@ -57,7 +57,7 @@ BlameMark::BlameMark(const FilePath &fileName, int lineNumber, const CommitInfo setSettingsPage(VcsBase::Constants::VCS_ID_GIT); setActionsProvider([info] { QAction *copyToClipboardAction = new QAction; - copyToClipboardAction->setIcon(QIcon::fromTheme("edit-copy", Utils::Icons::COPY.icon())); + copyToClipboardAction->setIcon(Icon::fromTheme("edit-copy")); copyToClipboardAction->setToolTip(TextEditor::Tr::tr("Copy Hash to Clipboard")); QObject::connect(copyToClipboardAction, &QAction::triggered, [info] { Utils::setClipboardAndSelection(info.hash); |
