diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-13 20:33:00 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-15 23:47:11 +0900 | 
| commit | 303b6445011a6ed10c48ac6e1eda415e5c371264 (patch) | |
| tree | aded2a8ee5046176d3295bbf1f90f5dd73746677 /tdestyles/klegacy/klegacystyle.cpp | |
| parent | 141ced0c41af8726eedac425ea24cd162bcff862 (diff) | |
| download | tdelibs-303b6445011a6ed10c48ac6e1eda415e5c371264.tar.gz tdelibs-303b6445011a6ed10c48ac6e1eda415e5c371264.zip  | |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c8ece3630d4d21acaf1749fc2cf660a0463070c3)
Diffstat (limited to 'tdestyles/klegacy/klegacystyle.cpp')
| -rw-r--r-- | tdestyles/klegacy/klegacystyle.cpp | 22 | 
1 files changed, 11 insertions, 11 deletions
diff --git a/tdestyles/klegacy/klegacystyle.cpp b/tdestyles/klegacy/klegacystyle.cpp index 9cc019795..89b76f4dc 100644 --- a/tdestyles/klegacy/klegacystyle.cpp +++ b/tdestyles/klegacy/klegacystyle.cpp @@ -387,7 +387,7 @@ static TQPixmap *drawImage(TQImage *image, int width, int height,  	// draw the image  	bool mask = image->hasAlphaBuffer();  	TQBitmap bm(width, height); -	bm.fill(Qt::color1); +	bm.fill(TQt::color1);  	TQImage nimage[3][3];  	int xx = -1, yy = -1; @@ -404,12 +404,12 @@ static TQPixmap *drawImage(TQImage *image, int width, int height,  		if (nimage[yy][xx].isNull()) continue;  		bitBlt(pixmap, x2[xx], y2[yy], &nimage[yy][xx], -		       0, 0, w2[xx], h2[yy], Qt::CopyROP); +		       0, 0, w2[xx], h2[yy], TQt::CopyROP);  		if (mask) {                      TQImage am = nimage[yy][xx].createAlphaMask();  		    bitBlt(&bm, x2[xx], y2[yy], &am, -			   0, 0, w2[xx], h2[yy], Qt::CopyROP); +			   0, 0, w2[xx], h2[yy], TQt::CopyROP);                  }  	    }  	} @@ -419,14 +419,14 @@ static TQPixmap *drawImage(TQImage *image, int width, int height,      } else {  	for (int y = 0; y < height; y += image->height())  	    for (int x = 0; x < width; x += image->width()) -		bitBlt(pixmap, x, y, image, 0, 0, -1, -1, Qt::CopyROP); +		bitBlt(pixmap, x, y, image, 0, 0, -1, -1, TQt::CopyROP);  	if (image->hasAlphaBuffer()) {  	    TQImage mask = image->createAlphaMask();  	    if (! mask.isNull() && mask.depth() == 1) {  		TQBitmap bm(width, height); -		bm.fill(Qt::color1); +		bm.fill(TQt::color1);  		bm = mask;  		pixmap->setMask(bm);  	    } @@ -1210,13 +1210,13 @@ bool KLegacyStylePrivate::parseImage(KLegacyStyleData *styledata) {  	    if (equals.isNull() || parameter.isNull() || equals != "=") continue;  	    if (parameter == "UP") -		imagedata->key.data.arrowDirection = Qt::UpArrow + 1; +		imagedata->key.data.arrowDirection = TQt::UpArrow + 1;  	    else if (parameter == "DOWN") -		imagedata->key.data.arrowDirection = Qt::DownArrow + 1; +		imagedata->key.data.arrowDirection = TQt::DownArrow + 1;  	    else if (parameter == "LEFT") -		imagedata->key.data.arrowDirection = Qt::LeftArrow + 1; +		imagedata->key.data.arrowDirection = TQt::LeftArrow + 1;  	    else if (parameter == "RIGHT") -		imagedata->key.data.arrowDirection = Qt::RightArrow + 1; +		imagedata->key.data.arrowDirection = TQt::RightArrow + 1;  	} else if (next == "border") {  	    filestream >> equals;  	    filestream >> parameter; @@ -1323,9 +1323,9 @@ bool KLegacyStylePrivate::parseImage(KLegacyStyleData *styledata) {  	    if (equals.isNull() || parameter.isNull() || equals != "=") continue;  	    if (parameter == "VERTICAL") -		imagedata->key.data.orientation = Qt::Vertical + 1; +		imagedata->key.data.orientation = TQt::Vertical + 1;  	    else if (parameter == "HORIZONTAL") -		imagedata->key.data.orientation = Qt::Horizontal + 1; +		imagedata->key.data.orientation = TQt::Horizontal + 1;  	} else if (next == "overlay_border") {  	    filestream >> equals;  	    filestream >> parameter;  | 
