Hi. I was just wondering if it's possible to declare this variable that's used in qapplication.cpp, qapplication_x11.cpp as an extern variable and use it in my code. I need it in order to port old code I wrote for Qt3 to Qt4.

The problem is when I try to declare it as extern and then link my application, I get error that the qt_modal_stack is unresolved.