// <FS:Ansariel> Re-add setBadgeLabel
void LLBadgeOwner::setBadgeLabel(const LLStringExplicit& label)
{
	if (mBadge == NULL)
	{
		mBadge = createBadge(LLUICtrlFactory::getDefaultParams<LLBadge>());

		addBadgeToParentHolder();
	}

	if (mBadge)
	{
		mBadge->setLabel(label);

		//
		// Push the badge to the front so it renders on top
		//

		LLView * parent = mBadge->getParent();

		if (parent)
		{
			parent->sendChildToFront(mBadge);
		}
	}
}
예제 #2
0
void WindowsTaskBar::setBadge(const QString &badge)
{
	if (badge.isEmpty())
		clearOverlayIcon(window()->winId());
	else {
		QPixmap pixmap = createBadge(badge);
		setOverlayIcon(window()->winId(), pixmap.toWinHICON());
	}
}
void LLBadgeOwner::initBadgeParams(const LLBadge::Params& p)
{
	if (!p.equals(LLUICtrlFactory::getDefaultParams<LLBadge>()))
	{
		mBadge = createBadge(p);
		mHasBadgeHolderParent = false;

		LLView * owner_view = mBadgeOwnerView.get();
		if (owner_view)
		{
			mBadge->addToView(owner_view);
		}
	}
}