Ejemplo n.º 1
0
 QGraphicsProxyWidget *UiHelper::CreateToolbar()
 {
     QWidget *toolbar = new QWidget();
     toolbar_ui_.setupUi(toolbar);
     connect(toolbar_ui_.button_exit, SIGNAL(clicked()), SIGNAL(ExitRequest()));
     return CreateProxy(toolbar);
 }
Ejemplo n.º 2
0
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;
	}
}