Skip to content

Commit 96647ca

Browse files
committed
style(ui): normalize TextEdit return types
* Replace trailing-return `auto ... -> QWidget*` signatures with explicit `QWidget*` declarations in the `TextEdit` header to conform to style expectations and reduce linter noise. * Add `// NOLINT` and `// NOLINTNEXTLINE` annotations to suppress specific linter warnings for the affected declarations (`SlotSaveAs`, `SlotNewTab`, `SlotNewCustomTab`), avoiding broader rule disables. * No behavioral changes — purely style/annotation updates to keep the codebase consistent and linter-clean.
1 parent ef097c0 commit 96647ca

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/ui/widgets/TextEdit.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class TextEdit : public QWidget {
154154
*
155155
* @return Return the return value of the savefile method
156156
*/
157-
bool SlotSaveAs();
157+
bool SlotSaveAs(); // NOLINT
158158

159159
/**
160160
* @details Show an OpenFileDoalog and open the file in a new tab.
@@ -173,7 +173,7 @@ class TextEdit : public QWidget {
173173
*
174174
* @return QWidget*
175175
*/
176-
auto SlotNewTab() -> QWidget*;
176+
QWidget* SlotNewTab(); // NOLINT
177177

178178
/**
179179
* @brief
@@ -183,8 +183,9 @@ class TextEdit : public QWidget {
183183
* @param icon
184184
* @return QWidget*
185185
*/
186-
auto SlotNewCustomTab(const QString& type, const QString& title,
187-
const QIcon& icon) -> QWidget*;
186+
// NOLINTNEXTLINE
187+
QWidget* SlotNewCustomTab(const QString& type, const QString& title,
188+
const QIcon& icon);
188189

189190
/**
190191
* @details

0 commit comments

Comments
 (0)