MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / setupTagTree

Method setupTagTree

nixnote.cpp:955–974  ·  view source on GitHub ↗

This function sets up the user's tag tree

Source from the content-addressed store, hash-verified

953//* This function sets up the user's tag tree
954//*****************************************************************************
955void NixNote::setupTagTree() {
956 QLOG_TRACE() << "Starting NixNote.setupTagTree()";
957
958 leftSeparator2 = new QLabel();
959 leftSeparator2->setTextFormat(Qt::RichText);
960 leftSeparator2->setText("<hr>");
961 leftPanel->addSeparator(leftSeparator2);
962
963 tagTreeView = new NTagView(leftPanel);
964 leftPanel->addTagView(tagTreeView);
965 connect(&syncRunner, SIGNAL(tagUpdated(qint32, QString, QString, qint32)),tagTreeView, SLOT(tagUpdated(qint32, QString, QString, qint32)));
966 connect(&syncRunner, SIGNAL(tagExpunged(qint32)), tagTreeView, SLOT(tagExpunged(qint32)));
967 connect(&syncRunner, SIGNAL(syncComplete()),tagTreeView, SLOT(rebuildTree()));
968 connect(&counterRunner, SIGNAL(tagTotals(qint32,qint32, qint32)), tagTreeView, SLOT(updateTotals(qint32,qint32, qint32)));
969 connect(&counterRunner, SIGNAL(tagCountComplete()), tagTreeView, SLOT(hideUnassignedTags()));
970 connect(notebookTreeView, SIGNAL(notebookSelectionChanged(qint32)), tagTreeView, SLOT(notebookSelectionChanged(qint32)));
971 connect(tagTreeView, SIGNAL(updateNoteList(qint32,int,QVariant)), noteTableView, SLOT(refreshCell(qint32,int,QVariant)));
972 connect(tagTreeView, SIGNAL(updateCounts()), &counterRunner, SLOT(countAll()));
973 QLOG_TRACE() << "Exiting NixNote.setupTagTree()";
974}
975
976
977

Callers 1

setupGuiMethod · 0.95

Calls 3

addSeparatorMethod · 0.80
addTagViewMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected