aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpchannelswindow.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2017-08-10 00:14:44 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2017-08-10 00:14:44 +0800
commitab33532da11672ee435e2b566cdba81b2e79e874 (patch)
treeb4c9aa59459f5586831384835ced28951e874967 /qmidiplayer-desktop/qmpchannelswindow.hpp
parentb03133b80b268c74d1dd5c92e2af6907b51c91b2 (diff)
downloadQMidiPlayer-ab33532da11672ee435e2b566cdba81b2e79e874.tar.xz
Windows of several main functionalities are no longer
QDialogs. Fixed unexpected behavior. Now visualization window can be closed by sending it a close signal. Trying a solution to address the problem that prevents plugins from being loaded correctly in Windows if the path contains Chinese characters. Not even tried to build in Windows though.
Diffstat (limited to 'qmidiplayer-desktop/qmpchannelswindow.hpp')
-rw-r--r--qmidiplayer-desktop/qmpchannelswindow.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qmidiplayer-desktop/qmpchannelswindow.hpp b/qmidiplayer-desktop/qmpchannelswindow.hpp
index 3d0444b..c7630fe 100644
--- a/qmidiplayer-desktop/qmpchannelswindow.hpp
+++ b/qmidiplayer-desktop/qmpchannelswindow.hpp
@@ -3,7 +3,7 @@
#include <QLabel>
#include <QPushButton>
-#include <QDialog>
+#include <QWidget>
#include <QComboBox>
#include <QShowEvent>
#include <QCloseEvent>
@@ -81,12 +81,12 @@ class qmpChannelFunc:public qmpFuncBaseIntf
void close();
};
-class qmpChannelsWindow:public QDialog
+class qmpChannelsWindow:public QWidget
{
Q_OBJECT
public:
- explicit qmpChannelsWindow(QWidget *parent = 0);
+ explicit qmpChannelsWindow(QWidget *parent=0);
~qmpChannelsWindow();
void showEvent(QShowEvent *event);
void closeEvent(QCloseEvent *event);