Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STYLE: Use Qt pimpls directly instead of CTK pimpls
Qt pimpls have the big advantage of supporting pimple derivation. The recommended way of using them is shown below: Header file: class MyClassPrivate; class MyClass { public: ... virtual ~MyClass(); ... protected: QScopedPointer<MyClassPrivate> d_ptr; private: Q_DECLARE_PRIVATE(MyClass); Q_DISABLE_COPY(MyClass); }; Implementation file (Private has no access to public: class MyClassPrivate { public: ... }; ... MyClass::MyClass():d_ptr(new MyClassPrivate) { } Implementation file (Private has access to public): class MyClassPrivate { Q_DECLARE_PUBLIC(MyClass); protected: MyClass* const q_ptr; public: MyClassPrivate(MyClass&); ... }; MyClassPrivate::MyClassPrivate(MyClass& o) :q_ptr(&o) { } ... MyClass::MyClass():d_ptr(new MyClassPrivate(*this)) { }
- Loading branch information
Showing
134 changed files
with
2,032 additions
and
1,564 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.