Skip to content

Commit

Permalink
fix: Mark indentation getter API as Q_INVOKABLE
Browse files Browse the repository at this point in the history
Clazy in the CI is right, that these should indeed not be slots, but
rather Q_INVOKABLE.
  • Loading branch information
LeonMatthesKDAB committed Dec 13, 2024
1 parent 942fb24 commit b57b623
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/core/textdocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,12 @@ public slots:
void indentLine(int count, int line);
void setIndentation(int indent);
void setIndentationAtLine(int indent, int line);
int indentationAtPosition(int pos) const;
int indentationAtLine(int line = -1) const;
QString indentTextAtPosition(int pos) const;
QString indentTextAtLine(int line = -1) const;

public:
Q_INVOKABLE int indentationAtPosition(int pos) const;
Q_INVOKABLE int indentationAtLine(int line = -1) const;
Q_INVOKABLE QString indentTextAtPosition(int pos) const;
Q_INVOKABLE QString indentTextAtLine(int line = -1) const;

signals:
void positionChanged();
Expand Down

0 comments on commit b57b623

Please sign in to comment.