aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpinfowindow.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2017-02-12 00:29:01 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2017-02-12 00:29:01 +0800
commitd779d32c8c32e0e0c22662046498620b11fa46de (patch)
treeba63a0d33d1fb6a07bca30d74dd72934b9ef69ce /qmidiplayer-desktop/qmpinfowindow.hpp
parentacf466561f17bf0eb6c19ea0467b27f5392aeb36 (diff)
downloadQMidiPlayer-d779d32c8c32e0e0c22662046498620b11fa46de.tar.xz
New functionality API. Port built-in features to the new API.
Start the revamp of the main Window. Credit of the new design goes to @BLumia.
Diffstat (limited to 'qmidiplayer-desktop/qmpinfowindow.hpp')
-rw-r--r--qmidiplayer-desktop/qmpinfowindow.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpinfowindow.hpp b/qmidiplayer-desktop/qmpinfowindow.hpp
index a76b46b..87ac2c0 100644
--- a/qmidiplayer-desktop/qmpinfowindow.hpp
+++ b/qmidiplayer-desktop/qmpinfowindow.hpp
@@ -6,6 +6,8 @@
#include <QMouseEvent>
#include <QApplication>
#include <QClipboard>
+#include <QCloseEvent>
+#include "../include/qmpcorepublic.hpp"
namespace Ui {
class qmpInfoWindow;
@@ -25,6 +27,17 @@ class QClickableLabel : public QLabel
}
};
+class qmpInfoWindow;
+class qmpInfoFunc:public qmpFuncBaseIntf
+{
+ private:
+ qmpInfoWindow *p;
+ public:
+ qmpInfoFunc(qmpInfoWindow *par);
+ void show();
+ void close();
+};
+
class qmpInfoWindow : public QDialog
{
Q_OBJECT
@@ -32,11 +45,13 @@ class qmpInfoWindow : public QDialog
public:
explicit qmpInfoWindow(QWidget *parent = 0);
~qmpInfoWindow();
+ void closeEvent(QCloseEvent *e);
public slots:
void updateInfo();
private:
Ui::qmpInfoWindow *ui;
+ qmpInfoFunc *infof;
};
#endif // QMPINFOWINDOW_HPP