set app as dock-less background tool
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <QMainWindow>
|
||||
|
||||
class QSvgWidget;
|
||||
class QSystemTrayIcon;
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
@@ -28,7 +29,10 @@ protected:
|
||||
void mouseReleaseEvent(QMouseEvent *event) override;
|
||||
|
||||
private:
|
||||
void setupTrayIcon();
|
||||
|
||||
QSvgWidget *m_handleBar;
|
||||
QSystemTrayIcon *m_trayIcon;
|
||||
QPoint dragPosition;
|
||||
bool dragging = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user