[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kplato
From: Dag Andersen <danders () get2net ! dk>
Date: 2010-09-10 9:37:07
Message-ID: 20100910093707.847B2AC884 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1173731 by danders:
Remove warnings, depreciated and unused files.
M +5 -5 kptview.cpp
M +1 -1 libs/kernel/kptcommand.cpp
M +0 -1 libs/kernel/kptresource.cpp
M +0 -1 libs/models/CMakeLists.txt
D libs/models/kptabstractchartmodel.cpp
D libs/models/kptabstractchartmodel.h
M +1 -1 libs/models/kptnodechartmodel.cpp
M +1 -2 libs/models/kptnodechartmodel.h
M +1 -1 libs/models/kptresourceallocationmodel.cpp
M +1 -1 libs/models/kptresourceallocationmodel.h
D libs/ui/kptplotwidget.cpp
D libs/ui/kptplotwidget.h
M +1 -1 plugins/schedulers/rcps/KPlatoRCPSPlugin.cpp
M +1 -1 plugins/schedulers/rcps/KPlatoRCPSScheduler.cpp
--- trunk/koffice/kplato/kptview.cpp #1173730:1173731
@@ -374,13 +374,13 @@
KTemporaryFile tempFile;
tempFile.setSuffix( ".kplatot" );
//Check that creation of temp file was successful
- if ( tempFile.status() != 0 ) {
- qWarning("Creation of temprary file to store template failed.");
+ if ( ! tempFile.open() ) {
+ kWarning()<<"Creation of temprary file to store template failed.";
return;
}
-
- getPart()->saveNativeFormat( tempFile.name() );
- KoTemplateCreateDia::createTemplate( "kplato_template", Factory::global(), \
tempFile.name(), pix, this ); + kDebug()<<"Created temporaray \
file:"<<tempFile.fileName(); + getPart()->saveNativeFormat( tempFile.fileName() );
+ KoTemplateCreateDia::createTemplate( "kplato_template", Factory::global(), \
tempFile.fileName(), pix, this ); }
void View::createViews()
--- trunk/koffice/kplato/libs/kernel/kptcommand.cpp #1173730:1173731
@@ -2878,7 +2878,7 @@
}
DeleteScheduleManagerCmd::DeleteScheduleManagerCmd( Project &node, ScheduleManager \
*sm, const QString& name )
- : AddScheduleManagerCmd( node, sm )
+ : AddScheduleManagerCmd( node, sm, -1, name )
{
m_mine = false;
m_index = m_parent ? m_parent->indexOf( sm ) : node.indexOf( sm );
--- trunk/koffice/kplato/libs/kernel/kptresource.cpp #1173730:1173731
@@ -767,7 +767,6 @@
}
void Resource::makeAppointment(Schedule *node, const DateTime &from, const DateTime \
&end, int load, const QList<Resource*> &required ) {
- KLocale *locale = KGlobal::locale();
//kDebug()<<"node id="<<node->id()<<" \
mode="<<node->calculationMode()<<""<<from<<" -"<<end; if (!from.isValid() || \
!end.isValid()) {
m_currentSchedule->logWarning( i18n( "Make appointments: Invalid time" ) );
--- trunk/koffice/kplato/libs/models/CMakeLists.txt #1173730:1173731
@@ -19,7 +19,6 @@
kcalendar/kdatetable.cpp
kcalendar/kdatepicker.cpp
- kptabstractchartmodel.cpp
kptnodechartmodel.cpp
kptflatproxymodel.cpp
--- trunk/koffice/kplato/libs/models/kptnodechartmodel.cpp #1173730:1173731
@@ -1,5 +1,5 @@
/* This file is part of the KOffice project
- * Copyright (c) 2008 Dag Andersen <kplato@kde.org>
+ * Copyright (c) 2008 Dag Andersen <danders@get2net.dk>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
--- trunk/koffice/kplato/libs/models/kptnodechartmodel.h #1173730:1173731
@@ -1,5 +1,5 @@
/* This file is part of the KOffice project
- * Copyright (c) 2008 Dag Andersen <kplato@kde.org>
+ * Copyright (c) 2008 Dag Andersen <danders@get2net.dk>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -22,7 +22,6 @@
#include "kplatomodels_export.h"
-#include "kptabstractchartmodel.h"
#include "kptitemmodelbase.h"
#include "kpteffortcostmap.h"
--- trunk/koffice/kplato/libs/models/kptresourceallocationmodel.cpp #1173730:1173731
@@ -960,7 +960,7 @@
}
}
-const QList<Resource*> &ResourceAllocationItemModel::required( const QModelIndex \
&idx ) const +QList<Resource*> ResourceAllocationItemModel::required( const \
QModelIndex &idx ) const {
Resource *r = resource( idx );
Q_ASSERT( r );
--- trunk/koffice/kplato/libs/models/kptresourceallocationmodel.h #1173730:1173731
@@ -128,7 +128,7 @@
Resource *resource( const QModelIndex &idx ) const;
void setRequired( const QModelIndex &idx, const QList<Resource*> &lst );
- const QList<Resource*> &required( const QModelIndex &idx ) const;
+ QList<Resource*> required( const QModelIndex &idx ) const;
protected slots:
void slotResourceChanged( Resource* );
--- trunk/koffice/kplato/plugins/schedulers/rcps/KPlatoRCPSPlugin.cpp \
#1173730:1173731 @@ -140,7 +140,7 @@
}
}
-void KPlatoRCPSPlugin::slotStarted( SchedulerThread *job )
+void KPlatoRCPSPlugin::slotStarted( SchedulerThread */*job*/ )
{
// qDebug()<<"KPlatoRCPSPlugin::slotStarted:";
}
--- trunk/koffice/kplato/plugins/schedulers/rcps/KPlatoRCPSScheduler.cpp \
#1173730:1173731 @@ -572,7 +572,7 @@
if ( n->type() != Node::Type_Task && n->type() != Node::Type_Milestone ) {
continue;
}
- struct rcps_job *job = addTask( static_cast<Task*>( n ) );
+ addTask( static_cast<Task*>( n ) );
}
// Add an end job
m_jobend = rcps_job_new();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic