void CustomerInfoPanel::displayFiche(const QString & fichecontent, bool qtui, const QString & id) { Popup * popup = NULL; for(int i = m_popups.size() - 1; i >= 0; i --) { if(id == m_popups[i]->id()) { qDebug() << Q_FUNC_INFO << "fiche id already there" << i << id; popup = m_popups[i]; break; } } QBuffer * inputstream = new QBuffer(this); inputstream->open(QIODevice::ReadWrite); inputstream->write(fichecontent.toUtf8()); inputstream->close(); // Get Data and Popup the profile if ok if (popup == NULL) { popup = new Popup(m_autourl_allowed); m_popups.append(popup); popup->setId(id); connect(popup, SIGNAL(destroyed(QObject *)), this, SLOT(popupDestroyed(QObject *))); connect(popup, SIGNAL(wantsToBeShown(Popup *)), this, SLOT(showNewProfile(Popup *))); connect(popup, SIGNAL(actionFromPopup(const QString &, const QVariant &)), this, SLOT(actionFromPopup(const QString &, const QVariant &))); connect(popup, SIGNAL(newRemarkSubmitted(const QString &, const QString &)), b_engine, SLOT(sendNewRemark(const QString &, const QString &))); }