-rw-r--r-- | qt/qt-2.3.7.patch/qte237-all.patch | 12 | ||||
-rw-r--r-- | qt/qt-2.3.7.patch/qte237-gcc34.patch | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/qt/qt-2.3.7.patch/qte237-all.patch b/qt/qt-2.3.7.patch/qte237-all.patch index ea03446..307e558 100644 --- a/qt/qt-2.3.7.patch/qte237-all.patch +++ b/qt/qt-2.3.7.patch/qte237-all.patch | |||
@@ -1196,256 +1196,268 @@ diff -ur qt-2.3.7-old/src/widgets/qscrollview.cpp qt-2.3.7/src/widgets/qscrollvi | |||
1196 | +this, SLOT( vslide(int) ) ); | 1196 | +this, SLOT( vslide(int) ) ); |
1197 | d->viewport.installEventFilter( this ); | 1197 | d->viewport.installEventFilter( this ); |
1198 | 1198 | ||
1199 | setFrameStyle( QFrame::StyledPanel | QFrame::Sunken ); | 1199 | setFrameStyle( QFrame::StyledPanel | QFrame::Sunken ); |
1200 | setLineWidth( style().defaultFrameWidth() ); | 1200 | setLineWidth( style().defaultFrameWidth() ); |
1201 | setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) ); | 1201 | setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) ); |
1202 | + | 1202 | + |
1203 | } | 1203 | } |
1204 | 1204 | ||
1205 | 1205 | ||
1206 | @@ -683,6 +684,11 @@ | 1206 | @@ -683,6 +684,11 @@ |
1207 | h-tmarg-bmarg - (showh ? hsbExt : 0) ); | 1207 | h-tmarg-bmarg - (showh ? hsbExt : 0) ); |
1208 | } | 1208 | } |
1209 | 1209 | ||
1210 | +/* | 1210 | +/* |
1211 | + The surrounding environment (or application, if there is no | 1211 | + The surrounding environment (or application, if there is no |
1212 | + environment, may set this. Requires Qt >= 2.3.8. | 1212 | + environment, may set this. Requires Qt >= 2.3.8. |
1213 | +*/ | 1213 | +*/ |
1214 | +bool qt_left_hand_scrollbars = FALSE; | 1214 | +bool qt_left_hand_scrollbars = FALSE; |
1215 | 1215 | ||
1216 | /*! | 1216 | /*! |
1217 | Updates scrollbars - all possibilities considered. You should never | 1217 | Updates scrollbars - all possibilities considered. You should never |
1218 | @@ -786,45 +792,50 @@ | 1218 | @@ -786,45 +792,50 @@ |
1219 | 1219 | ||
1220 | // Position the scrollbars, viewport, and corner widget. | 1220 | // Position the scrollbars, viewport, and corner widget. |
1221 | int bottom; | 1221 | int bottom; |
1222 | + int xoffset = ( qt_left_hand_scrollbars && ( showv || cornerWidget() ) ) ? vsbExt : 0; | 1222 | + int xoffset = ( qt_left_hand_scrollbars && ( showv || cornerWidget() ) ) ? vsbExt : 0; |
1223 | + int xpos = qt_left_hand_scrollbars ? 0 : w-vsbExt; | 1223 | + int xpos = qt_left_hand_scrollbars ? 0 : w-vsbExt; |
1224 | + xpos = (style() == WindowsStyle) && qt_left_hand_scrollbars ? xpos + fw : xpos - fw; | 1224 | + xpos = (style() == WindowsStyle) && qt_left_hand_scrollbars ? xpos + fw : xpos - fw; |
1225 | + int ypos = tmarg; | 1225 | + int ypos = tmarg; |
1226 | + ypos = (style() == WindowsStyle) ? ypos +fw : 0; | 1226 | + ypos = (style() == WindowsStyle) ? ypos +fw : 0; |
1227 | if ( showh ) { | 1227 | if ( showh ) { |
1228 | int right = ( showv || cornerWidget() ) ? w-vsbExt : w; | 1228 | int right = ( showv || cornerWidget() ) ? w-vsbExt : w; |
1229 | if ( style() == WindowsStyle ) | 1229 | if ( style() == WindowsStyle ) |
1230 | - setHBarGeometry(d->hbar, fw, h-hsbExt-fw, | 1230 | - setHBarGeometry(d->hbar, fw, h-hsbExt-fw, |
1231 | + setHBarGeometry(d->hbar, fw + xoffset , h-hsbExt-fw, | 1231 | + setHBarGeometry(d->hbar, fw + xoffset , h-hsbExt-fw, |
1232 | right-fw-fw, hsbExt ); | 1232 | right-fw-fw, hsbExt ); |
1233 | else | 1233 | else |
1234 | - setHBarGeometry(d->hbar, 0, h-hsbExt, right, | 1234 | - setHBarGeometry(d->hbar, 0, h-hsbExt, right, |
1235 | + setHBarGeometry(d->hbar, 0+ xoffset, h-hsbExt, right, | 1235 | + setHBarGeometry(d->hbar, 0+ xoffset, h-hsbExt, right, |
1236 | hsbExt ); | 1236 | hsbExt ); |
1237 | bottom=h-hsbExt; | 1237 | bottom=h-hsbExt; |
1238 | } else { | 1238 | } else { |
1239 | bottom=h; | 1239 | bottom=h; |
1240 | } | 1240 | } |
1241 | if ( showv ) { | 1241 | if ( showv ) { |
1242 | -clipper()->setGeometry( lmarg, tmarg, | 1242 | -clipper()->setGeometry( lmarg, tmarg, |
1243 | +clipper()->setGeometry( lmarg + xoffset, tmarg, | 1243 | +clipper()->setGeometry( lmarg + xoffset, tmarg, |
1244 | w-vsbExt-lmarg-rmarg, | 1244 | w-vsbExt-lmarg-rmarg, |
1245 | bottom-tmarg-bmarg ); | 1245 | bottom-tmarg-bmarg ); |
1246 | d->viewportResized( w-vsbExt-lmarg-rmarg, bottom-tmarg-bmarg ); | 1246 | d->viewportResized( w-vsbExt-lmarg-rmarg, bottom-tmarg-bmarg ); |
1247 | if ( style() == WindowsStyle ) | 1247 | if ( style() == WindowsStyle ) |
1248 | - changeFrameRect(QRect(0, 0, w, h) ); | 1248 | - changeFrameRect(QRect(0, 0, w, h) ); |
1249 | + changeFrameRect(QRect(xoffset, 0, w, h) ); | 1249 | + changeFrameRect(QRect(xoffset, 0, w, h) ); |
1250 | else | 1250 | else |
1251 | - changeFrameRect(QRect(0, 0, w-vsbExt, bottom)); | 1251 | - changeFrameRect(QRect(0, 0, w-vsbExt, bottom)); |
1252 | + changeFrameRect(QRect(xoffset, 0, w-vsbExt, bottom)); | 1252 | + changeFrameRect(QRect(xoffset, 0, w-vsbExt, bottom)); |
1253 | if (cornerWidget()) { | 1253 | if (cornerWidget()) { |
1254 | if ( style() == WindowsStyle ) | 1254 | if ( style() == WindowsStyle ) |
1255 | - setVBarGeometry( d->vbar, w-vsbExt-fw, | 1255 | - setVBarGeometry( d->vbar, w-vsbExt-fw, |
1256 | - fw, vsbExt, | 1256 | - fw, vsbExt, |
1257 | - h-hsbExt-fw-fw ); | 1257 | - h-hsbExt-fw-fw ); |
1258 | + setVBarGeometry( d->vbar, xpos, | 1258 | + setVBarGeometry( d->vbar, xpos, |
1259 | + ypos, vsbExt, | 1259 | + ypos, vsbExt, |
1260 | + bottom-fw-ypos ); | 1260 | + bottom-fw-ypos ); |
1261 | else | 1261 | else |
1262 | - setVBarGeometry( d->vbar, w-vsbExt, 0, | 1262 | - setVBarGeometry( d->vbar, w-vsbExt, 0, |
1263 | + setVBarGeometry( d->vbar, xpos, ypos, | 1263 | + setVBarGeometry( d->vbar, xpos, ypos, |
1264 | vsbExt, | 1264 | vsbExt, |
1265 | - h-hsbExt ); | 1265 | - h-hsbExt ); |
1266 | + bottom-ypos ); | 1266 | + bottom-ypos ); |
1267 | } | 1267 | } |
1268 | else { | 1268 | else { |
1269 | if ( style() == WindowsStyle ) | 1269 | if ( style() == WindowsStyle ) |
1270 | - setVBarGeometry( d->vbar, w-vsbExt-fw, | 1270 | - setVBarGeometry( d->vbar, w-vsbExt-fw, |
1271 | - fw, vsbExt, | 1271 | - fw, vsbExt, |
1272 | - bottom-fw-fw ); | 1272 | - bottom-fw-fw ); |
1273 | + setVBarGeometry( d->vbar, xpos, | 1273 | + setVBarGeometry( d->vbar, xpos, |
1274 | + ypos, vsbExt, | 1274 | + ypos, vsbExt, |
1275 | + bottom-fw-ypos ); | 1275 | + bottom-fw-ypos ); |
1276 | else | 1276 | else |
1277 | - setVBarGeometry( d->vbar, w-vsbExt, 0, | 1277 | - setVBarGeometry( d->vbar, w-vsbExt, 0, |
1278 | - vsbExt, bottom ); | 1278 | - vsbExt, bottom ); |
1279 | + setVBarGeometry( d->vbar, xpos, ypos, | 1279 | + setVBarGeometry( d->vbar, xpos, ypos, |
1280 | + vsbExt, bottom-ypos ); | 1280 | + vsbExt, bottom-ypos ); |
1281 | } | 1281 | } |
1282 | } else { | 1282 | } else { |
1283 | if ( style() == WindowsStyle ) | 1283 | if ( style() == WindowsStyle ) |
1284 | @@ -837,12 +848,12 @@ | 1284 | @@ -837,12 +848,12 @@ |
1285 | } | 1285 | } |
1286 | if ( d->corner ) { | 1286 | if ( d->corner ) { |
1287 | if ( style() == WindowsStyle ) | 1287 | if ( style() == WindowsStyle ) |
1288 | - d->corner->setGeometry( w-vsbExt-fw, | 1288 | - d->corner->setGeometry( w-vsbExt-fw, |
1289 | + d->corner->setGeometry( xpos, | 1289 | + d->corner->setGeometry( xpos, |
1290 | h-hsbExt-fw, | 1290 | h-hsbExt-fw, |
1291 | vsbExt, | 1291 | vsbExt, |
1292 | hsbExt ); | 1292 | hsbExt ); |
1293 | else | 1293 | else |
1294 | - d->corner->setGeometry( w-vsbExt, | 1294 | - d->corner->setGeometry( w-vsbExt, |
1295 | + d->corner->setGeometry( xpos, | 1295 | + d->corner->setGeometry( xpos, |
1296 | h-hsbExt, | 1296 | h-hsbExt, |
1297 | vsbExt, | 1297 | vsbExt, |
1298 | hsbExt ); | 1298 | hsbExt ); |
1299 | @@ -1266,6 +1277,9 @@ | 1299 | @@ -1266,6 +1277,9 @@ |
1300 | case QEvent::LayoutHint: | 1300 | case QEvent::LayoutHint: |
1301 | d->autoResizeHint(this); | 1301 | d->autoResizeHint(this); |
1302 | break; | 1302 | break; |
1303 | +case QEvent::WindowActivate: | 1303 | +case QEvent::WindowActivate: |
1304 | +case QEvent::WindowDeactivate: | 1304 | +case QEvent::WindowDeactivate: |
1305 | + return TRUE; | 1305 | + return TRUE; |
1306 | default: | 1306 | default: |
1307 | break; | 1307 | break; |
1308 | } | 1308 | } |
1309 | @@ -1675,7 +1689,7 @@ | 1309 | @@ -1675,7 +1689,7 @@ |
1310 | } | 1310 | } |
1311 | 1311 | ||
1312 | /*! | 1312 | /*! |
1313 | - Scrolls the content by \a x to the left and \a y upwards. | 1313 | - Scrolls the content by \a x to the left and \a y upwards. |
1314 | + Scrolls the content by \a dx to the left and \a dy upwards. | 1314 | + Scrolls the content by \a dx to the left and \a dy upwards. |
1315 | */ | 1315 | */ |
1316 | void QScrollView::scrollBy( int dx, int dy ) | 1316 | void QScrollView::scrollBy( int dx, int dy ) |
1317 | { | 1317 | { |
1318 | diff -ur qt-2.3.7-old/src/widgets/qtoolbutton.cpp qt-2.3.7/src/widgets/qtoolbutton.cpp | 1318 | diff -ur qt-2.3.7-old/src/widgets/qtoolbutton.cpp qt-2.3.7/src/widgets/qtoolbutton.cpp |
1319 | --- qt-2.3.7-old/src/widgets/qtoolbutton.cpp2004-07-23 15:22:56.000000000 +0200 | 1319 | --- qt-2.3.7-old/src/widgets/qtoolbutton.cpp2004-07-23 15:22:56.000000000 +0200 |
1320 | +++ qt-2.3.7/src/widgets/qtoolbutton.cpp2004-07-23 15:38:13.000000000 +0200 | 1320 | +++ qt-2.3.7/src/widgets/qtoolbutton.cpp2004-07-23 15:38:13.000000000 +0200 |
1321 | @@ -230,7 +230,7 @@ | 1321 | @@ -230,7 +230,7 @@ |
1322 | else | 1322 | else |
1323 | QToolTip::add( this, textLabel ); | 1323 | QToolTip::add( this, textLabel ); |
1324 | } | 1324 | } |
1325 | -#endif | 1325 | -#endif |
1326 | +#endif | 1326 | +#endif |
1327 | } | 1327 | } |
1328 | 1328 | ||
1329 | 1329 | ||
1330 | @@ -324,12 +324,12 @@ | 1330 | @@ -324,12 +324,12 @@ |
1331 | QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Large, QIconSet::Normal); | 1331 | QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Large, QIconSet::Normal); |
1332 | w = pm.width(); | 1332 | w = pm.width(); |
1333 | h = pm.height(); | 1333 | h = pm.height(); |
1334 | -if ( w < 32 ) | 1334 | -if ( w < 32 ) |
1335 | - w = 32; | 1335 | - w = 32; |
1336 | -if ( h < 32 ) | 1336 | -if ( h < 32 ) |
1337 | - h = 32; | 1337 | - h = 32; |
1338 | +if ( w < 24 ) | 1338 | +if ( w < 24 ) |
1339 | + w = 24; | 1339 | + w = 24; |
1340 | +if ( h < 24 ) | 1340 | +if ( h < 24 ) |
1341 | + h = 24; | 1341 | + h = 24; |
1342 | } else { | 1342 | } else { |
1343 | -w = h = 16; | 1343 | -w = h = 16; |
1344 | +w = h = 14; | 1344 | +w = h = 14; |
1345 | QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Small, QIconSet::Normal); | 1345 | QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Small, QIconSet::Normal); |
1346 | w = pm.width(); | 1346 | w = pm.width(); |
1347 | h = pm.height(); | 1347 | h = pm.height(); |
1348 | diff -ur qt-2.3.7_old/src/kernel/qgfxvnc_qws.cpp qt-2.3.7/src/kernel/qgfxvnc_qws.cpp | 1348 | diff -ur qt-2.3.7_old/src/kernel/qgfxvnc_qws.cpp qt-2.3.7/src/kernel/qgfxvnc_qws.cpp |
1349 | --- qt-2.3.7_old/src/kernel/qgfxvnc_qws.cpp2004-09-10 21:08:04.000000000 +0200 | 1349 | --- qt-2.3.7_old/src/kernel/qgfxvnc_qws.cpp2004-09-10 21:08:04.000000000 +0200 |
1350 | +++ qt-2.3.7/src/kernel/qgfxvnc_qws.cpp2004-09-10 21:10:54.000000000 +0200 | 1350 | +++ qt-2.3.7/src/kernel/qgfxvnc_qws.cpp2004-09-10 21:10:54.000000000 +0200 |
1351 | @@ -971,7 +971,7 @@ | 1351 | @@ -971,7 +971,7 @@ |
1352 | void QGfxVNC<depth,type>::drawPoint( int x, int y ) | 1352 | void QGfxVNC<depth,type>::drawPoint( int x, int y ) |
1353 | { | 1353 | { |
1354 | QWSDisplay::grab( TRUE ); | 1354 | QWSDisplay::grab( TRUE ); |
1355 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, 1, 1 ) & clipbounds ); | 1355 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, 1, 1 ) & clipbounds ); |
1356 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, 1, 1 ) & this->clipbounds ); | 1356 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, 1, 1 ) & this->clipbounds ); |
1357 | QGfxRaster<depth,type>::drawPoint( x, y ); | 1357 | QGfxRaster<depth,type>::drawPoint( x, y ); |
1358 | QWSDisplay::ungrab(); | 1358 | QWSDisplay::ungrab(); |
1359 | } | 1359 | } |
1360 | @@ -981,8 +981,8 @@ | 1360 | @@ -981,8 +981,8 @@ |
1361 | { | 1361 | { |
1362 | QWSDisplay::grab( TRUE ); | 1362 | QWSDisplay::grab( TRUE ); |
1363 | QRect r = pa.boundingRect(); | 1363 | QRect r = pa.boundingRect(); |
1364 | - r.moveBy( xoffs, yoffs ); | 1364 | - r.moveBy( xoffs, yoffs ); |
1365 | - qvnc_screen->setDirty( r & clipbounds ); | 1365 | - qvnc_screen->setDirty( r & clipbounds ); |
1366 | + r.moveBy( this->xoffs, this->yoffs ); | 1366 | + r.moveBy( this->xoffs, this->yoffs ); |
1367 | + qvnc_screen->setDirty( r & this->clipbounds ); | 1367 | + qvnc_screen->setDirty( r & this->clipbounds ); |
1368 | QGfxRaster<depth,type>::drawPoints( pa, x, y ); | 1368 | QGfxRaster<depth,type>::drawPoints( pa, x, y ); |
1369 | QWSDisplay::ungrab(); | 1369 | QWSDisplay::ungrab(); |
1370 | } | 1370 | } |
1371 | @@ -992,9 +992,9 @@ | 1371 | @@ -992,9 +992,9 @@ |
1372 | { | 1372 | { |
1373 | QWSDisplay::grab( TRUE ); | 1373 | QWSDisplay::grab( TRUE ); |
1374 | QRect r; | 1374 | QRect r; |
1375 | - r.setCoords( x1+xoffs, y1+yoffs, x2+xoffs, y2+yoffs ); | 1375 | - r.setCoords( x1+xoffs, y1+yoffs, x2+xoffs, y2+yoffs ); |
1376 | + r.setCoords( x1+this->xoffs, y1+this->yoffs, x2+this->xoffs, y2+this->yoffs ); | 1376 | + r.setCoords( x1+this->xoffs, y1+this->yoffs, x2+this->xoffs, y2+this->yoffs ); |
1377 | r = r.normalize(); | 1377 | r = r.normalize(); |
1378 | - qvnc_screen->setDirty( r & clipbounds ); | 1378 | - qvnc_screen->setDirty( r & clipbounds ); |
1379 | + qvnc_screen->setDirty( r & this->clipbounds ); | 1379 | + qvnc_screen->setDirty( r & this->clipbounds ); |
1380 | QGfxRaster<depth,type>::drawLine( x1, y1, x2, y2 ); | 1380 | QGfxRaster<depth,type>::drawLine( x1, y1, x2, y2 ); |
1381 | QWSDisplay::ungrab(); | 1381 | QWSDisplay::ungrab(); |
1382 | } | 1382 | } |
1383 | @@ -1003,7 +1003,7 @@ | 1383 | @@ -1003,7 +1003,7 @@ |
1384 | void QGfxVNC<depth,type>::fillRect( int x,int y,int w,int h ) | 1384 | void QGfxVNC<depth,type>::fillRect( int x,int y,int w,int h ) |
1385 | { | 1385 | { |
1386 | QWSDisplay::grab( TRUE ); | 1386 | QWSDisplay::grab( TRUE ); |
1387 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) & clipbounds ); | 1387 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) & clipbounds ); |
1388 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) & this->clipbounds ); | 1388 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) & this->clipbounds ); |
1389 | QGfxRaster<depth,type>::fillRect( x, y, w, h ); | 1389 | QGfxRaster<depth,type>::fillRect( x, y, w, h ); |
1390 | QWSDisplay::ungrab(); | 1390 | QWSDisplay::ungrab(); |
1391 | } | 1391 | } |
1392 | @@ -1013,8 +1013,8 @@ | 1392 | @@ -1013,8 +1013,8 @@ |
1393 | { | 1393 | { |
1394 | QWSDisplay::grab( TRUE ); | 1394 | QWSDisplay::grab( TRUE ); |
1395 | QRect r = pa.boundingRect(); | 1395 | QRect r = pa.boundingRect(); |
1396 | - r.moveBy( xoffs, yoffs ); | 1396 | - r.moveBy( xoffs, yoffs ); |
1397 | - qvnc_screen->setDirty( r & clipbounds ); | 1397 | - qvnc_screen->setDirty( r & clipbounds ); |
1398 | + r.moveBy( this->xoffs, this->yoffs ); | 1398 | + r.moveBy( this->xoffs, this->yoffs ); |
1399 | + qvnc_screen->setDirty( r & this->clipbounds ); | 1399 | + qvnc_screen->setDirty( r & this->clipbounds ); |
1400 | QGfxRaster<depth,type>::drawPolyline( pa, x, y ); | 1400 | QGfxRaster<depth,type>::drawPolyline( pa, x, y ); |
1401 | QWSDisplay::ungrab(); | 1401 | QWSDisplay::ungrab(); |
1402 | } | 1402 | } |
1403 | @@ -1024,8 +1024,8 @@ | 1403 | @@ -1024,8 +1024,8 @@ |
1404 | { | 1404 | { |
1405 | QWSDisplay::grab( TRUE ); | 1405 | QWSDisplay::grab( TRUE ); |
1406 | QRect r = pa.boundingRect(); | 1406 | QRect r = pa.boundingRect(); |
1407 | - r.moveBy( xoffs, yoffs ); | 1407 | - r.moveBy( xoffs, yoffs ); |
1408 | - qvnc_screen->setDirty( r & clipbounds ); | 1408 | - qvnc_screen->setDirty( r & clipbounds ); |
1409 | + r.moveBy( this->xoffs, this->yoffs ); | 1409 | + r.moveBy( this->xoffs, this->yoffs ); |
1410 | + qvnc_screen->setDirty( r & this->clipbounds ); | 1410 | + qvnc_screen->setDirty( r & this->clipbounds ); |
1411 | QGfxRaster<depth,type>::drawPolygon( pa, w, x, y ); | 1411 | QGfxRaster<depth,type>::drawPolygon( pa, w, x, y ); |
1412 | QWSDisplay::ungrab(); | 1412 | QWSDisplay::ungrab(); |
1413 | } | 1413 | } |
1414 | @@ -1034,7 +1034,7 @@ | 1414 | @@ -1034,7 +1034,7 @@ |
1415 | void QGfxVNC<depth,type>::blt( int x,int y,int w,int h, int sx, int sy ) | 1415 | void QGfxVNC<depth,type>::blt( int x,int y,int w,int h, int sx, int sy ) |
1416 | { | 1416 | { |
1417 | QWSDisplay::grab( TRUE ); | 1417 | QWSDisplay::grab( TRUE ); |
1418 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) & clipbounds ); | 1418 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) & clipbounds ); |
1419 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) & this->clipbounds ); | 1419 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) & this->clipbounds ); |
1420 | QGfxRaster<depth,type>::blt( x, y, w, h, sx, sy ); | 1420 | QGfxRaster<depth,type>::blt( x, y, w, h, sx, sy ); |
1421 | QWSDisplay::ungrab(); | 1421 | QWSDisplay::ungrab(); |
1422 | } | 1422 | } |
1423 | @@ -1045,8 +1045,8 @@ | 1423 | @@ -1045,8 +1045,8 @@ |
1424 | QWSDisplay::grab( TRUE ); | 1424 | QWSDisplay::grab( TRUE ); |
1425 | int dy = sy - y; | 1425 | int dy = sy - y; |
1426 | int dx = sx - x; | 1426 | int dx = sx - x; |
1427 | - qvnc_screen->setDirty( QRect(QMIN(x,sx) + xoffs, QMIN(y,sy) + yoffs, | 1427 | - qvnc_screen->setDirty( QRect(QMIN(x,sx) + xoffs, QMIN(y,sy) + yoffs, |
1428 | - w+abs(dx), h+abs(dy)) & clipbounds ); | 1428 | - w+abs(dx), h+abs(dy)) & clipbounds ); |
1429 | + qvnc_screen->setDirty( QRect(QMIN(x,sx) + this->xoffs, QMIN(y,sy) + this->yoffs, | 1429 | + qvnc_screen->setDirty( QRect(QMIN(x,sx) + this->xoffs, QMIN(y,sy) + this->yoffs, |
1430 | + w+abs(dx), h+abs(dy)) & this->clipbounds ); | 1430 | + w+abs(dx), h+abs(dy)) & this->clipbounds ); |
1431 | QGfxRaster<depth,type>::scroll( x, y, w, h, sx, sy ); | 1431 | QGfxRaster<depth,type>::scroll( x, y, w, h, sx, sy ); |
1432 | QWSDisplay::ungrab(); | 1432 | QWSDisplay::ungrab(); |
1433 | } | 1433 | } |
1434 | @@ -1056,7 +1056,7 @@ | 1434 | @@ -1056,7 +1056,7 @@ |
1435 | void QGfxVNC<depth,type>::stretchBlt( int x,int y,int w,int h,int sx,int sy ) | 1435 | void QGfxVNC<depth,type>::stretchBlt( int x,int y,int w,int h,int sx,int sy ) |
1436 | { | 1436 | { |
1437 | QWSDisplay::grab( TRUE ); | 1437 | QWSDisplay::grab( TRUE ); |
1438 | - qvnc_screen->setDirty( QRect( x + xoffs, y + yoffs, w, h) & clipbounds ); | 1438 | - qvnc_screen->setDirty( QRect( x + xoffs, y + yoffs, w, h) & clipbounds ); |
1439 | + qvnc_screen->setDirty( QRect( x + this->xoffs, y + this->yoffs, w, h) & this->clipbounds ); | 1439 | + qvnc_screen->setDirty( QRect( x + this->xoffs, y + this->yoffs, w, h) & this->clipbounds ); |
1440 | QGfxRaster<depth,type>::stretchBlt( x, y, w, h, sx, sy ); | 1440 | QGfxRaster<depth,type>::stretchBlt( x, y, w, h, sx, sy ); |
1441 | QWSDisplay::ungrab(); | 1441 | QWSDisplay::ungrab(); |
1442 | } | 1442 | } |
1443 | @@ -1066,7 +1066,7 @@ | 1443 | @@ -1066,7 +1066,7 @@ |
1444 | void QGfxVNC<depth,type>::tiledBlt( int x,int y,int w,int h ) | 1444 | void QGfxVNC<depth,type>::tiledBlt( int x,int y,int w,int h ) |
1445 | { | 1445 | { |
1446 | QWSDisplay::grab( TRUE ); | 1446 | QWSDisplay::grab( TRUE ); |
1447 | - qvnc_screen->setDirty( QRect(x + xoffs, y + yoffs, w, h) & clipbounds ); | 1447 | - qvnc_screen->setDirty( QRect(x + xoffs, y + yoffs, w, h) & clipbounds ); |
1448 | + qvnc_screen->setDirty( QRect(x + this->xoffs, y + this->yoffs, w, h) & this->clipbounds ); | 1448 | + qvnc_screen->setDirty( QRect(x + this->xoffs, y + this->yoffs, w, h) & this->clipbounds ); |
1449 | QGfxRaster<depth,type>::tiledBlt( x, y, w, h ); | 1449 | QGfxRaster<depth,type>::tiledBlt( x, y, w, h ); |
1450 | QWSDisplay::ungrab(); | 1450 | QWSDisplay::ungrab(); |
1451 | } | 1451 | } |
1452 | diff -ur qt-2.3.7_old/src/kernel/qwsdecoration_qws.h qt-2.3.7/src/kernel/qwsdecoration_qws.h | ||
1453 | --- qt-2.3.7_old/src/kernel/qwsdecoration_qws.h2003-07-17 03:20:26.000000000 +0200 | ||
1454 | +++ qt-2.3.7/src/kernel/qwsdecoration_qws.h2004-09-13 15:44:13.000000000 +0200 | ||
1455 | @@ -50,7 +50,7 @@ | ||
1456 | enum Region { None=0, All=1, Title=2, Top=3, Bottom=4, Left=5, Right=6, | ||
1457 | TopLeft=7, TopRight=8, BottomLeft=9, BottomRight=10, | ||
1458 | Close=11, Minimize=12, Maximize=13, Normalize=14, | ||
1459 | - Menu=15, LastRegion=Menu }; | ||
1460 | + Menu=15, LastRegion=Menu, UserDefined = 100 }; | ||
1461 | |||
1462 | virtual QRegion region(const QWidget *, const QRect &rect, Region r=All) = 0; | ||
1463 | virtual void close( QWidget * ); | ||
diff --git a/qt/qt-2.3.7.patch/qte237-gcc34.patch b/qt/qt-2.3.7.patch/qte237-gcc34.patch index 9a0f28c..a7f1681 100644 --- a/qt/qt-2.3.7.patch/qte237-gcc34.patch +++ b/qt/qt-2.3.7.patch/qte237-gcc34.patch | |||
@@ -243,256 +243,268 @@ diff -ur qt-2.3.7_old/src/kernel/qgfxvfb_qws.cpp qt-2.3.7/src/kernel/qgfxvfb_qws | |||
243 | { | 243 | { |
244 | QWSDisplay::grab( TRUE ); | 244 | QWSDisplay::grab( TRUE ); |
245 | - if ( is_screen_gfx ) { | 245 | - if ( is_screen_gfx ) { |
246 | + if ( this->is_screen_gfx ) { | 246 | + if ( this->is_screen_gfx ) { |
247 | QRect r; | 247 | QRect r; |
248 | -r.setCoords( x1+xoffs, y1+yoffs, x2+xoffs, y2+yoffs ); | 248 | -r.setCoords( x1+xoffs, y1+yoffs, x2+xoffs, y2+yoffs ); |
249 | +r.setCoords( x1+this->xoffs, y1+this->yoffs, x2+this->xoffs, y2+this->yoffs ); | 249 | +r.setCoords( x1+this->xoffs, y1+this->yoffs, x2+this->xoffs, y2+this->yoffs ); |
250 | qvfb_screen->setDirty( r.normalize() ); | 250 | qvfb_screen->setDirty( r.normalize() ); |
251 | } | 251 | } |
252 | QGfxRaster<depth,type>::drawLine( x1, y1, x2, y2 ); | 252 | QGfxRaster<depth,type>::drawLine( x1, y1, x2, y2 ); |
253 | @@ -173,8 +172,8 @@ | 253 | @@ -173,8 +172,8 @@ |
254 | void QGfxVFb<depth,type>::fillRect( int x,int y,int w,int h ) | 254 | void QGfxVFb<depth,type>::fillRect( int x,int y,int w,int h ) |
255 | { | 255 | { |
256 | QWSDisplay::grab( TRUE ); | 256 | QWSDisplay::grab( TRUE ); |
257 | - if ( is_screen_gfx ) | 257 | - if ( is_screen_gfx ) |
258 | -qvfb_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) ); | 258 | -qvfb_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) ); |
259 | + if ( this->is_screen_gfx ) | 259 | + if ( this->is_screen_gfx ) |
260 | +qvfb_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) ); | 260 | +qvfb_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) ); |
261 | QGfxRaster<depth,type>::fillRect( x, y, w, h ); | 261 | QGfxRaster<depth,type>::fillRect( x, y, w, h ); |
262 | QWSDisplay::ungrab(); | 262 | QWSDisplay::ungrab(); |
263 | } | 263 | } |
264 | @@ -183,8 +182,8 @@ | 264 | @@ -183,8 +182,8 @@ |
265 | void QGfxVFb<depth,type>::drawPolyline( const QPointArray &pa,int x,int y ) | 265 | void QGfxVFb<depth,type>::drawPolyline( const QPointArray &pa,int x,int y ) |
266 | { | 266 | { |
267 | QWSDisplay::grab( TRUE ); | 267 | QWSDisplay::grab( TRUE ); |
268 | - if ( is_screen_gfx ) | 268 | - if ( is_screen_gfx ) |
269 | -qvfb_screen->setDirty( clipbounds ); | 269 | -qvfb_screen->setDirty( clipbounds ); |
270 | + if ( this->is_screen_gfx ) | 270 | + if ( this->is_screen_gfx ) |
271 | +qvfb_screen->setDirty( this->clipbounds ); | 271 | +qvfb_screen->setDirty( this->clipbounds ); |
272 | QGfxRaster<depth,type>::drawPolyline( pa, x, y ); | 272 | QGfxRaster<depth,type>::drawPolyline( pa, x, y ); |
273 | QWSDisplay::ungrab(); | 273 | QWSDisplay::ungrab(); |
274 | } | 274 | } |
275 | @@ -193,8 +192,8 @@ | 275 | @@ -193,8 +192,8 @@ |
276 | void QGfxVFb<depth,type>::drawPolygon( const QPointArray &pa,bool w,int x,int y ) | 276 | void QGfxVFb<depth,type>::drawPolygon( const QPointArray &pa,bool w,int x,int y ) |
277 | { | 277 | { |
278 | QWSDisplay::grab( TRUE ); | 278 | QWSDisplay::grab( TRUE ); |
279 | - if ( is_screen_gfx ) | 279 | - if ( is_screen_gfx ) |
280 | -qvfb_screen->setDirty( clipbounds ); | 280 | -qvfb_screen->setDirty( clipbounds ); |
281 | + if ( this->is_screen_gfx ) | 281 | + if ( this->is_screen_gfx ) |
282 | +qvfb_screen->setDirty( this->clipbounds ); | 282 | +qvfb_screen->setDirty( this->clipbounds ); |
283 | QGfxRaster<depth,type>::drawPolygon( pa, w, x, y ); | 283 | QGfxRaster<depth,type>::drawPolygon( pa, w, x, y ); |
284 | QWSDisplay::ungrab(); | 284 | QWSDisplay::ungrab(); |
285 | } | 285 | } |
286 | @@ -203,8 +202,8 @@ | 286 | @@ -203,8 +202,8 @@ |
287 | void QGfxVFb<depth,type>::blt( int x,int y,int w,int h, int sx, int sy ) | 287 | void QGfxVFb<depth,type>::blt( int x,int y,int w,int h, int sx, int sy ) |
288 | { | 288 | { |
289 | QWSDisplay::grab( TRUE ); | 289 | QWSDisplay::grab( TRUE ); |
290 | - if ( is_screen_gfx ) | 290 | - if ( is_screen_gfx ) |
291 | -qvfb_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) ); | 291 | -qvfb_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) ); |
292 | + if ( this->is_screen_gfx ) | 292 | + if ( this->is_screen_gfx ) |
293 | +qvfb_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) ); | 293 | +qvfb_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) ); |
294 | QGfxRaster<depth,type>::blt( x, y, w, h, sx, sy ); | 294 | QGfxRaster<depth,type>::blt( x, y, w, h, sx, sy ); |
295 | QWSDisplay::ungrab(); | 295 | QWSDisplay::ungrab(); |
296 | } | 296 | } |
297 | @@ -215,8 +214,8 @@ | 297 | @@ -215,8 +214,8 @@ |
298 | QWSDisplay::grab( TRUE ); | 298 | QWSDisplay::grab( TRUE ); |
299 | int dy = sy - y; | 299 | int dy = sy - y; |
300 | int dx = sx - x; | 300 | int dx = sx - x; |
301 | - if ( is_screen_gfx ) | 301 | - if ( is_screen_gfx ) |
302 | -qvfb_screen->setDirty( QRect(QMIN(x,sx) + xoffs, QMIN(y,sy) + yoffs, | 302 | -qvfb_screen->setDirty( QRect(QMIN(x,sx) + xoffs, QMIN(y,sy) + yoffs, |
303 | + if ( this->is_screen_gfx ) | 303 | + if ( this->is_screen_gfx ) |
304 | +qvfb_screen->setDirty( QRect(QMIN(x,sx) + this->xoffs, QMIN(y,sy) + this->yoffs, | 304 | +qvfb_screen->setDirty( QRect(QMIN(x,sx) + this->xoffs, QMIN(y,sy) + this->yoffs, |
305 | w+abs(dx), h+abs(dy)) ); | 305 | w+abs(dx), h+abs(dy)) ); |
306 | QGfxRaster<depth,type>::scroll( x, y, w, h, sx, sy ); | 306 | QGfxRaster<depth,type>::scroll( x, y, w, h, sx, sy ); |
307 | QWSDisplay::ungrab(); | 307 | QWSDisplay::ungrab(); |
308 | @@ -227,8 +226,8 @@ | 308 | @@ -227,8 +226,8 @@ |
309 | void QGfxVFb<depth,type>::stretchBlt( int x,int y,int w,int h,int sx,int sy ) | 309 | void QGfxVFb<depth,type>::stretchBlt( int x,int y,int w,int h,int sx,int sy ) |
310 | { | 310 | { |
311 | QWSDisplay::grab( TRUE ); | 311 | QWSDisplay::grab( TRUE ); |
312 | - if ( is_screen_gfx ) | 312 | - if ( is_screen_gfx ) |
313 | -qvfb_screen->setDirty( QRect( x + xoffs, y + yoffs, w, h) ); | 313 | -qvfb_screen->setDirty( QRect( x + xoffs, y + yoffs, w, h) ); |
314 | + if ( this->is_screen_gfx ) | 314 | + if ( this->is_screen_gfx ) |
315 | +qvfb_screen->setDirty( QRect( x + this->xoffs, y + this->yoffs, w, h) ); | 315 | +qvfb_screen->setDirty( QRect( x + this->xoffs, y + this->yoffs, w, h) ); |
316 | QGfxRaster<depth,type>::stretchBlt( x, y, w, h, sx, sy ); | 316 | QGfxRaster<depth,type>::stretchBlt( x, y, w, h, sx, sy ); |
317 | QWSDisplay::ungrab(); | 317 | QWSDisplay::ungrab(); |
318 | } | 318 | } |
319 | @@ -238,8 +237,8 @@ | 319 | @@ -238,8 +237,8 @@ |
320 | void QGfxVFb<depth,type>::tiledBlt( int x,int y,int w,int h ) | 320 | void QGfxVFb<depth,type>::tiledBlt( int x,int y,int w,int h ) |
321 | { | 321 | { |
322 | QWSDisplay::grab( TRUE ); | 322 | QWSDisplay::grab( TRUE ); |
323 | - if ( is_screen_gfx ) | 323 | - if ( is_screen_gfx ) |
324 | -qvfb_screen->setDirty( QRect(x + xoffs, y + yoffs, w, h) ); | 324 | -qvfb_screen->setDirty( QRect(x + xoffs, y + yoffs, w, h) ); |
325 | + if ( this->is_screen_gfx ) | 325 | + if ( this->is_screen_gfx ) |
326 | +qvfb_screen->setDirty( QRect(x + this->xoffs, y + this->yoffs, w, h) ); | 326 | +qvfb_screen->setDirty( QRect(x + this->xoffs, y + this->yoffs, w, h) ); |
327 | QGfxRaster<depth,type>::tiledBlt( x, y, w, h ); | 327 | QGfxRaster<depth,type>::tiledBlt( x, y, w, h ); |
328 | QWSDisplay::ungrab(); | 328 | QWSDisplay::ungrab(); |
329 | } | 329 | } |
330 | diff -ur qt-2.3.7_old/src/kernel/qgfxvnc_qws.cpp qt-2.3.7/src/kernel/qgfxvnc_qws.cpp | 330 | diff -ur qt-2.3.7_old/src/kernel/qgfxvnc_qws.cpp qt-2.3.7/src/kernel/qgfxvnc_qws.cpp |
331 | --- qt-2.3.7_old/src/kernel/qgfxvnc_qws.cpp2004-09-10 21:08:04.000000000 +0200 | 331 | --- qt-2.3.7_old/src/kernel/qgfxvnc_qws.cpp2004-09-10 21:08:04.000000000 +0200 |
332 | +++ qt-2.3.7/src/kernel/qgfxvnc_qws.cpp2004-09-10 21:10:54.000000000 +0200 | 332 | +++ qt-2.3.7/src/kernel/qgfxvnc_qws.cpp2004-09-10 21:10:54.000000000 +0200 |
333 | @@ -971,7 +971,7 @@ | 333 | @@ -971,7 +971,7 @@ |
334 | void QGfxVNC<depth,type>::drawPoint( int x, int y ) | 334 | void QGfxVNC<depth,type>::drawPoint( int x, int y ) |
335 | { | 335 | { |
336 | QWSDisplay::grab( TRUE ); | 336 | QWSDisplay::grab( TRUE ); |
337 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, 1, 1 ) & clipbounds ); | 337 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, 1, 1 ) & clipbounds ); |
338 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, 1, 1 ) & this->clipbounds ); | 338 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, 1, 1 ) & this->clipbounds ); |
339 | QGfxRaster<depth,type>::drawPoint( x, y ); | 339 | QGfxRaster<depth,type>::drawPoint( x, y ); |
340 | QWSDisplay::ungrab(); | 340 | QWSDisplay::ungrab(); |
341 | } | 341 | } |
342 | @@ -981,8 +981,8 @@ | 342 | @@ -981,8 +981,8 @@ |
343 | { | 343 | { |
344 | QWSDisplay::grab( TRUE ); | 344 | QWSDisplay::grab( TRUE ); |
345 | QRect r = pa.boundingRect(); | 345 | QRect r = pa.boundingRect(); |
346 | - r.moveBy( xoffs, yoffs ); | 346 | - r.moveBy( xoffs, yoffs ); |
347 | - qvnc_screen->setDirty( r & clipbounds ); | 347 | - qvnc_screen->setDirty( r & clipbounds ); |
348 | + r.moveBy( this->xoffs, this->yoffs ); | 348 | + r.moveBy( this->xoffs, this->yoffs ); |
349 | + qvnc_screen->setDirty( r & this->clipbounds ); | 349 | + qvnc_screen->setDirty( r & this->clipbounds ); |
350 | QGfxRaster<depth,type>::drawPoints( pa, x, y ); | 350 | QGfxRaster<depth,type>::drawPoints( pa, x, y ); |
351 | QWSDisplay::ungrab(); | 351 | QWSDisplay::ungrab(); |
352 | } | 352 | } |
353 | @@ -992,9 +992,9 @@ | 353 | @@ -992,9 +992,9 @@ |
354 | { | 354 | { |
355 | QWSDisplay::grab( TRUE ); | 355 | QWSDisplay::grab( TRUE ); |
356 | QRect r; | 356 | QRect r; |
357 | - r.setCoords( x1+xoffs, y1+yoffs, x2+xoffs, y2+yoffs ); | 357 | - r.setCoords( x1+xoffs, y1+yoffs, x2+xoffs, y2+yoffs ); |
358 | + r.setCoords( x1+this->xoffs, y1+this->yoffs, x2+this->xoffs, y2+this->yoffs ); | 358 | + r.setCoords( x1+this->xoffs, y1+this->yoffs, x2+this->xoffs, y2+this->yoffs ); |
359 | r = r.normalize(); | 359 | r = r.normalize(); |
360 | - qvnc_screen->setDirty( r & clipbounds ); | 360 | - qvnc_screen->setDirty( r & clipbounds ); |
361 | + qvnc_screen->setDirty( r & this->clipbounds ); | 361 | + qvnc_screen->setDirty( r & this->clipbounds ); |
362 | QGfxRaster<depth,type>::drawLine( x1, y1, x2, y2 ); | 362 | QGfxRaster<depth,type>::drawLine( x1, y1, x2, y2 ); |
363 | QWSDisplay::ungrab(); | 363 | QWSDisplay::ungrab(); |
364 | } | 364 | } |
365 | @@ -1003,7 +1003,7 @@ | 365 | @@ -1003,7 +1003,7 @@ |
366 | void QGfxVNC<depth,type>::fillRect( int x,int y,int w,int h ) | 366 | void QGfxVNC<depth,type>::fillRect( int x,int y,int w,int h ) |
367 | { | 367 | { |
368 | QWSDisplay::grab( TRUE ); | 368 | QWSDisplay::grab( TRUE ); |
369 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) & clipbounds ); | 369 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) & clipbounds ); |
370 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) & this->clipbounds ); | 370 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) & this->clipbounds ); |
371 | QGfxRaster<depth,type>::fillRect( x, y, w, h ); | 371 | QGfxRaster<depth,type>::fillRect( x, y, w, h ); |
372 | QWSDisplay::ungrab(); | 372 | QWSDisplay::ungrab(); |
373 | } | 373 | } |
374 | @@ -1013,8 +1013,8 @@ | 374 | @@ -1013,8 +1013,8 @@ |
375 | { | 375 | { |
376 | QWSDisplay::grab( TRUE ); | 376 | QWSDisplay::grab( TRUE ); |
377 | QRect r = pa.boundingRect(); | 377 | QRect r = pa.boundingRect(); |
378 | - r.moveBy( xoffs, yoffs ); | 378 | - r.moveBy( xoffs, yoffs ); |
379 | - qvnc_screen->setDirty( r & clipbounds ); | 379 | - qvnc_screen->setDirty( r & clipbounds ); |
380 | + r.moveBy( this->xoffs, this->yoffs ); | 380 | + r.moveBy( this->xoffs, this->yoffs ); |
381 | + qvnc_screen->setDirty( r & this->clipbounds ); | 381 | + qvnc_screen->setDirty( r & this->clipbounds ); |
382 | QGfxRaster<depth,type>::drawPolyline( pa, x, y ); | 382 | QGfxRaster<depth,type>::drawPolyline( pa, x, y ); |
383 | QWSDisplay::ungrab(); | 383 | QWSDisplay::ungrab(); |
384 | } | 384 | } |
385 | @@ -1024,8 +1024,8 @@ | 385 | @@ -1024,8 +1024,8 @@ |
386 | { | 386 | { |
387 | QWSDisplay::grab( TRUE ); | 387 | QWSDisplay::grab( TRUE ); |
388 | QRect r = pa.boundingRect(); | 388 | QRect r = pa.boundingRect(); |
389 | - r.moveBy( xoffs, yoffs ); | 389 | - r.moveBy( xoffs, yoffs ); |
390 | - qvnc_screen->setDirty( r & clipbounds ); | 390 | - qvnc_screen->setDirty( r & clipbounds ); |
391 | + r.moveBy( this->xoffs, this->yoffs ); | 391 | + r.moveBy( this->xoffs, this->yoffs ); |
392 | + qvnc_screen->setDirty( r & this->clipbounds ); | 392 | + qvnc_screen->setDirty( r & this->clipbounds ); |
393 | QGfxRaster<depth,type>::drawPolygon( pa, w, x, y ); | 393 | QGfxRaster<depth,type>::drawPolygon( pa, w, x, y ); |
394 | QWSDisplay::ungrab(); | 394 | QWSDisplay::ungrab(); |
395 | } | 395 | } |
396 | @@ -1034,7 +1034,7 @@ | 396 | @@ -1034,7 +1034,7 @@ |
397 | void QGfxVNC<depth,type>::blt( int x,int y,int w,int h, int sx, int sy ) | 397 | void QGfxVNC<depth,type>::blt( int x,int y,int w,int h, int sx, int sy ) |
398 | { | 398 | { |
399 | QWSDisplay::grab( TRUE ); | 399 | QWSDisplay::grab( TRUE ); |
400 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) & clipbounds ); | 400 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) & clipbounds ); |
401 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) & this->clipbounds ); | 401 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) & this->clipbounds ); |
402 | QGfxRaster<depth,type>::blt( x, y, w, h, sx, sy ); | 402 | QGfxRaster<depth,type>::blt( x, y, w, h, sx, sy ); |
403 | QWSDisplay::ungrab(); | 403 | QWSDisplay::ungrab(); |
404 | } | 404 | } |
405 | @@ -1045,8 +1045,8 @@ | 405 | @@ -1045,8 +1045,8 @@ |
406 | QWSDisplay::grab( TRUE ); | 406 | QWSDisplay::grab( TRUE ); |
407 | int dy = sy - y; | 407 | int dy = sy - y; |
408 | int dx = sx - x; | 408 | int dx = sx - x; |
409 | - qvnc_screen->setDirty( QRect(QMIN(x,sx) + xoffs, QMIN(y,sy) + yoffs, | 409 | - qvnc_screen->setDirty( QRect(QMIN(x,sx) + xoffs, QMIN(y,sy) + yoffs, |
410 | - w+abs(dx), h+abs(dy)) & clipbounds ); | 410 | - w+abs(dx), h+abs(dy)) & clipbounds ); |
411 | + qvnc_screen->setDirty( QRect(QMIN(x,sx) + this->xoffs, QMIN(y,sy) + this->yoffs, | 411 | + qvnc_screen->setDirty( QRect(QMIN(x,sx) + this->xoffs, QMIN(y,sy) + this->yoffs, |
412 | + w+abs(dx), h+abs(dy)) & this->clipbounds ); | 412 | + w+abs(dx), h+abs(dy)) & this->clipbounds ); |
413 | QGfxRaster<depth,type>::scroll( x, y, w, h, sx, sy ); | 413 | QGfxRaster<depth,type>::scroll( x, y, w, h, sx, sy ); |
414 | QWSDisplay::ungrab(); | 414 | QWSDisplay::ungrab(); |
415 | } | 415 | } |
416 | @@ -1056,7 +1056,7 @@ | 416 | @@ -1056,7 +1056,7 @@ |
417 | void QGfxVNC<depth,type>::stretchBlt( int x,int y,int w,int h,int sx,int sy ) | 417 | void QGfxVNC<depth,type>::stretchBlt( int x,int y,int w,int h,int sx,int sy ) |
418 | { | 418 | { |
419 | QWSDisplay::grab( TRUE ); | 419 | QWSDisplay::grab( TRUE ); |
420 | - qvnc_screen->setDirty( QRect( x + xoffs, y + yoffs, w, h) & clipbounds ); | 420 | - qvnc_screen->setDirty( QRect( x + xoffs, y + yoffs, w, h) & clipbounds ); |
421 | + qvnc_screen->setDirty( QRect( x + this->xoffs, y + this->yoffs, w, h) & this->clipbounds ); | 421 | + qvnc_screen->setDirty( QRect( x + this->xoffs, y + this->yoffs, w, h) & this->clipbounds ); |
422 | QGfxRaster<depth,type>::stretchBlt( x, y, w, h, sx, sy ); | 422 | QGfxRaster<depth,type>::stretchBlt( x, y, w, h, sx, sy ); |
423 | QWSDisplay::ungrab(); | 423 | QWSDisplay::ungrab(); |
424 | } | 424 | } |
425 | @@ -1066,7 +1066,7 @@ | 425 | @@ -1066,7 +1066,7 @@ |
426 | void QGfxVNC<depth,type>::tiledBlt( int x,int y,int w,int h ) | 426 | void QGfxVNC<depth,type>::tiledBlt( int x,int y,int w,int h ) |
427 | { | 427 | { |
428 | QWSDisplay::grab( TRUE ); | 428 | QWSDisplay::grab( TRUE ); |
429 | - qvnc_screen->setDirty( QRect(x + xoffs, y + yoffs, w, h) & clipbounds ); | 429 | - qvnc_screen->setDirty( QRect(x + xoffs, y + yoffs, w, h) & clipbounds ); |
430 | + qvnc_screen->setDirty( QRect(x + this->xoffs, y + this->yoffs, w, h) & this->clipbounds ); | 430 | + qvnc_screen->setDirty( QRect(x + this->xoffs, y + this->yoffs, w, h) & this->clipbounds ); |
431 | QGfxRaster<depth,type>::tiledBlt( x, y, w, h ); | 431 | QGfxRaster<depth,type>::tiledBlt( x, y, w, h ); |
432 | QWSDisplay::ungrab(); | 432 | QWSDisplay::ungrab(); |
433 | } | 433 | } |
434 | diff -ur qt-2.3.7_old/src/tools/qcstring.h qt-2.3.7/src/tools/qcstring.h | 434 | diff -ur qt-2.3.7_old/src/tools/qcstring.h qt-2.3.7/src/tools/qcstring.h |
435 | --- qt-2.3.7_old/src/tools/qcstring.h2004-09-10 21:08:04.000000000 +0200 | 435 | --- qt-2.3.7_old/src/tools/qcstring.h2004-09-10 21:08:04.000000000 +0200 |
436 | +++ qt-2.3.7/src/tools/qcstring.h2004-09-10 21:08:42.000000000 +0200 | 436 | +++ qt-2.3.7/src/tools/qcstring.h2004-09-10 21:08:42.000000000 +0200 |
437 | @@ -119,7 +119,7 @@ | 437 | @@ -119,7 +119,7 @@ |
438 | // We want to keep source compatibility for 2.x | 438 | // We want to keep source compatibility for 2.x |
439 | // ### TODO for 4.0: completely remove these and the cstr* functions | 439 | // ### TODO for 4.0: completely remove these and the cstr* functions |
440 | 440 | ||
441 | -#if !defined(QT_GENUINE_STR) | 441 | -#if !defined(QT_GENUINE_STR) |
442 | +#if 0 | 442 | +#if 0 |
443 | 443 | ||
444 | #undefstrlen | 444 | #undefstrlen |
445 | #define strlen qstrlen | 445 | #define strlen qstrlen |
446 | diff -ur qt-2.3.7_old/src/tools/qglobal.h qt-2.3.7/src/tools/qglobal.h | 446 | diff -ur qt-2.3.7_old/src/tools/qglobal.h qt-2.3.7/src/tools/qglobal.h |
447 | --- qt-2.3.7_old/src/tools/qglobal.h2004-09-10 21:08:04.000000000 +0200 | 447 | --- qt-2.3.7_old/src/tools/qglobal.h2004-09-10 21:08:04.000000000 +0200 |
448 | +++ qt-2.3.7/src/tools/qglobal.h2004-09-10 21:08:42.000000000 +0200 | 448 | +++ qt-2.3.7/src/tools/qglobal.h2004-09-10 21:08:42.000000000 +0200 |
449 | @@ -207,8 +207,16 @@ | 449 | @@ -207,8 +207,16 @@ |
450 | #if __GNUC__ == 2 && __GNUC_MINOR__ == 96 | 450 | #if __GNUC__ == 2 && __GNUC_MINOR__ == 96 |
451 | #define Q_FP_CCAST_BROKEN | 451 | #define Q_FP_CCAST_BROKEN |
452 | #endif | 452 | #endif |
453 | +/* ARM gcc pads structs to 32 bits, even when they contain a single | 453 | +/* ARM gcc pads structs to 32 bits, even when they contain a single |
454 | + char, or short. We tell gcc to pack QChars to 16 bits, to avoid | 454 | + char, or short. We tell gcc to pack QChars to 16 bits, to avoid |
455 | + QString bloat. However, gcc 3.4 doesn't allow us to create references to | 455 | + QString bloat. However, gcc 3.4 doesn't allow us to create references to |
456 | + members of a packed struct. (Pointers are OK, because then you | 456 | + members of a packed struct. (Pointers are OK, because then you |
457 | + supposedly know what you are doing.) */ | 457 | + supposedly know what you are doing.) */ |
458 | #if (defined(__arm__) || defined(__ARMEL__)) && !defined(QT_MOC_CPP) | 458 | #if (defined(__arm__) || defined(__ARMEL__)) && !defined(QT_MOC_CPP) |
459 | #define Q_PACKED __attribute__ ((packed)) | 459 | #define Q_PACKED __attribute__ ((packed)) |
460 | +# if __GNUC__ == 3 && __GNUC_MINOR__ >= 4 | 460 | +# if __GNUC__ == 3 && __GNUC_MINOR__ >= 4 |
461 | +# define Q_NO_PACKED_REFERENCE | 461 | +# define Q_NO_PACKED_REFERENCE |
462 | +# endif | 462 | +# endif |
463 | #endif | 463 | #endif |
464 | #elif defined(__xlC__) | 464 | #elif defined(__xlC__) |
465 | #define _CC_XLC_ | 465 | #define _CC_XLC_ |
466 | diff -ur qt-2.3.7_old/src/tools/qsortedlist.h qt-2.3.7/src/tools/qsortedlist.h | 466 | diff -ur qt-2.3.7_old/src/tools/qsortedlist.h qt-2.3.7/src/tools/qsortedlist.h |
467 | --- qt-2.3.7_old/src/tools/qsortedlist.h2004-09-10 21:08:04.000000000 +0200 | 467 | --- qt-2.3.7_old/src/tools/qsortedlist.h2004-09-10 21:08:04.000000000 +0200 |
468 | +++ qt-2.3.7/src/tools/qsortedlist.h2004-09-10 21:08:42.000000000 +0200 | 468 | +++ qt-2.3.7/src/tools/qsortedlist.h2004-09-10 21:08:42.000000000 +0200 |
469 | @@ -48,7 +48,7 @@ | 469 | @@ -48,7 +48,7 @@ |
470 | public: | 470 | public: |
471 | QSortedList() {} | 471 | QSortedList() {} |
472 | QSortedList( const QSortedList<type> &l ) : QList<type>(l) {} | 472 | QSortedList( const QSortedList<type> &l ) : QList<type>(l) {} |
473 | - ~QSortedList() { clear(); } | 473 | - ~QSortedList() { clear(); } |
474 | + ~QSortedList() { this->clear(); } | 474 | + ~QSortedList() { this->clear(); } |
475 | QSortedList<type> &operator=(const QSortedList<type> &l) | 475 | QSortedList<type> &operator=(const QSortedList<type> &l) |
476 | { return (QSortedList<type>&)QList<type>::operator=(l); } | 476 | { return (QSortedList<type>&)QList<type>::operator=(l); } |
477 | 477 | ||
478 | diff -ur qt-2.3.7_old/src/tools/qstring.h qt-2.3.7/src/tools/qstring.h | 478 | diff -ur qt-2.3.7_old/src/tools/qstring.h qt-2.3.7/src/tools/qstring.h |
479 | --- qt-2.3.7_old/src/tools/qstring.h2004-09-10 21:08:04.000000000 +0200 | 479 | --- qt-2.3.7_old/src/tools/qstring.h2004-09-10 21:08:04.000000000 +0200 |
480 | +++ qt-2.3.7/src/tools/qstring.h2004-09-10 21:08:42.000000000 +0200 | 480 | +++ qt-2.3.7/src/tools/qstring.h2004-09-10 21:08:42.000000000 +0200 |
481 | @@ -163,8 +163,16 @@ | 481 | @@ -163,8 +163,16 @@ |
482 | bool isLetterOrNumber() const; | 482 | bool isLetterOrNumber() const; |
483 | bool isDigit() const; | 483 | bool isDigit() const; |
484 | 484 | ||
485 | + | 485 | + |
486 | +#ifdef Q_NO_PACKED_REFERENCE | 486 | +#ifdef Q_NO_PACKED_REFERENCE |
487 | + uchar& cell() { return *(&cl); } | 487 | + uchar& cell() { return *(&cl); } |
488 | + uchar& row() { return *(&rw); } | 488 | + uchar& row() { return *(&rw); } |
489 | +#else | 489 | +#else |
490 | uchar& cell() { return cl; } | 490 | uchar& cell() { return cl; } |
491 | - uchar& row() { return rw; } | 491 | - uchar& row() { return rw; } |
492 | + uchar& row() { return rw; } | 492 | + uchar& row() { return rw; } |
493 | +#endif | 493 | +#endif |
494 | + | 494 | + |
495 | + | 495 | + |
496 | uchar cell() const { return cl; } | 496 | uchar cell() const { return cl; } |
497 | uchar row() const { return rw; } | 497 | uchar row() const { return rw; } |
498 | 498 | ||
499 | diff -ur qt-2.3.7_old/src/kernel/qwsdecoration_qws.h qt-2.3.7/src/kernel/qwsdecoration_qws.h | ||
500 | --- qt-2.3.7_old/src/kernel/qwsdecoration_qws.h2003-07-17 03:20:26.000000000 +0200 | ||
501 | +++ qt-2.3.7/src/kernel/qwsdecoration_qws.h2004-09-13 15:44:13.000000000 +0200 | ||
502 | @@ -50,7 +50,7 @@ | ||
503 | enum Region { None=0, All=1, Title=2, Top=3, Bottom=4, Left=5, Right=6, | ||
504 | TopLeft=7, TopRight=8, BottomLeft=9, BottomRight=10, | ||
505 | Close=11, Minimize=12, Maximize=13, Normalize=14, | ||
506 | - Menu=15, LastRegion=Menu }; | ||
507 | + Menu=15, LastRegion=Menu, UserDefined = 100 }; | ||
508 | |||
509 | virtual QRegion region(const QWidget *, const QRect &rect, Region r=All) = 0; | ||
510 | virtual void close( QWidget * ); | ||