Override QMainWindow::setCentralWindow() to make it private

The central widget is used internally by KDDW to make all of this
possible. It shouldn't be used by users
This commit is contained in:
Sergio Martins
2020-08-22 17:03:11 +01:00
parent 721b4de55e
commit a1c473fb0e
2 changed files with 7 additions and 0 deletions

View File

@@ -79,3 +79,8 @@ MainWindow::~MainWindow()
{
delete d;
}
void MainWindow::setCentralWidget(QWidget *w)
{
QMainWindow::setCentralWidget(w);
}

View File

@@ -46,6 +46,8 @@ public:
~MainWindow() override;
private:
using QMainWindow::setCentralWidget;
void setCentralWidget(QWidget *); // overridden just to make it private
class Private;
Private *const d;
};