Skip to content

Commit

Permalink
MythMainWindow: Move QWidget inheritance into MythUIScreenBounds
Browse files Browse the repository at this point in the history
- which allows MythUIScreenBounds to use QObject functionality
  • Loading branch information
mark-kendall committed Oct 10, 2020
1 parent 6fcd24e commit 68e85b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion mythtv/libs/libmythui/mythmainwindow.cpp
Expand Up @@ -131,7 +131,6 @@ MythNotificationCenter *GetNotificationCenter(void)
}

MythMainWindow::MythMainWindow(const bool useDB)
: QWidget(nullptr)
{
m_display = MythDisplay::Create();

Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythui/mythmainwindow.h
Expand Up @@ -2,7 +2,6 @@
#define MYTHMAINWINDOW_H_

// Qt
#include <QWidget>
#include <QTimer>

// MythTV
Expand Down Expand Up @@ -32,9 +31,10 @@ class MythMainWindowPrivate;
class MythPainterWindow;
class MythRender;

class MUI_PUBLIC MythMainWindow : public QWidget, public MythUIScreenBounds
class MUI_PUBLIC MythMainWindow : public MythUIScreenBounds
{
Q_OBJECT

friend class MythPainterWindowOpenGL;
friend class MythPainterWindowVulkan;
friend class MythPainterWindowQt;
Expand Down
6 changes: 4 additions & 2 deletions mythtv/libs/libmythui/mythuiscreenbounds.h
Expand Up @@ -2,15 +2,17 @@
#define MYTHUISCREENBOUNDS_H

// Qt
#include <QRect>
#include <QWidget>

// MythTV
#include "mythuiexp.h"

class MythDisplay;

class MUI_PUBLIC MythUIScreenBounds
class MUI_PUBLIC MythUIScreenBounds : public QWidget
{
Q_OBJECT

public:
static bool GeometryIsOverridden();
static void ParseGeometryOverride(const QString& Geometry);
Expand Down

0 comments on commit 68e85b9

Please sign in to comment.