~ubuntu-branches/ubuntu/feisty/digikam/feisty

« back to all changes in this revision

Viewing changes to digikam/digikam/albumdb.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Achim Bohnet
  • Date: 2006-05-15 01:15:02 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515011502-kpyuz7766hpbuia8
Tags: 0.8.2~rc1-0ubuntu1
* sync with debian (UVF see #44102)
  0.8.2~rc1-0ubuntu1 is identical to debian's 0.8.1+0.8.2-rc1-1.
  Version was changed due to latest 0.8.1.ubuntu-0ubuntu1 upload.
  This version is unfortunately bigger than debian's 0.8.1+0.8.2-rc1-1
* Merge in ubuntu changelog

Show diffs side-by-side

added added

removed removed

Lines of Context:
1060
1060
    return values[0];
1061
1061
}
1062
1062
 
 
1063
QDate AlbumDB::getAlbumLowestDate(int albumID)
 
1064
{
 
1065
    QStringList values;
 
1066
    execSql( QString("SELECT MIN(datetime) FROM Images "
 
1067
                     "WHERE dirid=%1 GROUP BY dirid")
 
1068
            .arg( albumID ), &values);
 
1069
    QDate itemDate = QDate::fromString( values[0], Qt::ISODate );
 
1070
    return itemDate;
 
1071
}
 
1072
 
 
1073
QDate AlbumDB::getAlbumHighestDate(int albumID)
 
1074
{
 
1075
    QStringList values;
 
1076
    execSql( QString("SELECT MAX(datetime) FROM Images "
 
1077
                     "WHERE dirid=%1 GROUP BY dirid")
 
1078
            .arg( albumID ), &values);
 
1079
    QDate itemDate = QDate::fromString( values[0], Qt::ISODate );
 
1080
    return itemDate;
 
1081
}
 
1082
 
1063
1083
QDate AlbumDB::getAlbumAverageDate(int albumID)
1064
1084
{
1065
1085
    QStringList values;