[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/koffice-ko/filters/kspread
From:       Carlos Licea <carlos_licea () hotmail ! com>
Date:       2010-04-09 3:23:44
Message-ID: 20100409032344.618C8AC892 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1112756 by clicea:

Change everything to qreals as requested.


 M  +5 -5      excel/import/excelimport.cc  
 M  +1 -1      xlsx/ChartExport.h  


--- branches/work/koffice-ko/filters/kspread/excel/import/excelimport.cc #1112755:1112756
@@ -63,32 +63,32 @@
     return qHash(string(font.fontFamily())) ^ qRound(font.fontSize() * 100);
 }
 
-float offset( unsigned long dimension, unsigned long offset ) {
+qreal offset( unsigned long dimension, unsigned long offset ) {
     return (float)dimension * (float)offset / 1024.0;
 }
 
-float columnStart(Sheet* sheet, unsigned long col) {
+qreal columnStart(Sheet* sheet, unsigned long col) {
     double columnStart = 0;
     for( int i = 0; i < col; ++i )
         columnStart += sheet->column(i)->width();
     return columnStart;
 }
 
-float rowStart(Sheet* sheet, unsigned long row) {
+qreal rowStart(Sheet* sheet, unsigned long row) {
     double rowStart = 0;
     for( int i = 0; i < row; ++i )
         rowStart += sheet->row(i)->height();
     return rowStart;
 }
 
-float columnDistance(Sheet* sheet, unsigned long col1, unsigned long col2) {
+qreal columnDistance(Sheet* sheet, unsigned long col1, unsigned long col2) {
     double columnDistance = 0.0;
     for( unsigned long i = col1; i < col2; ++i )
         columnDistance += sheet->column(i)->width();
     return columnDistance;
 }
 
-float rowDistance(Sheet* sheet, unsigned long row1, unsigned long row2) {
+qreal rowDistance(Sheet* sheet, unsigned long row1, unsigned long row2) {
     double rowDistance = 0.0;
     for( unsigned long i = row1; i < row2; ++i )
         rowDistance += sheet->row(i)->height();
--- branches/work/koffice-ko/filters/kspread/xlsx/ChartExport.h #1112755:1112756
@@ -48,7 +48,7 @@
     /// anchored to cell
     //unsigned long m_colL, m_rwT;
 #endif
-    float m_x, m_y, m_width, m_height; //in pt
+    qreal m_x, m_y, m_width, m_height; //in pt
 
     bool saveIndex(KoXmlWriter* xmlWriter);
     bool saveContent(KoStore* store, KoXmlWriter* manifestWriter);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic