~ubuntu-branches/debian/sid/kxstitch/sid

« back to all changes in this revision

Viewing changes to kxstitch/kxstitchmimesource.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mike O'Connor
  • Date: 2009-03-15 09:07:18 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090315090718-w1f0d0ho6d2j9a9v
Tags: 0.8.3.1-1
* New Upstream Version
* Chnage build-dep to work with new libmagick++-dev (Closes: 485893)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
{
22
22
  m_outputFormats.append("application/kxstitch");
23
23
  QStrList ofmts = QImageIO::outputFormats();
24
 
  for (uint i = 0 ; i < ofmts.count() ; i++)
 
24
  for (int i = 0 ; i < ofmts.count() ; i++)
25
25
  {
26
26
    QString f = QString("image/%1").arg(QString(ofmts.at(i)).lower());
27
27
    m_outputFormats.append(f.latin1());
35
35
 
36
36
const char* KXStitchMimeSource::format(int n) const
37
37
{
38
 
  if (m_outputFormats.count() < n)
 
38
  if (m_outputFormats.count()<n)
39
39
    return 0;
40
40
  QStrListIterator it(m_outputFormats);
41
41
  while (n--)
45
45
 
46
46
bool KXStitchMimeSource::provides(const char* mimeType) const
47
47
{
48
 
  uint i;
 
48
  int i;
49
49
  QStrListIterator it(m_outputFormats);
50
50
  for (i = 0 ; i < m_outputFormats.count() ; i++, ++it)
51
51
    if (qstrcmp(it.current(),mimeType) == 0) break;