~bfiller/gallery-app/revert-1245

« back to all changes in this revision

Viewing changes to src/photo/photo.cpp

  • Committer: CI Train Bot
  • Author(s): Arthur Mello
  • Date: 2015-11-06 14:05:15 UTC
  • mfrom: (1241.1.30 gallery-app-sdk_1_3)
  • Revision ID: ci-train-bot@canonical.com-20151106140515-y27n4x5nt1ajn3jy
Update QML code to work with Ubuntu.Components 1.3 Fixes: #1508363
Approved by: Renato Araujo Oliveira Filho

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
{
78
78
    QByteArray format = QImageReader(file.filePath()).format();
79
79
    m_fileFormat = QString(format).toLower();
 
80
    Q_EMIT canBeEditedChanged();
80
81
    if (m_fileFormat == "jpg") // Why does Qt expose two different names here?
81
82
        m_fileFormat = "jpeg";
82
83
}