Re: Need an icon for "Help Layer" in the layer widget.
Posted by
dxli on
Dec 28, 2014; 4:27pm
URL: https://forum.librecad.org/Need-an-icon-for-Help-Layer-in-the-layer-widget-tp5710864p5710887.html
we keep copies of vector icons for the future, when different icons sizes or even scalable icons are needed.
As shown in the source code you posted, only fixed sizes are used for the current LC 2.0.
stranger573 wrote
Hi,
Yes, I found this. But I was interested in the frame size for icons.
I read the source code in the file qg_layerwidget.cpp.
It contains:
layerView->setColumnWidth(QG_LayerModel::VISIBLE, 16);
layerView->setColumnWidth(QG_LayerModel::LOCKED, 16);
layerView->setColumnWidth(QG_LayerModel::ConstructionLayer, 20);
From this I see that the sizes of the icons must be 16, 16, 20.
In this place the code there is an error for a set size. Here incorrectly calculates the size of the icons. The result after scaling we see that destroys the right edge of the icon.
I recompile LC with test icons. See attachments.
destroyed_right_border.png