~ubuntu-branches/ubuntu/precise/fritzing/precise

« back to all changes in this revision

Viewing changes to src/utils/fileprogressdialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Georges Khaznadar
  • Date: 2011-08-26 10:11:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110826101105-w5hmn7zcf93ig5v6
Tags: 0.6.3b-1
* upgrapded to the newer upstream version
* parameters of the function GraphicsUtils::distanceFromLine in 
  src/svg/groundplanegenerator.cpp:767 are now declared as doubles,
  which Closes: #636441
* the new version fixes src/utils/folderutils.cpp, which
  Closes: #636061

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
********************************************************************
20
20
 
21
 
$Revision: 5143 $:
 
21
$Revision: 5308 $:
22
22
$Author: cohen@irascible.com $:
23
 
$Date: 2011-07-01 02:37:01 +0200 (Fri, 01 Jul 2011) $
 
23
$Date: 2011-07-30 21:09:56 +0200 (Sat, 30 Jul 2011) $
24
24
 
25
25
********************************************************************/
26
26
 
131
131
 
132
132
void FileProgressDialog::loadingInstancesSlot(class ModelBase *, QDomElement & instances)
133
133
{
134
 
        m_binLoadingValue = m_binLoadingStart + (++m_binLoadingIndex * m_binLoadingChunk / (qreal) m_binLoadingCount);
 
134
        m_binLoadingValue = m_binLoadingStart + (++m_binLoadingIndex * m_binLoadingChunk / (double) m_binLoadingCount);
135
135
        setValue(m_binLoadingValue);
136
136
 
137
137
        int count = instances.childNodes().count();
138
138
 
139
139
        // * 3 comes from: once for model part load, once for list view, once for icon view
140
 
        m_binLoadingInc = m_binLoadingChunk / (qreal) (m_binLoadingCount * 3 * count);
 
140
        m_binLoadingInc = m_binLoadingChunk / (double) (m_binLoadingCount * 3 * count);
141
141
}
142
142
                
143
143
void FileProgressDialog::loadingInstanceSlot(class ModelBase *, QDomElement & instance)