mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-02 03:06:31 -04:00
removed some debug info
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7542 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c873421914
commit
789e6ae24e
9 changed files with 66 additions and 33 deletions
|
@ -169,8 +169,8 @@ bool GxsIdDetails::MakeIdDesc(const RsGxsId &id, bool doIcons, QString &str, std
|
|||
|
||||
if (!rsIdentity->getIdDetails(id, details))
|
||||
{
|
||||
std::cerr << "GxsIdTreeWidget::MakeIdDesc() FAILED TO GET ID " << id;
|
||||
std::cerr << std::endl;
|
||||
// std::cerr << "GxsIdTreeWidget::MakeIdDesc() FAILED TO GET ID " << id;
|
||||
//std::cerr << std::endl;
|
||||
|
||||
str = QObject::tr("Loading... ") + QString::fromStdString(id.toStdString().substr(0,5));
|
||||
|
||||
|
@ -254,8 +254,8 @@ bool GxsIdDetails::MakeIdDesc(const RsGxsId &id, bool doIcons, QString &str, std
|
|||
// icons.push_back(QIcon(IMAGE_ANON));
|
||||
// icons.push_back(QIcon(IMAGE_ANON));
|
||||
|
||||
std::cerr << "GxsIdTreeWidget::MakeIdDesc() ID Ok. Comment: " << comment.toStdString() ;
|
||||
std::cerr << std::endl;
|
||||
// std::cerr << "GxsIdTreeWidget::MakeIdDesc() ID Ok. Comment: " << comment.toStdString() ;
|
||||
// std::cerr << std::endl;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -73,18 +73,12 @@ GxsIdItemDelegate::GxsIdItemDelegate(GxsIdTreeWidget *tree, int col, QObject *pa
|
|||
void GxsIdItemDelegate::paint( QPainter * painter,
|
||||
const QStyleOptionViewItem & option, const QModelIndex & index ) const
|
||||
{
|
||||
std::cerr << "GxsIdItemDelegate::paint()";
|
||||
std::cerr << std::endl;
|
||||
|
||||
RsGxsId id ( mTree->ItemTextFromIndex(index, mGxsIdColumn).toStdString());
|
||||
paintGxsId(painter, option, id);
|
||||
}
|
||||
|
||||
QSize GxsIdItemDelegate::sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const
|
||||
{
|
||||
std::cerr << "GxsIdItemDelegate::sizeHint()";
|
||||
std::cerr << std::endl;
|
||||
|
||||
return QStyledItemDelegate::sizeHint(option, index);
|
||||
}
|
||||
|
||||
|
@ -99,18 +93,12 @@ GxsIdRSItemDelegate::GxsIdRSItemDelegate(GxsIdRSTreeWidget *tree, int col, QObje
|
|||
void GxsIdRSItemDelegate::paint( QPainter * painter,
|
||||
const QStyleOptionViewItem & option, const QModelIndex & index ) const
|
||||
{
|
||||
std::cerr << "GxsIdRSItemDelegate::paint()";
|
||||
std::cerr << std::endl;
|
||||
|
||||
RsGxsId id ( mTree->ItemIdFromIndex(index, mGxsIdColumn));
|
||||
RsGxsId id ( mTree->ItemIdFromIndex(index, mGxsIdColumn));
|
||||
paintGxsId(painter, option, id);
|
||||
}
|
||||
|
||||
QSize GxsIdRSItemDelegate::sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const
|
||||
{
|
||||
std::cerr << "GxsIdRSItemDelegate::sizeHint()";
|
||||
std::cerr << std::endl;
|
||||
|
||||
return QStyledItemDelegate::sizeHint(option, index);
|
||||
}
|
||||
|
||||
|
|
|
@ -51,8 +51,8 @@ void GxsIdRSTreeWidgetItem::init()
|
|||
|
||||
void GxsIdRSTreeWidgetItem::setId(const RsGxsId &id, int column)
|
||||
{
|
||||
std::cerr << " GxsIdRSTreeWidgetItem::setId(" << id << "," << column << ")";
|
||||
std::cerr << std::endl;
|
||||
//std::cerr << " GxsIdRSTreeWidgetItem::setId(" << id << "," << column << ")";
|
||||
//std::cerr << std::endl;
|
||||
|
||||
mId = id;
|
||||
mColumn = column;
|
||||
|
@ -76,8 +76,8 @@ void GxsIdRSTreeWidgetItem::loadId()
|
|||
{
|
||||
disconnect(rApp, SIGNAL(secondTick()), this, SLOT(loadId()));
|
||||
|
||||
std::cerr << " GxsIdRSTreeWidgetItem::loadId() Id: " << mId << ", mCount: " << mCount;
|
||||
std::cerr << std::endl;
|
||||
//std::cerr << " GxsIdRSTreeWidgetItem::loadId() Id: " << mId << ", mCount: " << mCount;
|
||||
//std::cerr << std::endl;
|
||||
|
||||
mCount++;
|
||||
|
||||
|
@ -98,15 +98,15 @@ void GxsIdRSTreeWidgetItem::loadId()
|
|||
|
||||
if (loaded)
|
||||
{
|
||||
std::cerr << " GxsIdRSTreeWidgetItem::loadId() Loaded Okay";
|
||||
std::cerr << std::endl;
|
||||
// std::cerr << " GxsIdRSTreeWidgetItem::loadId() Loaded Okay";
|
||||
//std::cerr << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
if (mCount < MAX_ATTEMPTS)
|
||||
{
|
||||
std::cerr << " GxsIdRSTreeWidgetItem::loadId() Starting Timer for re-try";
|
||||
std::cerr << std::endl;
|
||||
//std::cerr << " GxsIdRSTreeWidgetItem::loadId() Starting Timer for re-try";
|
||||
//std::cerr << std::endl;
|
||||
|
||||
/* timer event to try again */
|
||||
connect(rApp, SIGNAL(secondTick()), this, SLOT(loadId()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue