[Nepomuk] Re: The "Stop Query" Button

Sebastian Trüg trueg at kde.org
Wed Mar 16 09:07:58 CET 2011


Exactly, that is what I meant.
The button has a method called "setEnabled(bool enabled)".
You can use that to enable the button when the query was started in
slotQueryButtonClicked() and disable it again in
slotQueryStopButtonClicked() and slotQueryFinished().

Cheers,
Sebastian

On 03/16/2011 07:41 AM, Vishesh Handa wrote:
> Hey Smit
> 
> Your patch is -
> 
>  void Nepomuk::QueryModel::stopQuery()
>  {
> -    d->m_currentQuery = 0;
> +    if(d->m_currentQuery!=0)
> +        d->m_currentQuery = 0;
>  }
> 
> which basically sets m_currentQuery to 0, if it is not already 0.
> Logically, it doesn't make much of a difference if was already 0, and
> you let it be 0, or if you just set it to 0 again. :)
> 
> I think what Sebastian wanted you to do was to make the "Stop Query"
> button inactive when a query was not running. The button should become
> in active.
> 
> 
> On Wed, Mar 16, 2011 at 8:16 AM, Who Knows <who828 at gmail.com
> <mailto:who828 at gmail.com>> wrote:
> 
>      Hello, i have tried to add the feature where Stop Query button is
>     only effective when there is a query running though i couldn't test
>     it out, but i feel it should work, if it doesn't do tell me i will
>     fix it.
>       also my real name is 'Smit Shah'. (yeah i forgot to mention it in
>     my last post)
> 
>     _______________________________________________
>     Nepomuk mailing list
>     Nepomuk at kde.org <mailto:Nepomuk at kde.org>
>     https://mail.kde.org/mailman/listinfo/nepomuk
> 
> 
> 
> 
> -- 
> Vishesh Handa
> 
> 
> 
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk


More information about the Nepomuk mailing list