source: trunk/src/gui/kernel/qdesktopwidget_pm.cpp@ 95

Last change on this file since 95 was 95, checked in by Dmitry A. Kuminov, 16 years ago

gui: Added OS/2 stubs for platform-specific parts of all key GUI classes. Non-key classes are temporarily disabled with QT_NO_ defines.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Date Revision Author Id
File size: 3.6 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4** Contact: Qt Software Information ([email protected])
5**
6** Copyright (C) 2009 netlabs.org. OS/2 parts.
7**
8** This file is part of the QtGui module of the Qt Toolkit.
9**
10** $QT_BEGIN_LICENSE:LGPL$
11** Commercial Usage
12** Licensees holding valid Qt Commercial licenses may use this file in
13** accordance with the Qt Commercial License Agreement provided with the
14** Software or, alternatively, in accordance with the terms contained in
15** a written agreement between you and Nokia.
16**
17** GNU Lesser General Public License Usage
18** Alternatively, this file may be used under the terms of the GNU Lesser
19** General Public License version 2.1 as published by the Free Software
20** Foundation and appearing in the file LICENSE.LGPL included in the
21** packaging of this file. Please review the following information to
22** ensure the GNU Lesser General Public License version 2.1 requirements
23** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24**
25** In addition, as a special exception, Nokia gives you certain
26** additional rights. These rights are described in the Nokia Qt LGPL
27** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
28** package.
29**
30** GNU General Public License Usage
31** Alternatively, this file may be used under the terms of the GNU
32** General Public License version 3.0 as published by the Free Software
33** Foundation and appearing in the file LICENSE.GPL included in the
34** packaging of this file. Please review the following information to
35** ensure the GNU General Public License version 3.0 requirements will be
36** met: http://www.gnu.org/copyleft/gpl.html.
37**
38** If you are unsure which license is appropriate for your use, please
39** contact the sales department at [email protected].
40** $QT_END_LICENSE$
41**
42****************************************************************************/
43
44#include "qdesktopwidget.h"
45#include "qt_os2.h"
46#include "qapplication_p.h"
47#include "qwidget_p.h"
48
49QT_BEGIN_NAMESPACE
50
51class QDesktopWidgetPrivate : public QWidgetPrivate
52{
53public:
54};
55
56/*
57 \omit
58 Function is commented out in header
59 \fn void *QDesktopWidget::handle(int screen) const
60
61 Returns the window system handle of the display device with the
62 index \a screen, for low-level access. Using this function is not
63 portable.
64
65 The return type varies with platform; see qwindowdefs.h for details.
66
67 \sa x11Display(), QPaintDevice::handle()
68 \endomit
69*/
70
71QDesktopWidget::QDesktopWidget()
72 : QWidget(*new QDesktopWidgetPrivate, 0, Qt::Desktop)
73 {
74 setObjectName(QLatin1String("desktop"));
75 // @todo implement
76}
77
78QDesktopWidget::~QDesktopWidget()
79{
80}
81
82bool QDesktopWidget::isVirtualDesktop() const
83{
84 return true;
85}
86
87int QDesktopWidget::primaryScreen() const
88{
89 // @todo implement
90 return 0;
91}
92
93int QDesktopWidget::numScreens() const
94{
95 // @todo implement
96 return 0;
97}
98
99QWidget *QDesktopWidget::screen(int /* screen */)
100{
101 // It seems that a Qt::WType_Desktop cannot be moved?
102 return this;
103}
104
105const QRect QDesktopWidget::availableGeometry(int screen) const
106{
107 // @todo implement
108 return QRect();
109}
110
111const QRect QDesktopWidget::screenGeometry(int screen) const
112{
113 // @todo implement
114 return QRect();
115}
116
117int QDesktopWidget::screenNumber(const QWidget *widget) const
118{
119 // @todo implement
120 return 0;
121}
122
123int QDesktopWidget::screenNumber(const QPoint &point) const
124{
125 // @todo implement
126 return 0;
127}
128
129void QDesktopWidget::resizeEvent(QResizeEvent *)
130{
131 // @todo implement
132}
133
134QT_END_NAMESPACE
Note: See TracBrowser for help on using the repository browser.