Changeset 561 for trunk/src/gui/painting/qpaintdevice_x11.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/gui/painting/qpaintdevice_x11.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the QtGui module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 49 49 50 50 QT_BEGIN_NAMESPACE 51 52 QPaintDevice::QPaintDevice()53 {54 painters = 0;55 }56 57 extern void qt_painter_removePaintDevice(QPaintDevice *); //qpainter.cpp58 59 QPaintDevice::~QPaintDevice()60 {61 if (paintingActive())62 qWarning("QPaintDevice: Cannot destroy paint device that is being "63 "painted");64 qt_painter_removePaintDevice(this);65 }66 51 67 52 /*! \internal … … 97 82 } 98 83 99 int QPaintDevice::metric(PaintDeviceMetric) const100 {101 qWarning("QPaintDevice::metrics: Device has no metric information");102 return 0;103 }104 105 84 106 85 107 86 #ifdef QT3_SUPPORT 108 87 109 /*!110 Use QX11Info::display() instead.111 112 \oldcode113 Display *display = widget->x11Display();114 \newcode115 Display *display = QX11Info::display();116 \endcode117 118 \sa QWidget::x11Info(), QX11Info::display()119 */120 88 Display *QPaintDevice::x11Display() const 121 89 { … … 123 91 } 124 92 125 /*!126 Use QX11Info::screen() instead.127 128 \oldcode129 int screen = widget->x11Screen();130 \newcode131 int screen = widget->x11Info().screen();132 \endcode133 134 \sa QWidget::x11Info(), QPixmap::x11Info()135 */136 93 int QPaintDevice::x11Screen() const 137 94 { … … 142 99 } 143 100 144 /*!145 Use QX11Info::visual() instead.146 147 \oldcode148 void *visual = widget->x11Visual();149 \newcode150 void *visual = widget->x11Info().visual();151 \endcode152 153 \sa QWidget::x11Info(), QPixmap::x11Info()154 */155 101 void *QPaintDevice::x11Visual() const 156 102 { … … 161 107 } 162 108 163 /*!164 Use QX11Info::depth() instead.165 166 \oldcode167 int depth = widget->x11Depth();168 \newcode169 int depth = widget->x11Info().depth();170 \endcode171 172 \sa QWidget::x11Info(), QPixmap::x11Info()173 */174 109 int QPaintDevice::x11Depth() const 175 110 { … … 180 115 } 181 116 182 /*!183 Use QX11Info::cells() instead.184 185 \oldcode186 int cells = widget->x11Cells();187 \newcode188 int cells = widget->x11Info().cells();189 \endcode190 191 \sa QWidget::x11Info(), QPixmap::x11Info()192 */193 117 int QPaintDevice::x11Cells() const 194 118 { … … 199 123 } 200 124 201 /*!202 Use QX11Info::colormap() instead.203 204 \oldcode205 unsigned long screen = widget->x11Colormap();206 \newcode207 unsigned long screen = widget->x11Info().colormap();208 \endcode209 210 \sa QWidget::x11Info(), QPixmap::x11Info()211 */212 125 Qt::HANDLE QPaintDevice::x11Colormap() const 213 126 { … … 218 131 } 219 132 220 /*!221 Use QX11Info::defaultColormap() instead.222 223 \oldcode224 bool isDefault = widget->x11DefaultColormap();225 \newcode226 bool isDefault = widget->x11Info().defaultColormap();227 \endcode228 229 \sa QWidget::x11Info(), QPixmap::x11Info()230 */231 133 bool QPaintDevice::x11DefaultColormap() const 232 134 { … … 237 139 } 238 140 239 /*!240 Use QX11Info::defaultVisual() instead.241 242 \oldcode243 bool isDefault = widget->x11DefaultVisual();244 \newcode245 bool isDefault = widget->x11Info().defaultVisual();246 \endcode247 248 \sa QWidget::x11Info(), QPixmap::x11Info()249 */250 141 bool QPaintDevice::x11DefaultVisual() const 251 142 { … … 256 147 } 257 148 258 /*!259 Use QX11Info::visual() instead.260 261 \oldcode262 void *visual = QPaintDevice::x11AppVisual(screen);263 \newcode264 void *visual = qApp->x11Info(screen).visual();265 \endcode266 267 \sa QWidget::x11Info(), QPixmap::x11Info()268 */269 149 void *QPaintDevice::x11AppVisual(int screen) 270 150 { return QX11Info::appVisual(screen); } 271 151 272 /*!273 Use QX11Info::colormap() instead.274 275 \oldcode276 unsigned long colormap = QPaintDevice::x11AppColormap(screen);277 \newcode278 unsigned long colormap = qApp->x11Info(screen).colormap();279 \endcode280 281 \sa QWidget::x11Info(), QPixmap::x11Info()282 */283 152 Qt::HANDLE QPaintDevice::x11AppColormap(int screen) 284 153 { return QX11Info::appColormap(screen); } 285 154 286 /*!287 Use QX11Info::display() instead.288 289 \oldcode290 Display *display = QPaintDevice::x11AppDisplay();291 \newcode292 Display *display = qApp->x11Info().display();293 \endcode294 295 \sa QWidget::x11Info(), QPixmap::x11Info()296 */297 155 Display *QPaintDevice::x11AppDisplay() 298 156 { return QX11Info::display(); } 299 157 300 /*!301 Use QX11Info::screen() instead.302 303 \oldcode304 int screen = QPaintDevice::x11AppScreen();305 \newcode306 int screen = qApp->x11Info().screen();307 \endcode308 309 \sa QWidget::x11Info(), QPixmap::x11Info()310 */311 158 int QPaintDevice::x11AppScreen() 312 159 { return QX11Info::appScreen(); } 313 160 314 /*!315 Use QX11Info::depth() instead.316 317 \oldcode318 int depth = QPaintDevice::x11AppDepth(screen);319 \newcode320 int depth = qApp->x11Info(screen).depth();321 \endcode322 323 \sa QWidget::x11Info(), QPixmap::x11Info()324 */325 161 int QPaintDevice::x11AppDepth(int screen) 326 162 { return QX11Info::appDepth(screen); } 327 163 328 /*!329 Use QX11Info::cells() instead.330 331 \oldcode332 int cells = QPaintDevice::x11AppCells(screen);333 \newcode334 int cells = qApp->x11Info(screen).cells();335 \endcode336 337 \sa QWidget::x11Info(), QPixmap::x11Info()338 */339 164 int QPaintDevice::x11AppCells(int screen) 340 165 { return QX11Info::appCells(screen); } 341 166 342 /*!343 Use QX11Info::appRootWindow() instead.344 345 \oldcode346 unsigned long window = QPaintDevice::x11AppRootWindow(screen);347 \newcode348 unsigned long window = qApp->x11Info(screen).appRootWindow();349 \endcode350 351 \sa QWidget::x11Info(), QPixmap::x11Info()352 */353 167 Qt::HANDLE QPaintDevice::x11AppRootWindow(int screen) 354 168 { return QX11Info::appRootWindow(screen); } 355 169 356 /*!357 Use QX11Info::defaultColormap() instead.358 359 \oldcode360 bool isDefault = QPaintDevice::x11AppDefaultColormap(screen);361 \newcode362 bool isDefault = qApp->x11Info(screen).defaultColormap();363 \endcode364 365 \sa QWidget::x11Info(), QPixmap::x11Info()366 */367 170 bool QPaintDevice::x11AppDefaultColormap(int screen) 368 171 { return QX11Info::appDefaultColormap(screen); } 369 172 370 /*!371 Use QX11Info::defaultVisual() instead.372 373 \oldcode374 bool isDefault = QPaintDevice::x11AppDefaultVisual(screen);375 \newcode376 bool isDefault = qApp->x11Info(screen).defaultVisual();377 \endcode378 379 \sa QWidget::x11Info(), QPixmap::x11Info()380 */381 173 bool QPaintDevice::x11AppDefaultVisual(int screen) 382 174 { return QX11Info::appDefaultVisual(screen); } 383 175 384 /*!385 Use QX11Info::setAppDpiX() instead.386 */387 176 void QPaintDevice::x11SetAppDpiX(int dpi, int screen) 388 177 { … … 390 179 } 391 180 392 /*!393 Use QX11Info::setAppDpiY() instead.394 */395 181 void QPaintDevice::x11SetAppDpiY(int dpi, int screen) 396 182 { … … 398 184 } 399 185 400 401 /*!402 Use QX11Info::appDpiX() instead.403 404 \oldcode405 bool isDefault = QPaintDevice::x11AppDpiX(screen);406 \newcode407 bool isDefault = qApp->x11Info(screen).appDpiX();408 \endcode409 410 \sa QWidget::x11Info(), QPixmap::x11Info()411 */412 186 int QPaintDevice::x11AppDpiX(int screen) 413 187 { … … 415 189 } 416 190 417 /*!418 Use QX11Info::appDpiY() instead.419 420 \oldcode421 bool isDefault = QPaintDevice::x11AppDpiY(screen);422 \newcode423 bool isDefault = qApp->x11Info(screen).appDpiY();424 \endcode425 426 \sa QWidget::x11Info(), QPixmap::x11Info()427 */428 191 int QPaintDevice::x11AppDpiY(int screen) 429 192 {
Note:
See TracChangeset
for help on using the changeset viewer.