diff options
author | hjk <hjk@qt.io> | 2019-05-28 13:49:26 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-05-28 12:23:26 +0000 |
commit | 473a741c9fcf09febba312464fab8385e2351181 (patch) | |
tree | 2d328a090993cb5c5fd34b43e9468bcbf7e4d4d0 /src/plugins/texteditor/textmark.h | |
parent | 4704f49fbb1201ebf10ab9dbaed0275ff25faba8 (diff) |
Utils: Rename FileName to FilePath
More in line with QFileInfo terminonlogy which appears to be
best-of-breed within Qt.
Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/texteditor/textmark.h')
-rw-r--r-- | src/plugins/texteditor/textmark.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/texteditor/textmark.h b/src/plugins/texteditor/textmark.h index eeeb761eaf..2d049cbacc 100644 --- a/src/plugins/texteditor/textmark.h +++ b/src/plugins/texteditor/textmark.h @@ -50,7 +50,7 @@ class TextDocument; class TEXTEDITOR_EXPORT TextMark { public: - TextMark(const Utils::FileName &fileName, + TextMark(const Utils::FilePath &fileName, int lineNumber, Core::Id category, double widthFactor = 1.0); @@ -65,7 +65,7 @@ public: HighPriority // shown on top. }; - Utils::FileName fileName() const; + Utils::FilePath fileName() const; int lineNumber() const; virtual void paintIcon(QPainter *painter, const QRect &rect) const; @@ -84,7 +84,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::FileName &fileName); + virtual void updateFileName(const Utils::FilePath &fileName); virtual void updateLineNumber(int lineNumber); virtual void updateBlock(const QTextBlock &block); virtual void move(int line); @@ -131,7 +131,7 @@ private: Q_DISABLE_COPY(TextMark) TextDocument *m_baseTextDocument = nullptr; - Utils::FileName m_fileName; + Utils::FilePath m_fileName; int m_lineNumber = 0; Priority m_priority = LowPriority; QIcon m_icon; |