why do you want to do that? The crate gets redrawn by qt all the time
and to check the sql file every 100ms will freeze the gui a a few
times a second. As long as nothing in the sql database is changed and
the table in question is not shown this will only make mixxx slower.

The content of the table is redrawn by qt in the main-loop.

best Max


On Wed, 27 Mar 2013 16:02:53 -0400
Ariel Mauricio Marzana Valdez <[email protected]> wrote:

> Hi,
> 
> Thanks for the answer but my goal is this:
> 
> while( im in cratetable )
> {
>     refresh show content automatically;
>     sleep(100);
> }
> 
> I dont create any other class in the mixxx I only want to make refresh
> automatically lets say every 100ms
> 
> Thanks in advance
> 
> 
> On Tue, Mar 19, 2013 at 3:32 AM, Max Linke <[email protected]> wrote:
> 
> > Hi
> >
> > When your are changing the content of the currently shown crate
> > just call 'select()' in the cratetablemodel. I assume you call the
> > function to change something in the db from there. If this is not
> > the case a more general way would be to connect a signal from your
> > class to basesqltablemodel and connect it with 'select()' there as
> > SLOT. This will then also work for playlists.
> >
> > Best Max
> >
> >
> > Ariel Mauricio Marzana Valdez <[email protected]> wrote:
> >
> > Hi there thanks for your help, but I really need its in some case
> > someone modifies the sqlite file and insert values in crate_table
> > for example I would like that this change refresh automatically in
> > the area that shows the content of a specific "library" in this
> > case crate, is some class handle this refresh without the need of
> > change to another and then show the correct info?.
> >
> > Thanks in advance.
> >
> >
> > On Fri, Mar 1, 2013 at 8:00 AM, Max Linke <[email protected]> wrote:
> >
> >>
> >>
> >> The work for this is done in /src/library/sidebarmodel.cpp look at
> >> the clicked() function. The sidebar keeps track of our library
> >> features (PlaylistFeature,CrateFeature,...). These features are
> >> then responsible for
> >> showing the correct TableModel on the right.
> >>
> >> Does this answer your question?
> >>
> >> best Max
> >>
> >> On Thu, 28 Feb 2013 20:58:58 -0400
> >> Ariel Mauricio Marzana Valdez <[email protected]> wrote:
> >>
> >> > Hi there,
> >> >
> >> > I would like to understand whos managing the refresh of the
> >> > libraries I mean this part:
> >> >
> >> > [image: Inline image 1]
> >> >
> >> > and press one of this buttons:
> >> >
> >> > [image: Inline image 3]
> >> >
> >> > In which part of the code I can find whos in charge of that.
> >> >
> >> > Thanks in advance.
> >> >
> >>
> >>
> >>
> >> ------------------------------------------------------------------------------
> >> Everyone hates slow websites. So do we.
> >> Make your web apps faster with AppDynamics
> >> Download AppDynamics Lite for free today:
> >> http://p.sf.net/sfu/appdyn_d2d_feb
> >> _______________________________________________
> >> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
> >> http://mixxx.org
> >>
> >>
> >> Mixxx-devel mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
> >>
> >
> >
> >
> > --
> > *Ariel Mauricio Marzana Valdez*
> > *Developer
> > Sustainable thinking...please consider the environment before
> > printing this email.*
> >
> 
> 
> 


------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to