mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Change project directory structure.
Change project directory structure according to application structure. Change 'nox' configuration option to something more meaningful 'nogui'. Rename 'Icons' folder to 'icons' (similar to other folders). Partially add 'nowebui' option support. Remove QConf project file.
This commit is contained in:
30
src/gui/rss/htmlbrowser.h
Normal file
30
src/gui/rss/htmlbrowser.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef HTMLBROWSER_H
|
||||
#define HTMLBROWSER_H
|
||||
|
||||
#include <QTextBrowser>
|
||||
#include <QHash>
|
||||
|
||||
class QNetworkAccessManager;
|
||||
class QNetworkDiskCache;
|
||||
class QNetworkReply;
|
||||
|
||||
class HtmlBrowser: public QTextBrowser
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit HtmlBrowser(QWidget* parent = 0);
|
||||
~HtmlBrowser();
|
||||
|
||||
virtual QVariant loadResource(int type, const QUrl &name);
|
||||
|
||||
protected:
|
||||
QNetworkAccessManager *m_netManager;
|
||||
QNetworkDiskCache *m_diskCache;
|
||||
QHash<QUrl, bool> m_activeRequests;
|
||||
|
||||
protected slots:
|
||||
void resourceLoaded(QNetworkReply *reply);
|
||||
};
|
||||
|
||||
#endif // HTMLBROWSER_H
|
||||
Reference in New Issue
Block a user