FloatingWindow now receives MainWindow as argument

Instead of a generic QWidget. Only works with main window so
let's just use the right type
This commit is contained in:
Sergio Martins
2020-02-09 18:20:19 +00:00
parent 37fe065bcf
commit 59bb0d8e71
5 changed files with 14 additions and 13 deletions

View File

@@ -30,14 +30,14 @@
using namespace KDDockWidgets;
FloatingWindowWidget::FloatingWindowWidget(QWidget *parent)
FloatingWindowWidget::FloatingWindowWidget(MainWindowBase *parent)
: FloatingWindow(parent)
, m_vlayout(new QVBoxLayout(this))
{
init();
}
FloatingWindowWidget::FloatingWindowWidget(Frame *frame, QWidget *parent)
FloatingWindowWidget::FloatingWindowWidget(Frame *frame, MainWindowBase *parent)
: FloatingWindow(frame, parent)
, m_vlayout(new QVBoxLayout(this))
{