void QRListViewItem::paintCell( QPainter *p, const QColorGroup &cg, int column, int width, int alignment) { p->save(); QColorGroup cgn(cg); if (isWritable(column)) { cgn.setColor(QColorGroup::Base, QColor(231,255,216)); } if (((QRTreeBox *) listView()->parent())->isHighlight()) { if (column == 0 && m_node && ((QRTreeBox *) listView()->parent())->isNodeInCache(m_node)) { //cgn.setColor(QColorGroup::Base, QColor(231,255,216)); cgn.setColor(QColorGroup::Base, QColor(216,239,202)); } } Q3ListViewItem::paintCell(p,cgn,column,width,alignment); // Draw a box around the Cell int nheight = height() - 1; int nwidth = width - 1; p->setPen(cg.color(QColorGroup::Background)); p->drawLine(0,nheight,nwidth,nheight); //p->lineTo(nwidth, 0); QPainterPath path; path.lineTo(nwidth, 0); p->drawPath(path); p->restore(); }
void TransferServerConnection::onConnectionOpened() { LOG("TransferServerConnection", ("Connection with the transfer server is open, sending CentralGalaxyName message(%s)", ConfigCentralServer::getClusterName())); static MessageConnectionCallback m("TransferServerConnectionOpened"); emitMessage(m); // send galaxy name to the character transfer server GenericValueTypeMessage<std::string> cgn("CentralGalaxyName", ConfigCentralServer::getClusterName()); send(cgn, true); }