The app collapses here:
inline const QString operator+(const QString &s1, const char *s2)
{ QString t(s1); t += QString::fromAscii(s2); return t; }
To copy to clipboard, switch view to plain text mode
ProcessPeerUpdate()
void GuiApp
::processPeerUpdate(QString h
) {
e = new DataUpdateEvent(d);
qApp->postEvent(this, e);
}
void GuiApp::processPeerUpdate(QString h)
{
QStringList d = h.split(" ");
e = new DataUpdateEvent(d);
qApp->postEvent(this, e);
}
To copy to clipboard, switch view to plain text mode
void GuiApp
::customEvent(QEvent *e
) {
if ( e->type() == 65432 ) {
DataUpdateEvent* ce = (DataUpdateEvent*)e;
i = ce->data();
}
setValue(i);
}
void GuiApp::customEvent(QEvent *e)
{
QStringList i;
if ( e->type() == 65432 ) {
DataUpdateEvent* ce = (DataUpdateEvent*)e;
i = ce->data();
}
setValue(i);
}
To copy to clipboard, switch view to plain text mode
class DataUpdateEvent : public QCustomEvent
{
public:
: QCustomEvent( 65432 ), n(i) {}
private:
public:
~DataUpdateEvent(void)
{
}
};
class DataUpdateEvent : public QCustomEvent
{
public:
DataUpdateEvent(QStringList i)
: QCustomEvent( 65432 ), n(i) {}
QStringList data() { return n; }
private:
QStringList n;
public:
~DataUpdateEvent(void)
{
}
};
To copy to clipboard, switch view to plain text mode
Bookmarks