Some future proof tests for drag a borderless window

parent d2d651e9
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <QDir> #include <QDir>
#include <QString> #include <QString>
#include <QPalette> #include <QPalette>
#include <QDragMoveEvent>
#include <iostream> #include <iostream>
#include "ipcmsg.h" #include "ipcmsg.h"
...@@ -72,6 +73,15 @@ MainWin::~MainWin() ...@@ -72,6 +73,15 @@ MainWin::~MainWin()
} }
// XXX This can be used in future to permit
// to drag a window borderless on the desktop.
/*
void MainWin::dragMoveEvent(QDragMoveEvent *ev)
{
std::cout << "Drag Move Event " << ev->pos().x() << std::endl;
}
*/
void MainWin::setHtmlFile(QString &fname) void MainWin::setHtmlFile(QString &fname)
{ {
......
...@@ -112,6 +112,11 @@ class MainWin : public QWebView ...@@ -112,6 +112,11 @@ class MainWin : public QWebView
signals: signals:
void putMessage(SKMessage::SKMessage &msg); void putMessage(SKMessage::SKMessage &msg);
// XXX Future usage
/*
protected:
void dragMoveEvent(QDragMoveEvent *ev);
*/
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment