示例#1
0
void KListItem::hoverLeaveEvent( QGraphicsSceneHoverEvent *event )
{
	if(!itemSelected())
	{
		QVariant v = m_listWidget->itemUnselectBackgroundVariant();
		setUnselected(v);
	}
}
示例#2
0
void CardButton::setSelectable(bool selectable/* = true*/)
{
	if (!selectable)
		setUnselected();

	m_cardSelectable = selectable;
	m_cardFrame->setNotDimed(m_cardSelectable);
}
void CardButton::setSelectable(bool selectable) {
	if (!selectable)
		setUnselected();
	cardSelectable = selectable;
	cardFrame->setNotDimed(cardSelectable);
}