~ubuntu-branches/debian/wheezy/tea/wheezy

« back to all changes in this revision

Viewing changes to quazipnewinfo.cpp

  • Committer: Package Import Robot
  • Author(s): Tobias Quathamer
  • Date: 2012-02-29 13:05:53 UTC
  • mfrom: (1.2.10)
  • Revision ID: package-import@ubuntu.com-20120229130553-wmwpxokaa1spmj69
Tags: 31.2.0-1
* Imported Upstream version 31.2.0
* Refresh debian/patches
* Switch to debhelper v9
* Use machine-readable format v1.0 for debian/copyright
* Update to Standards-Version 3.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include "quazipnewinfo.h"
35
35
 
36
36
 
37
 
QuaZipNewInfo::QuaZipNewInfo(const QString& name):
38
 
  name(name), dateTime(QDateTime::currentDateTime()), internalAttr(0), externalAttr(0)
 
37
QuaZipNewInfo::QuaZipNewInfo (const QString& name):
 
38
                              name(name),
 
39
                              dateTime (QDateTime::currentDateTime()),
 
40
                              internalAttr (0),
 
41
                              externalAttr (0)
39
42
{
40
43
}
41
44
 
42
 
QuaZipNewInfo::QuaZipNewInfo(const QString& name, const QString& file):
43
 
  name(name), internalAttr(0), externalAttr(0)
 
45
 
 
46
QuaZipNewInfo::QuaZipNewInfo (const QString &name, const QString &file):
 
47
                              name (name),
 
48
                              internalAttr (0),
 
49
                              externalAttr (0)
44
50
{
45
51
  QFileInfo info(file);
46
52
  QDateTime lm = info.lastModified();
47
 
  if (!info.exists())
48
 
    dateTime = QDateTime::currentDateTime();
 
53
  if (! info.exists())
 
54
     dateTime = QDateTime::currentDateTime();
49
55
  else
50
 
    dateTime = lm;
 
56
      dateTime = lm;
51
57
}
52
58
 
53
 
void QuaZipNewInfo::setFileDateTime(const QString& file)
 
59
 
 
60
void QuaZipNewInfo::setFileDateTime (const QString &file)
54
61
{
55
 
  QFileInfo info(file);
 
62
  QFileInfo info (file);
56
63
  QDateTime lm = info.lastModified();
57
64
  if (info.exists())
58
 
    dateTime = lm;
 
65
     dateTime = lm;
59
66
}