Math function icon in tool property browser.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2015-04-29 19:47:07 +03:00
parent ce101c10f5
commit 05ec681136
3 changed files with 2 additions and 0 deletions

View File

@ -57,5 +57,6 @@
<file>icon/16x16/template.png</file> <file>icon/16x16/template.png</file>
<file>icon/32x32/pdf.png</file> <file>icon/32x32/pdf.png</file>
<file>icon/24x24/fx.png</file> <file>icon/24x24/fx.png</file>
<file>icon/16x16/fx.png</file>
</qresource> </qresource>
</RCC> </RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

View File

@ -50,6 +50,7 @@ VFormulaPropertyEditor::VFormulaPropertyEditor(QWidget *parent)
ToolButton = new QToolButton(this); ToolButton = new QToolButton(this);
ToolButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Minimum); ToolButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Minimum);
ToolButton->setText("..."); ToolButton->setText("...");
ToolButton->setIcon(QIcon("://icon/16x16/fx.png"));
ToolButton->setFixedWidth(20); ToolButton->setFixedWidth(20);
ToolButton->installEventFilter(this); ToolButton->installEventFilter(this);
setFocusProxy(ToolButton); // Make the ToolButton the focus proxy setFocusProxy(ToolButton); // Make the ToolButton the focus proxy