diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /kstyles/keramik/genembed.cpp | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kstyles/keramik/genembed.cpp')
-rw-r--r-- | kstyles/keramik/genembed.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kstyles/keramik/genembed.cpp b/kstyles/keramik/genembed.cpp index 2fecf94d1..e47e7e6e7 100644 --- a/kstyles/keramik/genembed.cpp +++ b/kstyles/keramik/genembed.cpp @@ -146,7 +146,7 @@ int main(int argc, char** argv) int readJustID = 0; - if ((pos = s.findRev("-")) != -1) + if ((pos = s.tqfindRev("-")) != -1) { int suffix = evalSuffix(s.mid(pos)); if (suffix !=-1 ) @@ -156,16 +156,16 @@ int main(int argc, char** argv) } } - if (!assignID.contains(id)) + if (!assignID.tqcontains(id)) { assignID[id] = nextID; nextID += 256; } - s.replace("-","_"); + s.tqreplace("-","_"); - if (s.contains("button")) + if (s.tqcontains("button")) KImageEffect::contrastHSV(input); int fullID = assignID[id] + readJustID;//Subwidget.. @@ -178,7 +178,7 @@ int main(int argc, char** argv) - if (s.contains("toolbar") || s.contains("tab-top-active") || s.contains("menubar") ) + if (s.tqcontains("toolbar") || s.tqcontains("tab-top-active") || s.tqcontains("menubar") ) { // highlights = false; gamma = 1/1.25f; @@ -186,7 +186,7 @@ int main(int argc, char** argv) shadows = false; } - if (s.contains("scrollbar") && s.contains("groove")) + if (s.tqcontains("scrollbar") && s.tqcontains("groove")) { //highlights = false; //gamma = 1.5; @@ -194,7 +194,7 @@ int main(int argc, char** argv) } //brightAdj = -10; - if (s.contains("scrollbar") && s.contains("slider")) + if (s.tqcontains("scrollbar") && s.tqcontains("slider")) { //highlights = false; gamma =1/0.7f; @@ -202,7 +202,7 @@ int main(int argc, char** argv) } - if (s.contains("menuitem")) + if (s.tqcontains("menuitem")) { //highlights = false; gamma =1/0.6f; @@ -222,14 +222,14 @@ int main(int argc, char** argv) cout<<"static const unsigned char "<<s.latin1()<<"[]={\n"; - Q_UINT32* read = reinterpret_cast< Q_UINT32* >(input.bits() ); + TQ_UINT32* read = reinterpret_cast< TQ_UINT32* >(input.bits() ); int size = input.width()*input.height(); for (int pos=0; pos<size; pos++) { QRgb basePix = (QRgb)*read; - if (qAlpha(basePix) != 255) + if (tqAlpha(basePix) != 255) reallySolid = false; else pixSolid++; @@ -242,7 +242,7 @@ int main(int argc, char** argv) images.push_back(image); - read = reinterpret_cast< Q_UINT32* >(input.bits() ); + read = reinterpret_cast< TQ_UINT32* >(input.bits() ); for (int pos=0; pos<size; pos++) { QRgb basePix = (QRgb)*read; @@ -252,10 +252,10 @@ int main(int argc, char** argv) int h,s,v; clr.hsv(&h,&s,&v); - v=qGray(basePix); + v=tqGray(basePix); int targetColorAlpha = 0 , greyAdd = 0; - //int srcAlpha = qAlpha(basePix); + //int srcAlpha = tqAlpha(basePix); if (s>0 || v > 128) { //Non-shadow @@ -296,8 +296,8 @@ int main(int argc, char** argv) if (reallySolid) cout<<targetColorAlpha<<","<<greyAdd<<","; else - cout<<targetColorAlpha<<","<<greyAdd<<","<<qAlpha(basePix)<<","; - //cout<<qRed(basePix)<<","<<qGreen(basePix)<<","<<qBlue(basePix)<<","<<qAlpha(basePix)<<","; + cout<<targetColorAlpha<<","<<greyAdd<<","<<tqAlpha(basePix)<<","; + //cout<<tqRed(basePix)<<","<<tqGreen(basePix)<<","<<tqBlue(basePix)<<","<<tqAlpha(basePix)<<","; if (pos%8 == 7) cout<<"\n"; @@ -373,7 +373,7 @@ int main(int argc, char** argv) for (TQMap<TQString, int>::iterator i = assignID.begin(); i != assignID.end(); ++i) { TQString name = "keramik_"+i.key(); - name.replace("-","_"); + name.tqreplace("-","_"); ts<<"\t"<<name<<" = "<<i.data()<<",\n"; } ts<<"\tkeramik_last\n"; |