summaryrefslogtreecommitdiffstats
path: root/tdestyles
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-25 12:03:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-25 12:29:31 +0900
commit4c0dae60b2fbc60996fc8f4bd29ee6219b869527 (patch)
tree6aa583e34395f4d19d4b85f081b31513e5c9c19d /tdestyles
parent066f257eadc5866386c2cfbdba1a93105cff67ae (diff)
downloadtdelibs-4c0dae60b2fbc60996fc8f4bd29ee6219b869527.tar.gz
tdelibs-4c0dae60b2fbc60996fc8f4bd29ee6219b869527.zip
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdestyles')
-rw-r--r--tdestyles/keramik/genembed.cpp4
-rw-r--r--tdestyles/keramik/gradients.cpp2
-rw-r--r--tdestyles/keramik/pixmaploader.h4
-rw-r--r--tdestyles/plastik/misc.cpp4
-rw-r--r--tdestyles/plastik/plastik.cpp6
-rw-r--r--tdestyles/plastik/plastik.h6
6 files changed, 13 insertions, 13 deletions
diff --git a/tdestyles/keramik/genembed.cpp b/tdestyles/keramik/genembed.cpp
index c816b2a0f..cbbecae65 100644
--- a/tdestyles/keramik/genembed.cpp
+++ b/tdestyles/keramik/genembed.cpp
@@ -227,7 +227,7 @@ int main(int argc, char** argv)
for (int pos=0; pos<size; pos++)
{
- QRgb basePix = (QRgb)*read;
+ TQRgb basePix = (TQRgb)*read;
if (tqAlpha(basePix) != 255)
reallySolid = false;
@@ -245,7 +245,7 @@ int main(int argc, char** argv)
read = reinterpret_cast< TQ_UINT32* >(input.bits() );
for (int pos=0; pos<size; pos++)
{
- QRgb basePix = (QRgb)*read;
+ TQRgb basePix = (TQRgb)*read;
//cout<<(r*destAlpha.alphas[pos])<<"\n";
//cout<<(int)destAlpha.alphas[pos]<<"\n";
TQColor clr(basePix);
diff --git a/tdestyles/keramik/gradients.cpp b/tdestyles/keramik/gradients.cpp
index ca89abd61..a113d7a3c 100644
--- a/tdestyles/keramik/gradients.cpp
+++ b/tdestyles/keramik/gradients.cpp
@@ -35,7 +35,7 @@ namespace
struct GradientCacheEntry
{
TQPixmap* m_pixmap;
- QRgb m_color;
+ TQRgb m_color;
bool m_menu;
int m_width;
int m_height;
diff --git a/tdestyles/keramik/pixmaploader.h b/tdestyles/keramik/pixmaploader.h
index b03cf3800..3bfcd2d1b 100644
--- a/tdestyles/keramik/pixmaploader.h
+++ b/tdestyles/keramik/pixmaploader.h
@@ -67,8 +67,8 @@ namespace Keramik
int m_id;
int m_width;
int m_height;
- QRgb m_colorCode;
- QRgb m_bgCode;
+ TQRgb m_colorCode;
+ TQRgb m_bgCode;
bool m_disabled;
bool m_blended;
diff --git a/tdestyles/plastik/misc.cpp b/tdestyles/plastik/misc.cpp
index d1a52d61e..48918306e 100644
--- a/tdestyles/plastik/misc.cpp
+++ b/tdestyles/plastik/misc.cpp
@@ -23,8 +23,8 @@ TQColor alphaBlendColors(const TQColor &bgColor, const TQColor &fgColor, const i
{
// 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;
diff --git a/tdestyles/plastik/plastik.cpp b/tdestyles/plastik/plastik.cpp
index 2e6749137..4f4b709d2 100644
--- a/tdestyles/plastik/plastik.cpp
+++ b/tdestyles/plastik/plastik.cpp
@@ -664,7 +664,7 @@ void PlastikStyle::renderPixel(TQPainter *p,
if(fullAlphaBlend)
// full alpha blend: paint into an image with alpha buffer and convert to a pixmap ...
{
- QRgb rgb = color.rgb();
+ TQRgb rgb = color.rgb();
// generate a quite unique key -- use the unused width field to store the alpha value.
CacheEntry search(cAlphaDot, alpha, 0, rgb);
int key = search.key();
@@ -697,8 +697,8 @@ void PlastikStyle::renderPixel(TQPainter *p,
} else
// don't use an alpha buffer: calculate the resulting color from the alpha value, the fg- and the bg-color.
{
- QRgb rgb_a = color.rgb();
- QRgb rgb_b = background.rgb();
+ TQRgb rgb_a = color.rgb();
+ TQRgb rgb_b = background.rgb();
int a = alpha;
if(a>255) a = 255;
if(a<0) a = 0;
diff --git a/tdestyles/plastik/plastik.h b/tdestyles/plastik/plastik.h
index d19408c52..b1edd6c04 100644
--- a/tdestyles/plastik/plastik.h
+++ b/tdestyles/plastik/plastik.h
@@ -317,13 +317,13 @@ private:
CacheEntryType type;
int width;
int height;
- QRgb c1Rgb;
- QRgb c2Rgb;
+ TQRgb c1Rgb;
+ TQRgb c2Rgb;
bool horizontal;
TQPixmap* pixmap;
- CacheEntry(CacheEntryType t, int w, int h, QRgb c1, QRgb c2 = 0,
+ CacheEntry(CacheEntryType t, int w, int h, TQRgb c1, TQRgb c2 = 0,
bool hor = false, TQPixmap* p = 0 ):
type(t), width(w), height(h), c1Rgb(c1), c2Rgb(c2), horizontal(hor), pixmap(p)
{}