mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed compilation on ubuntu (apparently QTreeWidgetItem(NULL) is not accepted
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5342 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
eb16607601
commit
0d72ad1806
@ -2163,7 +2163,7 @@ void ForumsV2Dialog::loadForumChildMsg(const RsForumV2Msg &msg, QTreeWidgetItem
|
||||
|
||||
if (mThreadLoad.FlatView)
|
||||
{
|
||||
child = new QTreeWidgetItem(NULL); // no Parent.
|
||||
child = new QTreeWidgetItem(); // no Parent.
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -340,7 +340,7 @@ void IdDialog::insertIdList(uint32_t token)
|
||||
}
|
||||
|
||||
|
||||
QTreeWidgetItem *item = new QTreeWidgetItem(NULL);
|
||||
QTreeWidgetItem *item = new QTreeWidgetItem();
|
||||
//item->setText(RSID_COL_NICKNAME, QString::fromStdString(data.mNickname));
|
||||
//item->setText(RSID_COL_KEYID, QString::fromStdString(data.mKeyId));
|
||||
item->setText(RSID_COL_NICKNAME, QString::fromStdString(data.mMeta.mGroupName));
|
||||
|
@ -558,7 +558,7 @@ void WikiDialog::loadGroupData(const uint32_t &token)
|
||||
std::cerr << " Group: " << group.mMeta.mGroupName;
|
||||
std::cerr << std::endl;
|
||||
|
||||
QTreeWidgetItem *groupItem = new QTreeWidgetItem(NULL);
|
||||
QTreeWidgetItem *groupItem = new QTreeWidgetItem();
|
||||
groupItem->setText(WIKI_GROUP_COL_GROUPNAME, QString::fromStdString(group.mMeta.mGroupName));
|
||||
groupItem->setText(WIKI_GROUP_COL_GROUPID, QString::fromStdString(group.mMeta.mGroupId));
|
||||
ui.treeWidget_Pages->addTopLevelItem(groupItem);
|
||||
@ -692,7 +692,7 @@ void WikiDialog::loadPages(const uint32_t &token)
|
||||
std::cerr << " Page: " << page.mMeta.mMsgName;
|
||||
std::cerr << std::endl;
|
||||
|
||||
QTreeWidgetItem *pageItem = new QTreeWidgetItem(NULL);
|
||||
QTreeWidgetItem *pageItem = new QTreeWidgetItem();
|
||||
pageItem->setText(WIKI_GROUP_COL_PAGENAME, QString::fromStdString(page.mMeta.mMsgName));
|
||||
pageItem->setText(WIKI_GROUP_COL_PAGEID, QString::fromStdString(page.mMeta.mMsgId));
|
||||
pageItem->setText(WIKI_GROUP_COL_ORIGPAGEID, QString::fromStdString(page.mMeta.mOrigMsgId));
|
||||
@ -776,7 +776,7 @@ void WikiDialog::loadModPages(const uint32_t &token)
|
||||
std::cerr << " Page: " << page.mMeta.mMsgName;
|
||||
std::cerr << std::endl;
|
||||
|
||||
QTreeWidgetItem *modItem = new QTreeWidgetItem(NULL);
|
||||
QTreeWidgetItem *modItem = new QTreeWidgetItem();
|
||||
modItem->setText(WIKI_MODS_COL_ORIGPAGEID, QString::fromStdString(page.mMeta.mOrigMsgId));
|
||||
modItem->setText(WIKI_MODS_COL_PAGEID, QString::fromStdString(page.mMeta.mMsgId));
|
||||
ui.treeWidget_Mods->addTopLevelItem(modItem);
|
||||
|
Loading…
Reference in New Issue
Block a user