Ejemplo n.º 1
0
IconButton::IconButton(QWidget *fader) :
    MouseHoverComposite(new MouseHoverable(this))
{
    setMouseHoverColor(WidgetSettings::iconButtonMouseOverColor());
    setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
    RecalcSize();
}
Ejemplo n.º 2
0
PushButton::PushButton(TBase *parent, std::string text)
: AbstractPushButton(parent)
{
	handle = (unsigned)this;
	setStyle(TStyleOption());
	setMouseHoverColor(TColor(1, COLOR_WHITE, COLOR_CYAN));

	if (text != std::string(nullstr))
		setText(text);
	setBorderVisibility(true);
}