mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
HoloLens : Improve icons
This commit is contained in:
parent
5e15e1d8e6
commit
6bec1615e1
@ -25,16 +25,20 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QPixmap RiaQIconTools::appendPixmapUpperLeft(const QPixmap& pixmap, const QPixmap& overlayPixmap)
|
||||
{
|
||||
QPixmap scaledToFitIncoming;
|
||||
QPixmap scaledPixmap;
|
||||
{
|
||||
QSize size = pixmap.size() / 2;
|
||||
QSize size = pixmap.size() - pixmap.size() / 4;
|
||||
|
||||
scaledToFitIncoming = overlayPixmap.scaled(size);
|
||||
scaledPixmap = overlayPixmap.scaled(size);
|
||||
}
|
||||
|
||||
QPixmap pixmapWithSign(pixmap);
|
||||
QPainter painter(&pixmapWithSign);
|
||||
painter.drawPixmap(0, 0, scaledToFitIncoming);
|
||||
QPixmap combinedPixmap(pixmap);
|
||||
QPainter painter(&combinedPixmap);
|
||||
|
||||
return pixmapWithSign;
|
||||
int x = 0;
|
||||
int y = -4;
|
||||
|
||||
painter.drawPixmap(x, y, scaledPixmap);
|
||||
|
||||
return combinedPixmap;
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 859 B |
Loading…
Reference in New Issue
Block a user