goldendict-ng/articleinspector.hh
2021-07-15 22:58:32 +08:00

39 lines
677 B
C++

#ifndef ARTICLEINSPECTOR_HH
#define ARTICLEINSPECTOR_HH
#include <QtGlobal>
#if QT_VERSION >= 0x040600
//#include <QWebInspector>
#include <list>
#include "config.hh"
#include "ex.hh"
#include <QShowEvent>
class ArticleInspector : public QObject
{
Q_OBJECT
public:
DEF_EX( exInit, "Article inspector failed to init", std::exception )
explicit ArticleInspector( Config::Class * cfg, QWidget* parent = 0 );
~ArticleInspector();
public slots:
void beforeClosed();
protected:
void showEvent( QShowEvent *event );
private:
Config::Class * cfg;
static std::list< ArticleInspector * > openedInspectors;
};
#endif // QT_VERSION
#endif // ARTICLEINSPECTOR_HH