Details

    • Sub-task
    • Resolution: Done
    • Not Evaluated
    • None
    • All Other Issues
    • None

    Description

      Singletons should have only static public methods,
      with the exception of signals and slots.
      The instance() method should only be used for accessing the singleton's signals and slots.

      The one instance for the singleton is defined statically in the .cpp file and assigned in the constructor.

      Constructor and destructor should be private, the class that manages the singleton being a friend.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-9763
        # Subject Branch Project Status CR V

        Activity

          People

            con Eike Ziller
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes