29 lines
587 B
C
29 lines
587 B
C
|
// Copyright 2014 Dolphin Emulator Project
|
||
|
// Licensed under GPLv2
|
||
|
// Refer to the license.txt file included.
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <QWidget>
|
||
|
|
||
|
class DRenderWidget : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
DRenderWidget(QWidget* parent_widget = nullptr);
|
||
|
|
||
|
protected:
|
||
|
// Some window managers start window dragging if an "empty" window area was clicked.
|
||
|
// Prevent this by intercepting the mouse press event.
|
||
|
void mousePressEvent(QMouseEvent*) override {}
|
||
|
void paintEvent(QPaintEvent*) override {}
|
||
|
|
||
|
private slots:
|
||
|
void closeEvent(QCloseEvent* e) override;
|
||
|
|
||
|
signals:
|
||
|
void Closed();
|
||
|
};
|
||
|
|