diff --git a/article_inspect.cpp b/article_inspect.cpp index 8521698e..046e5801 100644 --- a/article_inspect.cpp +++ b/article_inspect.cpp @@ -1,6 +1,6 @@ #include "article_inspect.h" #include -article_inspect::article_inspect( QWidget * parent ) : QDialog( parent, Qt::WindowType::Window ) +ArticleInspector::ArticleInspector( QWidget * parent ) : QDialog( parent, Qt::WindowType::Window ) { setAttribute( Qt::WidgetAttribute::WA_DeleteOnClose, false ); QVBoxLayout * v = new QVBoxLayout( this ); @@ -10,7 +10,7 @@ article_inspect::article_inspect( QWidget * parent ) : QDialog( parent, Qt::Wind v->addWidget( inspectView ); } -void article_inspect::setInspectPage( QWebEnginePage * page ) +void ArticleInspector::setInspectPage( QWebEnginePage * page ) { this->inspectedPage = page; page->setDevToolsPage( inspectView->page() ); @@ -19,7 +19,7 @@ void article_inspect::setInspectPage( QWebEnginePage * page ) show(); } -void article_inspect::closeEvent( QCloseEvent * ev ) +void ArticleInspector::closeEvent( QCloseEvent * ev ) { inspectedPage->setDevToolsPage( nullptr ); } diff --git a/article_inspect.h b/article_inspect.h index 0c55d2d1..5db96b00 100644 --- a/article_inspect.h +++ b/article_inspect.h @@ -6,13 +6,13 @@ #include #include -class article_inspect : public QDialog +class ArticleInspector : public QDialog { Q_OBJECT QWebEngineView * inspectView = nullptr; QWebEnginePage * inspectedPage = nullptr; public: - article_inspect( QWidget * parent = nullptr ); + ArticleInspector( QWidget * parent = nullptr ); void setInspectPage( QWebEnginePage * page ); diff --git a/articleview.cc b/articleview.cc index a4815311..4ad3d6d9 100644 --- a/articleview.cc +++ b/articleview.cc @@ -509,7 +509,7 @@ void ArticleView::inspectElement(){ QWebEnginePage *page = ui.definition->page(); if( inspector == nullptr ) { - inspector = new article_inspect( this ); + inspector = new ArticleInspector( this ); inspector->setWindowTitle( tr( "Inspect" ) ); } inspector->setInspectPage( page ); diff --git a/articleview.hh b/articleview.hh index c1eeb37b..3dc41309 100644 --- a/articleview.hh +++ b/articleview.hh @@ -46,7 +46,7 @@ class ArticleView: public QFrame QString rangeVarName; //used to hold the F12 inspect source view. - article_inspect * inspector = nullptr; + ArticleInspector * inspector = nullptr; /// Any resource we've decided to download off the dictionary gets stored here. /// Full vector capacity is used for search requests, where we have to make