예제 #1
0
void NormalWindow::updateWindow(const QIcon &AIcon, const QString &ACaption, const QString &ATitle, const QString &AToolTip)
{
	setWindowIcon(AIcon);
	setWindowIconText(ACaption);
	setWindowTitle(ATitle);
	FTabPageToolTip = AToolTip;
	emit tabPageChanged();
}
예제 #2
0
void CustomMailPage::onMailIndexDataChanged(IRosterIndex *AIndex, int ARole)
{
	if (AIndex==FMailIndex && ARole==Qt::DecorationRole)
	{
		setWindowIcon(FMailIndex->data(Qt::DecorationRole).value<QIcon>());
		emit tabPageChanged();
	}
}