Changeset 35b5b55417c351f2ecb438349aa485c773ffcfe7
- 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
| r5fec93e |
r35b5b55 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jean-Paul Saman <jpsaman@wxs.nl> |
|---|
| … | … | |
| 32 | 32 | |
|---|
| 33 | 33 | #include <qapplication.h> |
|---|
| | 34 | #include <qpainter.h> |
|---|
| 34 | 35 | |
|---|
| 35 | 36 | extern "C" |
|---|
| … | … | |
| 41 | 42 | |
|---|
| 42 | 43 | QApplication* p_qte_application; |
|---|
| | 44 | QWidget* p_qte_widget; |
|---|
| 43 | 45 | |
|---|
| 44 | 46 | } qte_thread_t; |
|---|
| … | … | |
| 133 | 135 | vlc_thread_join( p_qte_main ); |
|---|
| 134 | 136 | |
|---|
| | 137 | /* Cleanup allocated classes. */ |
|---|
| | 138 | delete p_qte_main->p_qte_application; |
|---|
| | 139 | delete p_qte_main->p_qte_widget; |
|---|
| | 140 | |
|---|
| 135 | 141 | vlc_object_destroy( p_qte_main ); |
|---|
| 136 | 142 | p_qte_main = NULL; |
|---|
| … | … | |
| 158 | 164 | msg_Dbg( p_this, "qte_main: qte application created" ); |
|---|
| 159 | 165 | |
|---|
| | 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 | |
|---|
| 160 | 173 | /* signal the creation of the window */ |
|---|
| | 174 | p_this->p_qte_application->setMainWidget(p_this->p_qte_widget); |
|---|
| | 175 | |
|---|
| 161 | 176 | vlc_thread_ready( p_this ); |
|---|
| | 177 | |
|---|
| 162 | 178 | msg_Dbg( p_this, "qte_main: qte application thread ready" ); |
|---|
| | 179 | p_this->p_qte_application->exec(); |
|---|
| 163 | 180 | |
|---|
| 164 | | p_this->p_qte_application->exec(); |
|---|
| 165 | 181 | msg_Dbg( p_this, "qte_main: leaving" ); |
|---|
| 166 | 182 | } |
|---|