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(); }
void CustomMailPage::onMailIndexDataChanged(IRosterIndex *AIndex, int ARole) { if (AIndex==FMailIndex && ARole==Qt::DecorationRole) { setWindowIcon(FMailIndex->data(Qt::DecorationRole).value<QIcon>()); emit tabPageChanged(); } }