QGraphicsProxyWidget *UiHelper::CreateToolbar() { QWidget *toolbar = new QWidget(); toolbar_ui_.setupUi(toolbar); connect(toolbar_ui_.button_exit, SIGNAL(clicked()), SIGNAL(ExitRequest())); return CreateProxy(toolbar); }
tTVPAsyncImageLoader::~tTVPAsyncImageLoader() { ExitRequest(); WaitFor(); EventQueue.Deallocate(); while( CommandQueue.size() > 0 ) { tTVPImageLoadCommand* cmd = CommandQueue.front(); CommandQueue.pop(); delete cmd; } while( LoadedQueue.size() > 0 ) { tTVPImageLoadCommand* cmd = LoadedQueue.front(); LoadedQueue.pop(); delete cmd; } }