[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Patch for KPresenter (Auto Presentation wait time)
From:       Toshitaka Fujioka <toshitaka () kde ! gr ! jp>
Date:       2001-07-26 11:21:39
[Download RAW message or body]

On Wednesday 25 July 2001 02:19, Nikolas Zimmermann wrote:
> On Tuesday 24 July 2001 15:37, Toshitaka Fujioka wrote:
> > Hello,
> >
> > This patch stand by for the time (seconds) that I set with
> > "Configure Pages -> Speed of the presentation:" when go to the next page.
> > But don't work in "Effect for changing to next page: No effect".
>
> Hi Toshitaka,

Hi,

> hmm is sleep() the way to go?

Hmm, Sorry. I wasn't able to understand.
Must not I use sleep() ?
Had better I use QTime ?

An example:
    if ( !view->kPresenterDoc()->spManualSwitch() ) {
        QTime waitTime;
        waitTime.start();
        while ( 1 ) {
            if ( (waitTime.elapsed() / 1000) == view->kPresenterDoc()->getPresSpeed() )
                break;
            else if ( (waitTime.elapsed() / 1000) > 99 )   // Max Value
                break;
        }
    }

Thank you.
-- 
Toshitaka Fujioka
http://www.kde.org                The K Desktop Environment Project
                                                    fujioka@kde.org
http://www.kde.gr.jp               Japan KDE User's Group
                                                    toshitaka@kde.gr.jp

-- We offer the best Desktop Environment to you.  (This is my goal. ;-)) --     

_______________________________________________
Koffice-devel mailing list
Koffice-devel@master.kde.org
http://master.kde.org/mailman/listinfo/koffice-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic