Skip to content

Commit

Permalink
#1717 fix: remove obsolete imports and added brackets
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Aug 30, 2024
1 parent ba15716 commit 0603a49
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4479,8 +4479,9 @@ void MainWindow::startNavigationParser() {
if (ui->navigationWidget->isVisible()) {
ui->navigationWidget->parse(activeNoteTextEdit()->document(),
activeNoteTextEdit()->textCursor().position());
} else if (ui->backlinkWidget->isVisible())
} else if (ui->backlinkWidget->isVisible()) {
ui->backlinkWidget->findBacklinks(currentNote);
}
}

/**
Expand Down
8 changes: 0 additions & 8 deletions src/widgets/backlinkwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@
*/

#include "backlinkwidget.h"

#include <libraries/qmarkdowntextedit/markdownhighlighter.h>

#include <QDebug>
#include <QRegularExpression>
#include <QTextBlock>
#include <QTextDocument>
#include <QTreeWidgetItem>

#include "entities/note.h"

BacklinkWidget::BacklinkWidget(QWidget *parent) : QTreeWidget(parent) {
Expand Down
1 change: 0 additions & 1 deletion src/widgets/backlinkwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include "entities/note.h"

class QTextDocument;
class QTreeWidgetItem;

class BacklinkWidget : public QTreeWidget {
Expand Down

0 comments on commit 0603a49

Please sign in to comment.