soul_rebel
23rd March 2006, 20:40
this might sound a little stupid and i really dont know if this a c++ or kde problem :confused:
i have subclassed KProcess (not that KProcess is not derived from QProcess) and i need to pass two arguments to start().
you can read this up at http://developer.kde.org/documentation/library/3.4-api/kdecore/html/classKProcess.html#a9
now i dont know how to do it.
i thought that enums were just used as "names-for-int-values" and i have always just used the int value instead of bothering with the words but kdevelop tells me it "cannot convert int to KProgress::RunMode". so i tried casting the int, but it doesnt work and KProgress::OwnGroup (which is the 4th element of RunMode enum) is undeclared...
what am i doing wrong?
thanks!
i have subclassed KProcess (not that KProcess is not derived from QProcess) and i need to pass two arguments to start().
you can read this up at http://developer.kde.org/documentation/library/3.4-api/kdecore/html/classKProcess.html#a9
now i dont know how to do it.
i thought that enums were just used as "names-for-int-values" and i have always just used the int value instead of bothering with the words but kdevelop tells me it "cannot convert int to KProgress::RunMode". so i tried casting the int, but it doesnt work and KProgress::OwnGroup (which is the 4th element of RunMode enum) is undeclared...
what am i doing wrong?
thanks!