model->setHorizontalHeaderLabels(
QStringList() << "Online");
addDebugMsg("You may now search for a song");
- addProgressbar("test");
+ //addProgressbar("test");
//getSessionKey();
}
jlist.insertMulti("header",header);
QVariantMap param;
param.insert("type","Songs");
- param.insert("query",song.toAscii());
+ param.insert("query",song);
jlist.insertMulti("parameters",param);
QJson::Serializer *serializer = new QJson::Serializer();
//qDebug() << serializer->serialize(jlist);
if(cookie.name() == "PHPSESSID")
{
phpSession = new QString(cookie.value());
+ qDebug() << QDateTime::currentDateTime();
+ qDebug() << cookie.expirationDate();
}
}
reply->readAll();
sessionKey = new QString(result["result"].toString());
qDebug() << sessionKey->toAscii();
}
+ qDebug() << result;
currentaction = none;
reply->close();
emit finishedSearch();
currentaction = getPHP;
manager->get(QNetworkRequest(QUrl(QString("http://") + GS_LISTEN)));
qDebug() << reply->readAll();
+ qDebug() << result;
reply->close();
return;
}
gradient.setColorAt(0, QColor::fromRgbF(0, 1, 0, 1));
gradient.setColorAt(0.9, QColor::fromRgbF(0, 1, 0, 1));
gradient.setColorAt(1, QColor::fromRgbF(0, 0, 0, 0));
- QBrush brush(gradient);
+ QBrush brush(Qt::red);
QStandardItem *pBar = new QStandardItem(text);
pBar->setBackground(brush);
pBar->setSelectable(false);