aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/qmmp/visual.cpp6
-rw-r--r--src/qmmp/visual.h5
2 files changed, 6 insertions, 5 deletions
diff --git a/src/qmmp/visual.cpp b/src/qmmp/visual.cpp
index a65742ce7..323858f7f 100644
--- a/src/qmmp/visual.cpp
+++ b/src/qmmp/visual.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008-2013 by Ilya Kotov *
+ * Copyright (C) 2008-2014 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -27,7 +27,7 @@
#include "output.h"
#include "visual.h"
-Visual::Visual(QWidget *parent) : QWidget(parent)
+Visual::Visual(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f)
{
setAttribute(Qt::WA_DeleteOnClose, true);
setAttribute(Qt::WA_QuitOnClose, false);
@@ -159,7 +159,7 @@ void Visual::initialize(QWidget *parent , QObject *receiver, const char *member)
Visual* visual = factory->create(parent);
if (m_receiver && m_member)
connect(visual, SIGNAL(closedByUser()), m_receiver, m_member);
- visual->setWindowFlags(Qt::Window);
+ visual->setWindowFlags(visual->windowFlags() | Qt::Window);
qDebug("Visual: added visualization: %s", qPrintable(factory->properties().name));
m_vis_map.insert (factory, visual);
m_visuals.append(visual);
diff --git a/src/qmmp/visual.h b/src/qmmp/visual.h
index 03e885524..957e9e0a1 100644
--- a/src/qmmp/visual.h
+++ b/src/qmmp/visual.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008-2013 by Ilya Kotov *
+ * Copyright (C) 2008-2014 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -40,8 +40,9 @@ public:
/*!
* Object contsructor.
* @param parent Parent object.
+ * @param f Widget flags.
*/
- Visual(QWidget *parent);
+ Visual(QWidget *parent, Qt::WindowFlags f = 0);
/*!
* Destructor.
*/