diff options
author | David Faure <faure@kde.org> | 2011-11-05 12:09:54 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-08 12:09:06 +0100 |
commit | 5e26608ae2d724f5e45d9e8667378bf7faf69d8c (patch) | |
tree | cedada7bc66ca7fc361a02719e98865f4b5613a3 /src/corelib/io/qdir.cpp | |
parent | 4d398c90fb5f5830f7c060d2a7867ba15f8c39a1 (diff) |
Add Q_DECLARE_PRIVATE equivalent for QDir, to be able to subclass it
Apply the same solution to QFileInfo (no public detach(), but a
non-inline d_func instead).
Change-Id: I31c4c759f44a0649b97f7884b078b174c9c00f22
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qdir.cpp')
-rw-r--r-- | src/corelib/io/qdir.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp index e7fdc4ad55..32fd81981b 100644 --- a/src/corelib/io/qdir.cpp +++ b/src/corelib/io/qdir.cpp @@ -508,6 +508,13 @@ inline void QDirPrivate::initFileEngine() */ /*! + \internal +*/ +QDir::QDir(QDirPrivate &p) : d_ptr(&p) +{ +} + +/*! Constructs a QDir pointing to the given directory \a path. If path is empty the program's working directory, ("."), is used. @@ -2097,6 +2104,13 @@ void QDir::refresh() const d->clearFileLists(); } +/*! \internal +*/ +QDirPrivate* QDir::d_func() +{ + return d_ptr.data(); +} + /*! \internal |