diff --git a/src/framelesswindow.mm b/src/framelesswindow.mm index 42ba9be2..983d92c0 100644 --- a/src/framelesswindow.mm +++ b/src/framelesswindow.mm @@ -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]; diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a9400cbf..ea6d4a14 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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 diff --git a/src/nodetreeview_p.h b/src/nodetreeview_p.h index 9d91286a..3b6ff362 100644 --- a/src/nodetreeview_p.h +++ b/src/nodetreeview_p.h @@ -8,7 +8,7 @@ class NodeTreeViewPrivate : public QAbstractItemViewPrivate Q_DECLARE_PUBLIC(NodeTreeView) public: - NodeTreeViewPrivate() : QAbstractItemViewPrivate(){}; + NodeTreeViewPrivate() : QAbstractItemViewPrivate() { }; virtual ~NodeTreeViewPrivate() { } }; diff --git a/src/notelistview.cpp b/src/notelistview.cpp index db8df9d6..39f40c82 100644 --- a/src/notelistview.cpp +++ b/src/notelistview.cpp @@ -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(); diff --git a/src/notelistview_p.h b/src/notelistview_p.h index da354171..62fd7974 100644 --- a/src/notelistview_p.h +++ b/src/notelistview_p.h @@ -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;