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

« back to all changes in this revision

Viewing changes to src/items/perfboard.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: 5189 $:
 
21
$Revision: 5375 $:
22
22
$Author: cohen@irascible.com $:
23
 
$Date: 2011-07-06 16:09:51 +0200 (Wed, 06 Jul 2011) $
 
23
$Date: 2011-08-08 21:38:25 +0200 (Mon, 08 Aug 2011) $
24
24
 
25
25
********************************************************************/
26
26
 
33
33
#include "../sketch/infographicsview.h"
34
34
#include "../svg/svgfilesplitter.h"
35
35
#include "../commands.h"
36
 
#include "../layerattributes.h"
37
36
#include "moduleidnames.h"
38
37
#include "partlabel.h"
39
38
 
124
123
 
125
124
        QString middle;
126
125
        QString holes;
127
 
        qreal radius = 17.5;
 
126
        double radius = 17.5;
128
127
        int sweepflag = 0;
129
128
 
130
129
        int top = 100;
309
308
}
310
309
 
311
310
void Perfboard::enableSetButton() {
312
 
        QLineEdit * edit = dynamic_cast<QLineEdit *>(sender());
 
311
        QLineEdit * edit = qobject_cast<QLineEdit *>(sender());
313
312
        if (edit == NULL) return;
314
313
 
315
314
        int x, y;