Changeset 35b5b55417c351f2ecb438349aa485c773ffcfe7

Show
Ignore:
Timestamp:
14/02/03 14:01:02 (6 years ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1045227662 +0000
git-parent:

[ce3ea763c34c55fb84676ebeb03cc1d5ff668ded]

git-author:
Jean-Paul Saman <jpsaman@videolan.org> 1045227662 +0000
Message:

Small improvement.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/misc/qte_main.cpp

    r5fec93e r35b5b55  
    33 ***************************************************************************** 
    44 * Copyright (C) 2003 VideoLAN 
    5  * $Id: qte_main.cpp,v 1.1 2003/01/19 22:16:13 jpsaman Exp $ 
     5 * $Id: qte_main.cpp,v 1.2 2003/02/14 13:01:02 jpsaman Exp $ 
    66 * 
    77 * Authors: Jean-Paul Saman <jpsaman@wxs.nl> 
     
    3232 
    3333#include <qapplication.h> 
     34#include <qpainter.h> 
    3435 
    3536extern "C" 
     
    4142 
    4243    QApplication*       p_qte_application; 
     44    QWidget*            p_qte_widget; 
    4345 
    4446} qte_thread_t; 
     
    133135    vlc_thread_join( p_qte_main ); 
    134136 
     137    /* Cleanup allocated classes. */ 
     138    delete p_qte_main->p_qte_application; 
     139    delete p_qte_main->p_qte_widget; 
     140 
    135141    vlc_object_destroy( p_qte_main ); 
    136142    p_qte_main = NULL; 
     
    158164    msg_Dbg( p_this, "qte_main: qte application created" ); 
    159165 
     166    QWidget* pWidget = new QWidget(); 
     167    if(pWidget) 
     168    { 
     169        p_this->p_qte_widget = pWidget; 
     170    } 
     171    msg_Dbg( p_this, "qte_main: qte dummy widget created" ); 
     172 
    160173    /* signal the creation of the window */ 
     174    p_this->p_qte_application->setMainWidget(p_this->p_qte_widget); 
     175 
    161176    vlc_thread_ready( p_this ); 
     177 
    162178    msg_Dbg( p_this, "qte_main: qte application thread ready" ); 
     179    p_this->p_qte_application->exec(); 
    163180 
    164     p_this->p_qte_application->exec(); 
    165181    msg_Dbg( p_this, "qte_main: leaving" ); 
    166182}