aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/textmark.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-02-07 18:14:53 +0100
committerhjk <hjk@qt.io>2023-02-08 13:48:30 +0000
commit3f8240a7de9be6df01b5f56ce57d2750bcbbf187 (patch)
tree99bf029466141218828281fbd7ec7e5bbc63e610 /src/plugins/texteditor/textmark.h
parenta7bf65c2888f179a8697912be521ebe1b33d0efd (diff)
TextEditor: Some fileName -> filePath renaming
Change-Id: Id0751f936666fa658226d62a1906b82e3bac1660 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/texteditor/textmark.h')
-rw-r--r--src/plugins/texteditor/textmark.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/texteditor/textmark.h b/src/plugins/texteditor/textmark.h
index 0a34139ec5..7271255705 100644
--- a/src/plugins/texteditor/textmark.h
+++ b/src/plugins/texteditor/textmark.h
@@ -38,10 +38,8 @@ public:
class TEXTEDITOR_EXPORT TextMark
{
public:
- TextMark(const Utils::FilePath &fileName,
- int lineNumber,
- TextMarkCategory category);
TextMark() = delete;
+ TextMark(const Utils::FilePath &filePath, int lineNumber, TextMarkCategory category);
virtual ~TextMark();
// determine order on markers on the same line.
@@ -52,7 +50,7 @@ public:
HighPriority // shown on top.
};
- Utils::FilePath fileName() const;
+ Utils::FilePath filePath() const;
int lineNumber() const;
virtual void paintIcon(QPainter *painter, const QRect &rect) const;
@@ -74,7 +72,7 @@ public:
AnnotationRects annotationRects(const QRectF &boundingRect, const QFontMetrics &fm,
const qreal fadeInOffset, const qreal fadeOutOffset) const;
/// called if the filename of the document changed
- virtual void updateFileName(const Utils::FilePath &fileName);
+ virtual void updateFilePath(const Utils::FilePath &filePath);
virtual void updateLineNumber(int lineNumber);
virtual void updateBlock(const QTextBlock &block);
virtual void move(int line);