From 120e292ac7e5eafa996b1644f78df64a44164531 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 24 Jul 2010 11:04:33 +0000 Subject: fixed possible freezes with mplayer git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1806 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/notifier/popupwidget.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/plugins/General') diff --git a/src/plugins/General/notifier/popupwidget.cpp b/src/plugins/General/notifier/popupwidget.cpp index 1fa980e3f..e245b99c6 100644 --- a/src/plugins/General/notifier/popupwidget.cpp +++ b/src/plugins/General/notifier/popupwidget.cpp @@ -49,6 +49,7 @@ PopupWidget::PopupWidget(QWidget *parent) m_label1 = new QLabel(this); hlayout->addWidget (m_label1); + setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); //settings QSettings settings(Qmmp::configFile(), QSettings::IniFormat); @@ -109,10 +110,10 @@ void PopupWidget::showMetaData() m_pixlabel->setPixmap(QPixmap(":/notifier_icon.png")); m_pixlabel->setFixedSize(32,32); } - show(); - qApp->processEvents(); updateGeometry(); - resize(sizeHint()); + setFixedSize(sizeHint()); + update(); + show(); updatePosition(); m_timer->start(); } @@ -125,7 +126,7 @@ void PopupWidget::showVolume(int v) m_label1->setAlignment(Qt::AlignVCenter); m_label1->setText("" + tr("Volume:") + QString (" %1\%").arg(v)+ + ""); - show(); + qApp->processEvents(); updateGeometry(); resize(sizeHint()); -- cgit v1.2.3-13-gbd6f