-
This commit is contained in:
27
rktwebview_qt/webviewwindow.cpp
Normal file
27
rktwebview_qt/webviewwindow.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "webviewwindow.h"
|
||||
|
||||
#include "webviewqt.h"
|
||||
#include "rktwebview_qt.h"
|
||||
|
||||
void WebviewWindow::closeEvent(QCloseEvent *evt)
|
||||
{
|
||||
_container->removeView(_view->id());
|
||||
}
|
||||
|
||||
void WebviewWindow::addView(WebViewQt *v, Rktwebview_qt *c)
|
||||
{
|
||||
_container = c;
|
||||
_view = v;
|
||||
this->setCentralWidget(v);
|
||||
}
|
||||
|
||||
WebViewQt *WebviewWindow::view()
|
||||
{
|
||||
return _view;
|
||||
}
|
||||
|
||||
WebviewWindow::WebviewWindow(QWidget *parent)
|
||||
: QMainWindow{parent}
|
||||
{
|
||||
_view = nullptr;
|
||||
}
|
||||
Reference in New Issue
Block a user