void init()
{
currentScene=list.someScene();
connect(currentScene,SIGNAL(),control,SLOT());
}
...
...
...
void forwardButtonClick()
{
disconnect(currentScene,0,0,0);
currentScene=list.nextScene();
connect(currentScene,SIGNAL(),control,SLOT());
}
void backButtonClick()
{
disconnect(currentScene,0,0,0);
currentScene=list.previousScene();
connect(currentScene,SIGNAL(),control,SLOT());
}
void init()
{
currentScene=list.someScene();
connect(currentScene,SIGNAL(),control,SLOT());
}
...
...
...
void forwardButtonClick()
{
disconnect(currentScene,0,0,0);
currentScene=list.nextScene();
connect(currentScene,SIGNAL(),control,SLOT());
}
void backButtonClick()
{
disconnect(currentScene,0,0,0);
currentScene=list.previousScene();
connect(currentScene,SIGNAL(),control,SLOT());
}
To copy to clipboard, switch view to plain text mode
Bookmarks