calendarui/views/dayview/src/calendayutils.cpp
changeset 83 5aadd1120515
parent 81 ce92091cbd61
equal deleted inserted replaced
82:dcd0ca396fa1 83:5aadd1120515
    72 qreal CalenDayUtils::screenWidth() const
    72 qreal CalenDayUtils::screenWidth() const
    73 {
    73 {
    74     ASSERT(mMainWindow);
    74     ASSERT(mMainWindow);
    75     
    75     
    76     return mMainWindow->layoutRect().width();
    76     return mMainWindow->layoutRect().width();
       
    77 }
       
    78 
       
    79 /*!
       
    80  \brief screenHeight
       
    81  
       
    82  \return Height of main window's screen
       
    83  */
       
    84 qreal CalenDayUtils::screenHeight() const
       
    85 {
       
    86     ASSERT(mMainWindow);
       
    87     
       
    88     return mMainWindow->layoutRect().height();
    77 }
    89 }
    78 
    90 
    79 /*!
    91 /*!
    80  \brief hourElementWidth
    92  \brief hourElementWidth
    81  
    93  
   220     // Calculate element's preferred height
   232     // Calculate element's preferred height
   221     qreal prefHeight = 0.0;
   233     qreal prefHeight = 0.0;
   222     qreal textHeight = 0.0;
   234     qreal textHeight = 0.0;
   223     qreal verticalSpacing = 0.0;
   235     qreal verticalSpacing = 0.0;
   224         
   236         
   225     qreal bottomSpacer = 4.1 * unitInPixels;
   237     qreal bottomSpacer = 5 * unitInPixels;
   226     style.parameter(QString("hb-param-text-height-secondary"), textHeight, 
   238     style.parameter(QString("hb-param-text-height-secondary"), textHeight, 
   227         deviceProfile);
   239         deviceProfile);
   228     style.parameter(QString("hb-param-margin-gene-middle-vertical"), 
   240     style.parameter(QString("hb-param-margin-gene-middle-vertical"), 
   229         verticalSpacing, deviceProfile);
   241         verticalSpacing, deviceProfile);
   230 
   242