Commit ed646896 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Small fix to get a smaller size when a video ends.

parent f38e73af
...@@ -52,17 +52,18 @@ public: ...@@ -52,17 +52,18 @@ public:
void *request( vout_thread_t *, int *, int *, void *request( vout_thread_t *, int *, int *,
unsigned int *, unsigned int * ); unsigned int *, unsigned int * );
void release( void * ); void release( void * );
int control( void *, int, va_list ); int control( void *, int, va_list );
private: private:
intf_thread_t *p_intf; intf_thread_t *p_intf;
vlc_mutex_t lock;
vout_thread_t *p_vout; vout_thread_t *p_vout;
vlc_mutex_t lock;
signals: signals:
//void askResize();
void askVideoWidgetToShow(); void askVideoWidgetToShow();
//void askResize();
public slots: public slots:
void SetSizing( unsigned int, unsigned int ); void SetSizing( unsigned int, unsigned int );
......
...@@ -529,7 +529,7 @@ void MainInterface::debug() ...@@ -529,7 +529,7 @@ void MainInterface::debug()
*/ */
QSize MainInterface::sizeHint() const QSize MainInterface::sizeHint() const
{ {
int nwidth = controls->size().width(); int nwidth = controls->sizeHint().width();
int nheight = controls->size().height() int nheight = controls->size().height()
+ menuBar()->size().height() + menuBar()->size().height()
+ statusBar()->size().height(); + statusBar()->size().height();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment