src/gui/kernel/qdesktopwidget_s60.cpp
changeset 18 2f34d5167611
parent 3 41300fa6a67c
child 19 fcece45ef507
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
    86         cleanup();
    86         cleanup();
    87 }
    87 }
    88 
    88 
    89 void QDesktopWidgetPrivate::init(QDesktopWidget *that)
    89 void QDesktopWidgetPrivate::init(QDesktopWidget *that)
    90 {
    90 {
    91     int screenCount=0;
    91 //    int screenCount=0;
    92 
    92 
    93     if (HAL::Get(0, HALData::EDisplayNumberOfScreens, screenCount) == KErrNone)
    93     // ### TODO: Implement proper multi-display support
    94         QDesktopWidgetPrivate::screenCount = screenCount;
    94 	QDesktopWidgetPrivate::screenCount = 1;
    95     else
    95 //    if (HAL::Get(0, HALData::EDisplayNumberOfScreens, screenCount) == KErrNone)
    96         QDesktopWidgetPrivate::screenCount = 0;
    96 //        QDesktopWidgetPrivate::screenCount = screenCount;
       
    97 //    else
       
    98 //        QDesktopWidgetPrivate::screenCount = 0;
    97 
    99 
    98     rects = new QVector<QRect>();
   100     rects = new QVector<QRect>();
    99     workrects = new QVector<QRect>();
   101     workrects = new QVector<QRect>();
   100 
   102 
   101     rects->resize(QDesktopWidgetPrivate::screenCount);
   103     rects->resize(QDesktopWidgetPrivate::screenCount);
   102     workrects->resize(QDesktopWidgetPrivate::screenCount);
   104     workrects->resize(QDesktopWidgetPrivate::screenCount);
   103 
       
   104     // ### TODO: Implement proper multi-display support
       
   105     rects->resize(1);
       
   106     rects->replace(0, that->rect());
       
   107     workrects->resize(1);
       
   108     workrects->replace(0, that->rect());
       
   109 }
   105 }
   110 
   106 
   111 void QDesktopWidgetPrivate::cleanup()
   107 void QDesktopWidgetPrivate::cleanup()
   112 {
   108 {
   113     delete rects;
   109     delete rects;