disabled timer & little small ui changes

* Set icons for some buttons
* Update tree on subscribe actions
This commit is contained in:
defnax 2021-01-06 18:00:41 +01:00
parent 1e803de32f
commit 56462fd507
2 changed files with 18 additions and 10 deletions

View file

@ -121,12 +121,13 @@ WikiDialog::WikiDialog(QWidget *parent) : RsGxsUpdateBroadcastPage(rsWiki, paren
connect(newGroupButton, SIGNAL(clicked()), this, SLOT(OpenOrShowAddGroupDialog()));
ui.groupTreeWidget->addToolButton(newGroupButton);
QTimer *timer = new QTimer(this);
timer->connect(timer, SIGNAL(timeout()), this, SLOT(insertWikiGroups()));
timer->start(1000);
//QTimer *timer = new QTimer(this);
//timer->connect(timer, SIGNAL(timeout()), this, SLOT(insertWikiGroups()));
//timer->start(5000);
// load settings
processSettings(true);
updateDisplay(true);
}
WikiDialog::~WikiDialog()
@ -320,7 +321,7 @@ void WikiDialog::clearWikiPage()
ui.textBrowser->setPlainText("");
}
void WikiDialog::clearGroupTree()
void WikiDialog::clearGroupTree()
{
ui.treeWidget_Pages->clear();
}
@ -478,7 +479,6 @@ void WikiDialog::requestWikiPage(const RsGxsGrpMsgIdPair &msgId)
mWikiQueue->requestMsgInfo(token, RS_TOKREQ_ANSTYPE_DATA, opts, msgIds, WIKIDIALOG_WIKI_PAGE);
}
void WikiDialog::loadWikiPage(const uint32_t &token)
{
std::cerr << "WikiDialog::loadWikiPage()";
@ -569,6 +569,8 @@ void WikiDialog::wikiSubscribe(bool subscribe)
uint32_t token;
rsWiki->subscribeToGroup(token, mGroupId, subscribe);
insertWikiGroups();
}