From 8bf5213c84d2fc68e2a22e3222ed8c82ae973550 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 10 Sep 2012 09:24:07 -0500 Subject: Automated update from Qt3 --- src/tools/quuid.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/tools/quuid.cpp b/src/tools/quuid.cpp index 36472176a..11468a7ec 100644 --- a/src/tools/quuid.cpp +++ b/src/tools/quuid.cpp @@ -389,6 +389,18 @@ TQUuid TQUuid::createUuid() return result; } #else // !Q_OS_WIN32 +#if defined(Q_OS_LINUX) +#include +TQUuid TQUuid::createUuid() +{ + uuid_t raw_uuid; + char uuid_string[37]; + + uuid_generate(raw_uuid); + uuid_unparse(raw_uuid, uuid_string); + return TQUuid(uuid_string); +} +#else // !Q_OS_LINUX #include "ntqdatetime.h" #include "stdlib.h" // For srand/rand TQUuid TQUuid::createUuid() @@ -417,5 +429,6 @@ TQUuid TQUuid::createUuid() return result; } +#endif // !Q_OS_LINUX #endif // !Q_OS_WIN32 -- cgit v1.2.3 From dc14a278e281a7815d53b63fbeac149888c60ac6 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 13 Sep 2012 09:52:22 -0500 Subject: Automated update from Qt3 --- src/kernel/qpainter_x11.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/kernel/qpainter_x11.cpp b/src/kernel/qpainter_x11.cpp index 0be2db0a5..b368942dc 100644 --- a/src/kernel/qpainter_x11.cpp +++ b/src/kernel/qpainter_x11.cpp @@ -1839,7 +1839,8 @@ void TQPainter::drawWinFocusRect( int x, int y, int w, int h, static char winfocus_line[] = { 1, 1 }; TQPen old_pen = cpen; - RasterOp old_rop = (RasterOp)rop; + TQBrush old_brush = cbrush; + RasterOp old_rop = (RasterOp)rop; if ( xorPaint ) { if ( TQColor::numBitPlanes() <= 8 ) @@ -1858,10 +1859,13 @@ void TQPainter::drawWinFocusRect( int x, int y, int w, int h, if ( testf(ExtDev) ) { TQPDevCmdParam param[1]; TQRect r( x, y, w-1, h-1 ); + TQBrush noBrush; param[0].rect = &r; + param[0].brush = &noBrush; if ( !pdev->cmd( TQPaintDevice::PdcDrawRect, this, param ) || !hd) { setRasterOp( old_rop ); setPen( old_pen ); + setBrush( old_brush ); return; } } -- cgit v1.2.3 From 4623775a226d3d21dac6fee77fcaa9bfa477e6b8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 13 Sep 2012 19:47:00 -0500 Subject: Automated update from Qt3 --- src/kernel/qpainter_x11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/kernel/qpainter_x11.cpp b/src/kernel/qpainter_x11.cpp index b368942dc..f057e7b1f 100644 --- a/src/kernel/qpainter_x11.cpp +++ b/src/kernel/qpainter_x11.cpp @@ -1860,8 +1860,8 @@ void TQPainter::drawWinFocusRect( int x, int y, int w, int h, TQPDevCmdParam param[1]; TQRect r( x, y, w-1, h-1 ); TQBrush noBrush; + setBrush( noBrush ); param[0].rect = &r; - param[0].brush = &noBrush; if ( !pdev->cmd( TQPaintDevice::PdcDrawRect, this, param ) || !hd) { setRasterOp( old_rop ); setPen( old_pen ); -- cgit v1.2.3