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

List:       kde-commits
Subject:    koffice/kexi/plugins/reportspgz (silent)
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2008-12-29 23:10:41
Message-ID: 1230592241.715534.5710.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 903122 by staniek:

SVN_SILENT remove some Qt3 obsoletes and other warnings


 M  +4 -4      backend/common/krchartdata.cpp  
 M  +3 -3      backend/common/krfielddata.cpp  
 M  +1 -1      backend/renderer/orprerender.cpp  
 M  +3 -1      backend/wrtembed/reportentitychart.cpp  
 M  +2 -2      backend/wrtembed/reportsectiondetail.cpp  
 M  +3 -2      kexireportpage.cpp  
 M  +1 -1      kexireportpage.h  
 M  +2 -1      kexireportview.cpp  


--- trunk/koffice/kexi/plugins/reportspgz/backend/common/krchartdata.cpp \
#903121:903122 @@ -161,13 +161,13 @@
     strings << i18n("Default") << i18n("Rainbow") << i18n("Subdued");
     _colorScheme = new KoProperty::Property("ColorScheme", stringkeys, strings, \
"default", i18n("Color Scheme"));  
-    _threeD = new KoProperty::Property("ThreeD", QVariant(false, 0), "3D", "3D");
-    _aa = new KoProperty::Property("Antialiased", QVariant(false, 0), "Antialiased", \
"Antialiased"); +    _threeD = new KoProperty::Property("ThreeD", false, "3D", "3D");
+    _aa = new KoProperty::Property("Antialiased", false, "Antialiased", \
"Antialiased");  
     _xTitle = new KoProperty::Property("XTitle", "", "X Axis Title", "X Axis \
                Title");
     _yTitle = new KoProperty::Property("YTitle", "", "Y Axis Title", "Y Axis \
Title");  
-    _displayLegend = new KoProperty::Property("DisplayLegend", QVariant(true, 0), \
"Display Legend", "Display Legend"); +    _displayLegend = new \
KoProperty::Property("DisplayLegend", true, "Display Legend", "Display Legend");  
     _bgColor = new KoProperty::Property("BackgroundColor", Qt::white, "Background \
Color", "Background Color");  
@@ -469,7 +469,7 @@
             _chartWidget->addLegend(KDChart::Position::East);
             _chartWidget->legend()->setOrientation(Qt::Horizontal);
             _chartWidget->legend()->setTitleText("Legend");
-            for (unsigned int i = 1; i < fn.count(); ++i) {
+            for (uint i = 1; i < (uint)fn.count(); ++i) {
                 _chartWidget->legend()->setText(i - 1, fn[i]);
             }
 
--- trunk/koffice/kexi/plugins/reportspgz/backend/common/krfielddata.cpp \
#903121:903122 @@ -137,9 +137,9 @@
     _lnStyle = new KoProperty::Property("LineStyle", Qt::NoPen, "Line Style", "Line \
Style", KoProperty::LineStyle);  
     //TODO I do not think we need these
-    _trackTotal = new KoProperty::Property("TrackTotal", QVariant(false, 0), "Track \
                Total", "Track Total");
-    _trackBuiltinFormat = new KoProperty::Property("TrackBuiltinFormat", \
                QVariant(false, 0), "Track Builtin Format", "Track Builtin Format");
-    _useSubTotal = new KoProperty::Property("UseSubTotal", QVariant(false, 0), "Use \
Sub Total", "Use Sub Total"); +    _trackTotal = new \
KoProperty::Property("TrackTotal", false, "Track Total", "Track Total"); +    \
_trackBuiltinFormat = new KoProperty::Property("TrackBuiltinFormat", false, "Track \
Builtin Format", "Track Builtin Format"); +    _useSubTotal = new \
                KoProperty::Property("UseSubTotal", false, "Use Sub Total", "Use Sub \
                Total");
     _trackTotalFormat = new KoProperty::Property("TrackTotalFormat", QString(), \
"Track Total Format", "Track Total Format");  
     _set->addProperty(_name);
--- trunk/koffice/kexi/plugins/reportspgz/backend/renderer/orprerender.cpp \
#903121:903122 @@ -854,7 +854,7 @@
 
             bool v = false;
 
-            str = str.lower();
+            str = str.toLower();
 
             kDebug() << "Check Value:" << str;
             if (str == "t" || str == "true" || str == "1")
--- trunk/koffice/kexi/plugins/reportspgz/backend/wrtembed/reportentitychart.cpp \
#903121:903122 @@ -88,7 +88,9 @@
 
     if (_chartWidget) {
         _chartWidget->setFixedSize(_size.toScene().toSize());
-        painter->drawImage(rect().left(), rect().top(), \
QPixmap::grabWidget(_chartWidget), 0, 0, rect().width(), rect().height()); +        \
painter->drawImage(rect().left(), rect().top(),  +            \
QPixmap::grabWidget(_chartWidget).toImage(),  +            0, 0, rect().width(), \
rect().height());  }
     bg.setAlpha(255);
 
--- trunk/koffice/kexi/plugins/reportspgz/backend/wrtembed/reportsectiondetail.cpp \
#903121:903122 @@ -70,7 +70,7 @@
         section.appendChild(spagebreak);
     }
 
-    for (unsigned int i = 0; i < groupList.count(); i++) {
+    for (uint i = 0; i < (uint)groupList.count(); i++) {
         ReportSectionDetailGroup * rsdg = groupList.at(i);
         QDomNode grp = doc.createElement("group");
 
@@ -210,7 +210,7 @@
 {
     // find the item by its name
     ReportSectionDetailGroup * rsd = 0;
-    for (unsigned int i = 0; i < groupList.count(); i++) {
+    for (uint i = 0; i < (uint)groupList.count(); i++) {
         rsd = groupList.at(i);
         if (name == rsd->column()) return i;
     }
--- trunk/koffice/kexi/plugins/reportspgz/kexireportpage.cpp #903121:903122
@@ -31,9 +31,10 @@
 #include <QPainter>
 #include <krscreenrender.h>
 
-KexiReportPage::KexiReportPage(QWidget *parent, const char *name, ORODocument *r)
-        : QWidget(parent, name, Qt::WNoAutoErase)
+KexiReportPage::KexiReportPage(QWidget *parent, ORODocument *r)
+        : QWidget(parent)
 {
+    setAttribute(Qt::WA_NoBackground);
     kDebug() << "CREATED PAGE";
     rpt = r;
     page = 1;
--- trunk/koffice/kexi/plugins/reportspgz/kexireportpage.h #903121:903122
@@ -32,7 +32,7 @@
 {
     Q_OBJECT
 public:
-    KexiReportPage(QWidget *parent, const char *name, ORODocument *r);
+    KexiReportPage(QWidget *parent, ORODocument *r);
 
     ~KexiReportPage();
 
--- trunk/koffice/kexi/plugins/reportspgz/kexireportview.cpp #903121:903122
@@ -226,7 +226,8 @@
         pageCount = doc->pages();
         pageSelector->setRecordCount(pageCount);
 
-        rptwid = new KexiReportPage(this, "Page", doc);
+        rptwid = new KexiReportPage(this, doc);
+        rptwid->setObjectName("KexiReportPage");
         scr->setWidget(rptwid);
 
         tempData()->reportSchemaChangedInPreviousView = false;


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

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