Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
b1ea36bc
Commit
b1ea36bc
authored
Apr 15, 2009
by
kh
Browse files
Fix build with namespaced Qt
Reviewed-by: Thorbjorn Lindeijer
parent
5cb0a3cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/basetextdocument.cpp
View file @
b1ea36bc
...
...
@@ -47,7 +47,11 @@
using
namespace
TextEditor
;
#if defined (Q_OS_WIN)
QT_BEGIN_NAMESPACE
extern
Q_CORE_EXPORT
int
qt_ntfs_permission_lookup
;
QT_END_NAMESPACE
#endif
#if defined (Q_OS_WIN)
# define NATIVE_LINE_TERMINATOR CRLFLineTerminator
...
...
@@ -145,14 +149,14 @@ bool BaseTextDocument::isReadOnly() const
const
QFileInfo
fi
(
m_fileName
);
#ifdef Q_OS_WIN
32
#ifdef Q_OS_WIN
// Check for permissions on NTFS file systems
qt_ntfs_permission_lookup
++
;
#endif
const
bool
ro
=
!
fi
.
isWritable
();
#ifdef Q_OS_WIN
32
#ifdef Q_OS_WIN
qt_ntfs_permission_lookup
--
;
#endif
return
ro
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment