summaryrefslogtreecommitdiffstats
path: root/style/misc.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2024-03-10 19:56:27 +0200
committerMavridis Philippe <[email protected]>2024-03-10 20:04:10 +0200
commitdb5c38267db65110beb4ad895a1fe38b42d8001f (patch)
tree66e0eb45b6db27d468589aa56b089408600baf77 /style/misc.cpp
parentbf8023245ca81129b27778d9e38f4cbdcdd1dc5b (diff)
downloadtde-style-polyester-db5c38267db65110beb4ad895a1fe38b42d8001f.tar.gz
tde-style-polyester-db5c38267db65110beb4ad895a1fe38b42d8001f.zip
Port to TQt
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'style/misc.cpp')
-rwxr-xr-xstyle/misc.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/style/misc.cpp b/style/misc.cpp
index 2f1d30c..15fe755 100755
--- a/style/misc.cpp
+++ b/style/misc.cpp
@@ -16,23 +16,23 @@
* Boston, MA 02111-1307, USA.
*/
-#include <qcolor.h>
+#include <tqcolor.h>
#include "misc.h"
-QColor alphaBlendColors(const QColor &bgColor, const QColor &fgColor, const int a)
+TQColor alphaBlendColors(const TQColor &bgColor, const TQColor &fgColor, const int a)
{
// normal button...
- QRgb rgb = bgColor.rgb();
- QRgb rgb_b = fgColor.rgb();
+ TQRgb rgb = bgColor.rgb();
+ TQRgb rgb_b = fgColor.rgb();
int alpha = a;
if(alpha>255) alpha = 255;
if(alpha<0) alpha = 0;
int inv_alpha = 255 - alpha;
- QColor result = QColor( qRgb(qRed(rgb_b)*inv_alpha/255 + qRed(rgb)*alpha/255,
- qGreen(rgb_b)*inv_alpha/255 + qGreen(rgb)*alpha/255,
- qBlue(rgb_b)*inv_alpha/255 + qBlue(rgb)*alpha/255) );
+ TQColor result = TQColor( tqRgb(tqRed(rgb_b)*inv_alpha/255 + tqRed(rgb)*alpha/255,
+ tqGreen(rgb_b)*inv_alpha/255 + tqGreen(rgb)*alpha/255,
+ tqBlue(rgb_b)*inv_alpha/255 + tqBlue(rgb)*alpha/255) );
return result;
}