summaryrefslogtreecommitdiff
path: root/vcl/qt5/QtInstanceImage.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-10-29 14:48:47 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-10-29 19:01:54 +0100
commita03853f2e62a7dd98e992cc8833285c3c835ed09 (patch)
tree37b8dd5bcd609f26499cfd3760ea8e722b0281c0 /vcl/qt5/QtInstanceImage.cxx
parenta2de9dd6b1b982c782daeb79da1291680408e319 (diff)
tdf#130857 qt weld: Implement QtInstanceImage::set_from_icon_name
This will get used e.g. by the "You are switching to the overwrite mode" dialog that gets shown when pressing the Insert key in Writer. Change-Id: Icea593ad65d643b647408c29482d64b9084d4cd3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175790 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/qt5/QtInstanceImage.cxx')
-rw-r--r--vcl/qt5/QtInstanceImage.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/qt5/QtInstanceImage.cxx b/vcl/qt5/QtInstanceImage.cxx
index ce63b3b03e50..7b39fb04c18a 100644
--- a/vcl/qt5/QtInstanceImage.cxx
+++ b/vcl/qt5/QtInstanceImage.cxx
@@ -18,9 +18,9 @@ QtInstanceImage::QtInstanceImage(QLabel* pLabel)
assert(m_pLabel);
}
-void QtInstanceImage::set_from_icon_name(const OUString&)
+void QtInstanceImage::set_from_icon_name(const OUString& rIconName)
{
- assert(false && "Not implemented yet");
+ m_pLabel->setPixmap(loadQPixmapIcon(rIconName));
}
void QtInstanceImage::set_image(VirtualDevice*) { assert(false && "Not implemented yet"); }