qtmobility/src/systeminfo/qsysteminfo.cpp
changeset 5 453da2cfceef
parent 4 90517678cc4f
child 8 71781823f776
equal deleted inserted replaced
4:90517678cc4f 5:453da2cfceef
   645 QSystemDisplayInfo::~QSystemDisplayInfo()
   645 QSystemDisplayInfo::~QSystemDisplayInfo()
   646 {
   646 {
   647 }
   647 }
   648 
   648 
   649 /*!
   649 /*!
   650     Returns the display brightness of \a screen in %, 1 - 100 scale.
   650     Returns the display brightness of the screen with index \a screenNumber in %, 1 - 100 scale.
   651 
   651 
   652     Depending on platform, displayBrightness may not be available due to
   652     Depending on platform, displayBrightness may not be available due to
   653     differing hardware, software or driver implementation. In which case this
   653     differing hardware, software or driver implementation. In which case this
   654     will return 0.
   654     will return 0.
   655 
   655 
   656 */
   656     \sa QDesktopWidget::screenCount()
   657 int QSystemDisplayInfo::displayBrightness(int screen)
   657 */
   658 {
   658 int QSystemDisplayInfo::displayBrightness(int screenNumber)
   659     return displayInfoPrivate()->displayBrightness(screen);
   659 {
   660 }
   660     return displayInfoPrivate()->displayBrightness(screenNumber);
   661 
   661 }
   662 /*!
   662 
   663     Returns the color depth of the screen \a screenNumber, in bits per pixel.
   663 /*!
       
   664     Returns the color depth of the screen with the index \a screenNumber, in bits per pixel.
       
   665 
       
   666     \sa QDesktopWidget::screenCount()
   664 */
   667 */
   665 int QSystemDisplayInfo::colorDepth(int screenNumber)
   668 int QSystemDisplayInfo::colorDepth(int screenNumber)
   666 {
   669 {
   667     return displayInfoPrivate()->colorDepth(screenNumber);
   670     return displayInfoPrivate()->colorDepth(screenNumber);
   668 }
   671 }