+ Reply to Thread
Results 1 to 3 of 3

Thread: QTime private member mds means what?

  1. #1
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QTime private member mds means what?

    The QTime class definition contains:
    Qt Code:
    1. inline int ds() const { return mds == -1 ? 0 : mds; }
    2. int mds;
    To copy to clipboard, switch view to plain text mode 
    What is the meaning of ds and mds? I can see that mds stores the internal representation of the time in milliseconds, and that ds() returns it to the class members (because it's private) but I do not make any sense of the names. What is the "d" doing there? Does anyone know?

    int toms() and int myms would be more sensible names IMHO.
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: QTime private member mds means what?

    Maiby "d" is "digit"
    a life without programming is like an empty bottle

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    31,259
    Thanks
    3
    Thanked 4,707 Times in 4,508 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Blog Entries
    4
    Wiki edits
    10

    Default Re: QTime private member mds means what?

    Looking at other methods from the class should make obvious what ds() and mds are (hint: "m" is probably "member").

+ Reply to Thread

Similar Threads

  1. Std iterator as private member variable
    By Michiel in forum General Programming
    Replies: 5
    Last Post: 21st April 2006, 15:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts