View Single Post
Berserk's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#7
It's solved it's probably not the prettiest solution, but I'm not taking my code to the catwalk

It sets openManWin on true in the constructor, after the button press it's set on false, and after the window closes, it's true again.

Here's the code:
Code:
void wallPaeper::manBtnClicked() {
    if(openManWin == true) {
        openManWin = false;
        manWin = new wpManager(this);
        manWin->setAttribute(Qt::WA_Maemo5StackedWindow);
        manWin->setAttribute(Qt::WA_DeleteOnClose);
        connect(manWin, SIGNAL(destroyed()),
                this, SLOT(openManWinTrue()));
        manWin->show();
    }
}
void wallPaeper::openManWinTrue() {
    openManWin = true;
}
__________________
Wallpaeper - Desktop background manager (in Extras!)
Config Reader - Export all Gconf to an HTML file + compare feature (Extras-testing)
Even though these programs are available for free, I would appreciate any donations

Last edited by Berserk; 2010-09-27 at 19:18.