summaryrefslogtreecommitdiffstats
path: root/src/gui/image
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-09-07 08:12:47 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-09-07 08:12:47 (GMT)
commit2ff6c9e8d89590c8180769bd54e545f40ca9a56f (patch)
tree4c218c06f99ee31be79fb19a089d7506f29b373f /src/gui/image
parentbd4771a8a135bf2307c6fb2e27ccdac64637992d (diff)
downloadQt-2ff6c9e8d89590c8180769bd54e545f40ca9a56f.zip
Qt-2ff6c9e8d89590c8180769bd54e545f40ca9a56f.tar.gz
Qt-2ff6c9e8d89590c8180769bd54e545f40ca9a56f.tar.bz2
Please welcome the Lighthouse Research Project!
Lighthouse is a lighter, nimbler version of Qt/Embedded, which does not contain a window system. Instead, it uses graphics system plugins to provide the necessary functionality or interface with existing window systems. The first version was written by Rhys. Squashed commit.
Diffstat (limited to 'src/gui/image')
-rw-r--r--src/gui/image/image.pri5
-rw-r--r--src/gui/image/qpixmap_lite.cpp52
-rw-r--r--src/gui/image/qpixmapdatafactory.cpp5
3 files changed, 61 insertions, 1 deletions
diff --git a/src/gui/image/image.pri b/src/gui/image/image.pri
index 0970385..67f0699 100644
--- a/src/gui/image/image.pri
+++ b/src/gui/image/image.pri
@@ -61,11 +61,14 @@ win32 {
embedded {
SOURCES += image/qpixmap_qws.cpp
}
+embedded_lite {
+ SOURCES += image/qpixmap_lite.cpp
+}
x11 {
HEADERS += image/qpixmap_x11_p.h
SOURCES += image/qpixmap_x11.cpp
}
-mac {
+!embedded:!embedded_lite:mac {
HEADERS += image/qpixmap_mac_p.h
SOURCES += image/qpixmap_mac.cpp
}
diff --git a/src/gui/image/qpixmap_lite.cpp b/src/gui/image/qpixmap_lite.cpp
new file mode 100644
index 0000000..4ba69fa
--- /dev/null
+++ b/src/gui/image/qpixmap_lite.cpp
@@ -0,0 +1,52 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the QtGui module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the Technology Preview License Agreement accompanying
+** this package.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.1, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at qt-info@nokia.com.
+**
+**
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include <qpixmap.h>
+
+QPixmap QPixmap::grabWindow(WId window, int x, int y, int w, int h)
+{
+ Q_UNUSED(window);
+ Q_UNUSED(x);
+ Q_UNUSED(y);
+ Q_UNUSED(w);
+ Q_UNUSED(h);
+ return QPixmap();
+}
diff --git a/src/gui/image/qpixmapdatafactory.cpp b/src/gui/image/qpixmapdatafactory.cpp
index 53c93ad..fab6af8 100644
--- a/src/gui/image/qpixmapdatafactory.cpp
+++ b/src/gui/image/qpixmapdatafactory.cpp
@@ -53,6 +53,9 @@
#ifdef Q_WS_MAC
# include <private/qpixmap_mac_p.h>
#endif
+#ifdef Q_WS_LITE
+# include <private/qpixmap_raster_p.h>
+#endif
#include "private/qapplication_p.h"
#include "private/qgraphicssystem_p.h"
@@ -79,6 +82,8 @@ QPixmapData* QSimplePixmapDataFactory::create(QPixmapData::PixelType type)
return new QRasterPixmapData(type);
#elif defined(Q_WS_MAC)
return new QMacPixmapData(type);
+#elif defined(Q_WS_LITE)
+ return new QRasterPixmapData(type);
#else
#error QSimplePixmapDataFactory::create() not implemented
#endif