Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nuttyartist committed Oct 24, 2024
1 parent b2670ae commit 52b039a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/framelesswindow.mm
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ - (void)zoomButtonAction:(id)sender
return;
}

// Since Qt 6.8 we need this to ask the QLayout to ignore the contents marginsto to make the window frameless on macOS
// Since Qt 6.8 we need this to ask the QLayout to ignore the contents marginsto to make the
// window frameless on macOS
setAttribute(Qt::WA_ContentsMarginsRespectsSafeArea, false);

AppObserver *observer = [[AppObserver alloc] init];
Expand Down
3 changes: 2 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ void MainWindow::setupMainWindow()
#endif

#if defined(Q_OS_MAC)
// Since Qt 6.8 we need this to ask the QLayout to ignore the contents marginsto to make the window frameless on macOS
// Since Qt 6.8 we need this to ask the QLayout to ignore the contents marginsto to make the
// window frameless on macOS
ui->centralWidget->setAttribute(Qt::WA_LayoutOnEntireRect, true);
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/nodetreeview_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class NodeTreeViewPrivate : public QAbstractItemViewPrivate
Q_DECLARE_PUBLIC(NodeTreeView)

public:
NodeTreeViewPrivate() : QAbstractItemViewPrivate(){};
NodeTreeViewPrivate() : QAbstractItemViewPrivate() { };
virtual ~NodeTreeViewPrivate() { }
};

Expand Down
2 changes: 1 addition & 1 deletion src/notelistview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void NoteListView::setIsPinnedNotesCollapsed(bool newIsPinnedNotesCollapsed)
for (int i = 0; i < model()->rowCount(); ++i) {
auto index = model()->index(i, 0);
if (index.isValid()) {
emit itemDelegate()->sizeHintChanged(index);
emit itemDelegate() -> sizeHintChanged(index);
}
}
update();
Expand Down
2 changes: 1 addition & 1 deletion src/notelistview_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class NoteListViewPrivate : public QAbstractItemViewPrivate
Q_DECLARE_PUBLIC(NoteListView)

public:
NoteListViewPrivate() : QAbstractItemViewPrivate(){};
NoteListViewPrivate() : QAbstractItemViewPrivate() { };
virtual ~NoteListViewPrivate() { }
QPixmap renderToPixmap(const QModelIndexList &indexes, QRect *r) const;
QStyleOptionViewItem viewOptionsV1() const;
Expand Down

0 comments on commit 52b039a

Please sign in to comment.