This function sets up the user's synchronized notebook tree
| 1015 | //* This function sets up the user's synchronized notebook tree |
| 1016 | //***************************************************************************** |
| 1017 | void 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 |
no test coverage detected