A Qt replacement for KGlobal::ref and deref
Thiago Macieira
thiago at kde.org
Thu Feb 10 15:30:44 GMT 2011
Em quinta-feira, 10 de fevereiro de 2011, às 09:04:09, Ian Monroe escreveu:
> On Thu, Feb 10, 2011 at 08:43, Thiago Macieira <thiago at kde.org> wrote:
> > Em quinta-feira, 10 de fevereiro de 2011, às 10:49:08, Stefan Majewsky
> >
> > escreveu:
> >> On Thu, Feb 10, 2011 at 9:14 AM, Thiago Macieira <thiago at kde.org> wrote:
> >> > The correct way to solve this problem is to show another window
> >> > indicating that it is doing something and tell me what. We solve
> >> > both
> >> > problems at once: there is a window open, so it's not yet a quit
> >> > from
> >> > QCoreApplication's sense, and the user gets feedback.
> >>
> >> This assumption breaks in KDE because the progress is displayed by the
> >> kuiserver.
> >
> > But we're no longer talking about a KDE application. This is a Qt
> > application, with no access to kuiserver.
>
> But surely such functionality isn't unique to KDE? Having operations
> not associated with a QWidget that need to finish before an
> application closes seems pretty normal. David summed it up: "Instead
> of just counting open windows, you also count other things which ask
> to be counted - systray icon and jobs."
I disagree.
If the user can't get any kind of feedback, the application shouldn't be
running anymore.
System tray icons are a kind of feedback. Dialogs are too.
Running for 30 seconds in the background with no indication is not acceptable.
Worse is the application that doesn't quit ever after telling it to quit --
KMail 1.x did this all the time. I had to kill it or kquitapp after closing it
to quit. Maybe it's a refcount bug, but one that would be easy to tell if
there was still some kind of visual feedback enforced.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110210/d7a1bd65/attachment.sig>
More information about the kde-core-devel
mailing list