Results 1 to 2 of 2

Thread: View QDate and QDateTime in VisualStudio debugger.

  1. #1
    Join Date
    May 2010
    Location
    Russia, Moscow
    Posts
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default View QDate and QDateTime in VisualStudio debugger.

    QTime|*::QTime{
    preview
    (
    #(
    "", [$e.mds / 3600000, d],
    "/", [($e.mds % 3600000) / 60000, d],
    "/", [($e.mds / 1000) % 60, d],
    "/", [$e.mds % 1000, d]
    )
    )
    children
    (
    #(
    [hour]: [$e.mds / 3600000, d],
    [minute]: [($e.mds % 3600000) / 60000, d],
    [second]: [($e.mds / 1000) % 60, d],
    [smilisecond ]: [$e.mds % 1000, d]
    )
    )
    }

    QDate|*::QDate{
    preview
    (
    #if ($e.jd >= 2299161)
    (
    #
    (
    "", [((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) - (1461 * ((4000 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) + 1)) / 1461001)) / 4 + 31) - (2447 * ((80 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) - (1461 * ((4000 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) + 1)) / 1461001)) / 4 + 31)) / 2447)) / 80],
    "/", [((80 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) - (1461 * ((4000 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) + 1)) / 1461001)) / 4 + 31)) / 2447) + 2 - (12 * (((80 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) - (1461 * ((4000 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) + 1)) / 1461001)) / 4 + 31)) / 2447) / 11))],
    "/", [100 * (((4 * ((qulonglong)$e.jd + 68569)) / 146097) - 49) + ((4000 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) + 1)) / 1461001) + (((80 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) - (1461 * ((4000 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) + 1)) / 1461001)) / 4 + 31)) / 2447) / 11)]
    )
    )
    #else
    (
    (
    "", [(($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4) - (153 * (((5 * (($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4)) + 2) / 153) + 2) / 5 + 1],
    "\", [(((5 * (($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4)) + 2) / 153) + 3 - 12 * ((((5 * (($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4)) + 2) / 153) / 10)],
    #if ((((4 * ($e.jd + 32082) + 3) / 1461) - 4800 + ((((5 * (($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4)) + 2) / 153) / 10)) <= 0)
    (
    "\", [(((4 * ($e.jd + 32082) + 3) / 1461) - 4800 + ((((5 * (($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4)) + 2) / 153) / 10)) - 1]
    )
    #else
    (
    "\", [((4 * ($e.jd + 32082) + 3) / 1461) - 4800 + ((((5 * (($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4)) + 2) / 153) / 10)]
    )
    )
    )
    )
    children
    (
    #if ($e.jd >= 2299161)
    (
    #(
    [day]: [((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) - (1461 * ((4000 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) + 1)) / 1461001)) / 4 + 31) - (2447 * ((80 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) - (1461 * ((4000 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) + 1)) / 1461001)) / 4 + 31)) / 2447)) / 80],
    [month]: [((80 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) - (1461 * ((4000 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) + 1)) / 1461001)) / 4 + 31)) / 2447) + 2 - (12 * (((80 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) - (1461 * ((4000 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) + 1)) / 1461001)) / 4 + 31)) / 2447) / 11))],
    [year]: [100 * (((4 * ((qulonglong)$e.jd + 68569)) / 146097) - 49) + ((4000 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) + 1)) / 1461001) + (((80 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) - (1461 * ((4000 * ((((qulonglong)$e.jd + 68569) - (146097 * ((4 * ((qulonglong)$e.jd + 68569)) / 146097) + 3) / 4) + 1)) / 1461001)) / 4 + 31)) / 2447) / 11)]
    )
    )
    #else
    (
    #(
    [day]: [(($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4) - (153 * (((5 * (($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4)) + 2) / 153) + 2) / 5 + 1],
    [month]: [(((5 * (($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4)) + 2) / 153) + 3 - 12 * ((((5 * (($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4)) + 2) / 153) / 10)],
    #if ((((4 * ($e.jd + 32082) + 3) / 1461) - 4800 + ((((5 * (($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4)) + 2) / 153) / 10)) <= 0)
    (
    [year]: [(((4 * ($e.jd + 32082) + 3) / 1461) - 4800 + ((((5 * (($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4)) + 2) / 153) / 10)) - 1]
    )
    #else
    (
    [year]: [((4 * ($e.jd + 32082) + 3) / 1461) - 4800 + ((((5 * (($e.jd + 32082) - (1461 * ((4 * ($e.jd + 32082) + 3) / 1461)) / 4)) + 2) / 153) / 10)]
    )
    )
    )
    )
    }

    QDateTime|*::QDateTime{
    preview
    (
    #(
    "date=", [*(QDate*)((QAtomicInt*)$e.d.d + 1)],
    " time=", [*(QTime*)((QDate*)((QAtomicInt*)$e.d.d + 1) + 1)]
    )
    )
    children
    (
    #(
    [date]: [*(QDate*)((QAtomicInt*)$e.d.d + 1)],
    [time]: [*(QTime*)((QDate*)((QAtomicInt*)$e.d.d + 1) + 1)]
    )
    )
    }

  2. The following user says thank you to r2d2u2 for this useful post:

    frankiefrank (12th September 2013)

  3. #2
    Join Date
    May 2010
    Location
    Russia, Moscow
    Posts
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: View QDate and QDateTime in VisualStudio debugger.

    insert this content to the file in C:\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger\autoexp.dat

Similar Threads

  1. Debugger problem retrieving data for watch view hangs
    By frenk_castle in forum Installation and Deployment
    Replies: 0
    Last Post: 5th May 2010, 23:09
  2. Qt4 - VisualStudio 2005
    By JeffJones in forum Newbie
    Replies: 4
    Last Post: 22nd May 2007, 18:24
  3. Any Toolkit for designing VisualStudio-like GUIs?
    By burn2themax in forum Qt Programming
    Replies: 11
    Last Post: 29th July 2006, 10:00
  4. QString/QDate in KDevelop-Debugger (Qt4)
    By niko in forum KDE Forum
    Replies: 1
    Last Post: 23rd June 2006, 23:16
  5. Extending QDate, QTime and QDateTime
    By jamadagni in forum Qt Programming
    Replies: 8
    Last Post: 24th March 2006, 15:51

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.