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

Method setupSynchronizedNotebookTree

nixnote.cpp:1043–1054  ·  view source on GitHub ↗

This function sets up the user's synchronized notebook tree

Source from the content-addressed store, hash-verified

1041//* This function sets up the user's synchronized notebook tree
1042//*****************************************************************************
1043void NixNote::setupSynchronizedNotebookTree() {
1044 QLOG_TRACE() << "Starting NixNote.setupSynchronizedNotebookTree()";
1045 notebookTreeView = new NNotebookView(leftPanel);
1046 leftPanel->addNotebookView(notebookTreeView);
1047 connect(&syncRunner, SIGNAL(notebookUpdated(qint32, QString,QString, bool, bool)),notebookTreeView, SLOT(notebookUpdated(qint32, QString, QString, bool, bool)));
1048 connect(&syncRunner, SIGNAL(syncComplete()),notebookTreeView, SLOT(rebuildTree()));
1049 connect(&syncRunner, SIGNAL(notebookExpunged(qint32)), notebookTreeView, SLOT(notebookExpunged(qint32)));
1050 connect(&counterRunner, SIGNAL(notebookTotals(qint32,qint32, qint32)), notebookTreeView, SLOT(updateTotals(qint32,qint32, qint32)));
1051 connect(notebookTreeView, SIGNAL(updateNoteList(qint32,int,QVariant)), noteTableView, SLOT(refreshCell(qint32,int,QVariant)));
1052 connect(notebookTreeView, SIGNAL(updateCounts()), &counterRunner, SLOT(countAll()));
1053 QLOG_TRACE() << "Exiting NixNote.setupSynchronizedNotebookTree()";
1054}
1055
1056
1057

Callers 1

setupGuiMethod · 0.95

Calls 1

addNotebookViewMethod · 0.80

Tested by

no test coverage detected