Login  Register

Re: Need an icon for "Help Layer" in the layer widget.

Posted by stranger573 on Dec 27, 2014; 7:02pm
URL: https://forum.librecad.org/Need-an-icon-for-Help-Layer-in-the-layer-widget-tp5710864p5710886.html

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