aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/notifier/popupwidget.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-07-24 11:04:33 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-07-24 11:04:33 +0000
commit120e292ac7e5eafa996b1644f78df64a44164531 (patch)
tree4ddc9fe4aadfb6fe7bd5e7bc0fff256d12bfef29 /src/plugins/General/notifier/popupwidget.cpp
parentd2d062fa716a79ccf161fc302e73723f3eb1bb8d (diff)
downloadqmmp-120e292ac7e5eafa996b1644f78df64a44164531.tar.gz
qmmp-120e292ac7e5eafa996b1644f78df64a44164531.tar.bz2
qmmp-120e292ac7e5eafa996b1644f78df64a44164531.zip
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
Diffstat (limited to 'src/plugins/General/notifier/popupwidget.cpp')
-rw-r--r--src/plugins/General/notifier/popupwidget.cpp9
1 files changed, 5 insertions, 4 deletions
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("<b>" + tr("Volume:") + QString (" %1\%").arg(v)+ + "</b>");
- show();
+
qApp->processEvents();
updateGeometry();
resize(sizeHint());