~artmello/gallery-app/badcontext_crash

« back to all changes in this revision

Viewing changes to src/util/resource.h

  • Committer: Guenter Schwann
  • Date: 2013-04-15 12:05:00 UTC
  • mto: This revision was merged to the branch mainline in revision 653.
  • Revision ID: guenter.schwann@canonical.com-20130415120500-fh98u8vuuu7lg1rb
Use cmake instead of qmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef RESOURCE_H
20
20
#define RESOURCE_H
21
21
 
22
 
#include <QDir>
23
22
#include <QString>
24
23
#include <QUrl>
25
24
 
31
30
class Resource
32
31
{
33
32
public:
34
 
    explicit Resource(const QString& application_dir, const QString& install_dir, QQuickView *view);
35
 
 
36
 
    bool is_installed() const;
 
33
    explicit Resource(QQuickView *view);
37
34
 
38
35
    QUrl get_rc_url(const QString& path) const;
39
36
 
42
39
    void setView(QQuickView* view);
43
40
 
44
41
private:
45
 
    QString trailing_slash(QString path) const;
46
 
 
47
 
    QDir app_dir_;
48
 
    QDir install_dir_;
49
42
    QQuickView* view_;
50
43
    mutable int max_texture_size_;
51
44