![]() Registered Member ![]()
|
I'm running KDE 4.2 on Kubuntu 9.04 with the QtCurve theme all over which I like.
Except, I like the Oxygen progress bar look a lot and would like to have it in the QtCurve theme! Is this possible? If so, how? ( I think I'd done some digging in SVN and found that the progress bar "theme" is actually C++ code doing the rendering, is that right?! )
"Thou shalt not follow the null pointer for at its end madness and chaos lie."
|
![]() Administrator ![]()
|
Correct, Qt uses C++ code to do all theming which makes it very powerful but hard to manage for artists. It is also not possible to easily interchange elements between themes, unless you have written a Qt style before.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Thanks.
Any pointers as to where the oxygen code lies for the progressbar and what libs are built? I will try to search myself too. Also, any suggestions which bits I can try to port/modify of the QtCurve theme to get this done, I will try that too ![]() edit: ok i think i found it again: http://websvn.kde.org/branches/KDE/4.2/ ... es/oxygen/ just have to figure out how to copy the progressbar code from oxygen and paste it into qtcurve ![]()
Last edited by vishalrao on Mon May 25, 2009 5:59 am, edited 1 time in total.
"Thou shalt not follow the null pointer for at its end madness and chaos lie."
|
![]() Administrator ![]()
|
The Trolltech QStyle and KDE KStyle documentation located at doc.trolltech.com and api.kde.org respectively may be of help.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Thanks!
I'm building both qtcurve and oxygen styles... I've included oxygen style within qtcurve since I plan to use oxygen to render progressbar inside qtcurve! Problem is, when I run make (after cmake), it fails in the end with "undefined reference to OxygenStyle::OxygenStyle()", indicating it cant find the shared oxygen.so. I've tried to include this line in CMakeLists.txt : "target_link_libraries(qtcurve /usr/lib/kde4/plugins/styles/oxygen)" with and without the .so but to no avail. Question: How do I indicate to linker that the qtcurve.so should depend/link the shared oxygen.so ?
"Thou shalt not follow the null pointer for at its end madness and chaos lie."
|
![]() Registered Member ![]()
|
woohoo! got it to work, although in a very noobish way. wasnt able to figure out how to get cmake to link/include an external .so without make failing saying "could not make target", so i simply copied the entire oxygen style code as a subdirectory of qtcurve and included the style. then in the qtcurve place where progressbar is drawn just created an oxygen object on the stack and called its progressbar rendering method! other stuff needed to make it build but it works now... very ugly on the inside, looks very nice on the outside!
![]()
"Thou shalt not follow the null pointer for at its end madness and chaos lie."
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]