~ubuntu-branches/ubuntu/trusty/hedgewars/trusty-proposed

« back to all changes in this revision

Viewing changes to QTfrontend/databrowser.h

  • Committer: Package Import Robot
  • Author(s): Dmitry E. Oboukhov
  • Date: 2011-11-20 18:31:17 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20111120183117-pjhz1n2pvnmxa246
Tags: 0.9.17-1
* [Paul Wise]
 * Mention the homing bee in the package description (Closes: #577092)
 * Also install the hwengine desktop file (LP: #811770)
 * Depend on ttf-dejavu-core since it is smaller
 * Depend on ttf-wqy-zenhei instead of embedding a copy of it
* [Dmitry E. Oboukhov]
 * New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef DATABROWSER_H
2
 
#define DATABROWSER_H
3
 
 
4
 
#include <QTextBrowser>
5
 
#include <QSet>
6
 
 
7
 
class QNetworkAccessManager;
8
 
 
9
 
class DataBrowser : public QTextBrowser
10
 
{
11
 
    Q_OBJECT
12
 
public:
13
 
    explicit DataBrowser(QWidget *parent = 0);
14
 
 
15
 
signals:
16
 
 
17
 
public slots:
18
 
 
19
 
private:
20
 
    QNetworkAccessManager *manager;
21
 
    
22
 
    // hash and set of QString instead of QUrl to support Qt versions 
23
 
    // older than 4.7 (those have no support for qHash(const QUrl &))
24
 
    QHash<QString, QByteArray> resources;
25
 
    QSet<QString> requestedResources;
26
 
 
27
 
    QVariant loadResource(int type, const QUrl & name);
28
 
 
29
 
private slots:
30
 
    void resourceDownloaded();
31
 
};
32
 
 
33
 
#endif // DATABROWSER_H