~elopio/gallery-app/revert_workaround-1302706-click_toolbar_button_failure

« back to all changes in this revision

Viewing changes to tests/unittests/stubs/database_stub.cpp

  • Committer: Leo Arias
  • Date: 2015-05-15 08:05:23 UTC
  • mfrom: (954.1.241 gallery-app)
  • Revision ID: leo.arias@canonical.com-20150515080523-i2of3vr8h7dioj59
Now the toolbar object is not needed at all.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "database.h"
22
22
#include "album-table.h"
23
23
#include "media-table.h"
24
 
#include "photo-edit-table.h"
25
24
 
26
25
#include <QFile>
27
26
 
34
33
{
35
34
    m_albumTable = new AlbumTable(this, this);
36
35
    m_mediaTable = new MediaTable(this, this);
37
 
    m_photoEditTable = new PhotoEditTable(this, this);
38
36
}
39
37
 
40
38
Database::~Database()
41
39
{
42
40
    delete m_albumTable;
43
41
    delete m_mediaTable;
44
 
    delete m_photoEditTable;
45
42
}
46
43
 
47
44
AlbumTable* Database::getAlbumTable() const
53
50
{
54
51
    return m_mediaTable;
55
52
}
56
 
 
57
 
PhotoEditTable* Database::getPhotoEditTable() const
58
 
{
59
 
    return m_photoEditTable;
60
 
}