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

Method setupFavoritesTree

nixnote.cpp:1017–1036  ·  view source on GitHub ↗

This function sets up the user's synchronized notebook tree

Source from the content-addressed store, hash-verified

1015//* This function sets up the user's synchronized notebook tree
1016//*****************************************************************************
1017void NixNote::setupFavoritesTree() {
1018 QLOG_TRACE() << "Starting NixNote.setupFavoritesdNotebookTree()";
1019 favoritesTreeView = new FavoritesView(leftPanel);
1020 leftPanel->addFavoritesView(favoritesTreeView);
1021
1022// connect(&syncRunner, SIGNAL(notebookUpdated(qint32, QString,QString, bool, bool)),notebookTreeView, SLOT(notebookUpdated(qint32, QString, QString, bool, bool)));
1023 connect(&syncRunner, SIGNAL(notebookExpunged(qint32)), favoritesTreeView, SLOT(itemExpunged(qint32)));
1024 connect(&syncRunner, SIGNAL(tagExpunged(qint32)), favoritesTreeView, SLOT(itemExpunged(qint32)));
1025// connect(&syncRunner, SIGNAL(noteUpdated(qint32)), notebookTreeView, SLOT(itemExpunged(qint32)));
1026 connect(&counterRunner, SIGNAL(notebookTotals(qint32,qint32, qint32)), favoritesTreeView, SLOT(updateTotals(qint32,qint32, qint32)));
1027 connect(&counterRunner, SIGNAL(tagTotals(qint32,qint32,qint32)), favoritesTreeView, SLOT(updateTotals(qint32,qint32, qint32)));
1028 connect(favoritesTreeView, SIGNAL(updateCounts()), &counterRunner, SLOT(countAll()));
1029
1030 leftSeparator1 = new QLabel();
1031 leftSeparator1->setTextFormat(Qt::RichText);
1032 leftSeparator1->setText("<hr>");
1033 leftPanel->addSeparator(leftSeparator1);
1034
1035 QLOG_TRACE() << "Exiting NixNote.setupFavoritesTree()";
1036}
1037
1038
1039

Callers 1

setupGuiMethod · 0.95

Calls 3

addFavoritesViewMethod · 0.80
addSeparatorMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected