mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Move common initialization to the parent class
This commit is contained in:
@ -15,19 +15,6 @@
|
||||
InfoComicsView::InfoComicsView(QWidget *parent)
|
||||
: ComicsView(parent)
|
||||
{
|
||||
qmlRegisterType<ComicModel>("com.yacreader.ComicModel", 1, 0, "ComicModel");
|
||||
qmlRegisterType<ComicDB>("com.yacreader.ComicDB", 1, 0, "ComicDB");
|
||||
qmlRegisterType<ComicInfo>("com.yacreader.ComicInfo", 1, 0, "ComicInfo");
|
||||
|
||||
view = new QQuickWidget();
|
||||
view->setResizeMode(QQuickWidget::SizeRootObjectToView);
|
||||
connect(
|
||||
view, &QQuickWidget::statusChanged,
|
||||
[=](QQuickWidget::Status status) {
|
||||
if (status == QQuickWidget::Error) {
|
||||
QLOG_ERROR() << view->errors();
|
||||
}
|
||||
});
|
||||
|
||||
// container->setFocusPolicy(Qt::StrongFocus);
|
||||
|
||||
|
Reference in New Issue
Block a user