~ubuntu-branches/ubuntu/utopic/smplayer/utopic-proposed

« back to all changes in this revision

Viewing changes to src/infofile.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matvey Kozhev
  • Date: 2008-05-13 10:12:30 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080513101230-3rx6z4ulb2zkyd2t
Tags: 0.6.0-1
* New upstream release.
* Bumped debian/compat to 6.
* debian/control:
  - Require debhelper >= 6.
  - Relaxed the dependency of smplayer-translations on smplayer
    to Recommends. (Closes: #478713)
* Dropped debian/smplayer.desktop, changes applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
#include "infofile.h"
20
20
#include <QFileInfo>
 
21
#include <QCoreApplication>
21
22
#include "helper.h"
22
23
#include "constants.h"
23
24
 
24
 
InfoFile::InfoFile( QObject * parent ) : QObject(parent) 
25
 
{
 
25
 
 
26
InfoFile::InfoFile() {
26
27
        row = 0;
27
28
}
28
29
 
162
163
                        if (lang.isEmpty()) lang = "<i>&lt;"+tr("empty")+"&gt;</i>";
163
164
                        QString name = md.subs.itemAt(n).name();
164
165
                        if (name.isEmpty()) name = "<i>&lt;"+tr("empty")+"&gt;</i>";
 
166
                        /*
165
167
                        s += QString("<td>%1</td><td>%2</td><td>%3</td><td>%4</td><td>%5</td>")
166
168
                 .arg(n).arg(t).arg(lang).arg(name)
167
169
                 .arg(md.subs.itemAt(n).ID());
 
170
                        */
 
171
            s += "<td>" + QString::number(n) + "</td><td>" + t + 
 
172
                 "</td><td>" + lang + "</td><td>" + name + 
 
173
                 "</td><td>" + QString::number(md.subs.itemAt(n).ID()) + "</td>";
168
174
                        s += closeItem();
169
175
                }
170
176
                s += closePar();
206
212
           closeItem();
207
213
}
208
214
 
209
 
#include "moc_infofile.cpp"
 
215
 
 
216
inline QString InfoFile::tr( const char * sourceText, const char * comment, int n )  {
 
217
        return QCoreApplication::translate("InfoFile", sourceText, comment, QCoreApplication:: CodecForTr, n );
 
218
}
 
219