Commit 49538b35 authored by Marijn Kruisselbrink's avatar Marijn Kruisselbrink

some small changes/fixes to various classes; remove some debug info (that...

some small changes/fixes to various classes; remove some debug info (that introduced a needless dependency on kde in the core classes)

svn path=/trunk/koffice/; revision=923127
parent 85370327
...@@ -36,8 +36,7 @@ ...@@ -36,8 +36,7 @@
#include <QtCore/QList> #include <QtCore/QList>
#include <QtCore/QVarLengthArray> #include <QtCore/QVarLengthArray>
#include <QtCore/QMultiMap>
#include <kdebug.h>
#ifndef log2 #ifndef log2
# define log2(x) (log(x) / M_LN2) # define log2(x) (log(x) / M_LN2)
...@@ -57,7 +56,7 @@ void Engraver::engraveSheet(Sheet* sheet, int firstSystem, QSizeF size, bool doE ...@@ -57,7 +56,7 @@ void Engraver::engraveSheet(Sheet* sheet, int firstSystem, QSizeF size, bool doE
firstBar = sheet->staffSystem(firstSystem)->firstBar(); firstBar = sheet->staffSystem(firstSystem)->firstBar();
} }
kDebug() << "Engraving from firstSystem:" << firstSystem << "firstBar:" << firstBar; //kDebug() << "Engraving from firstSystem:" << firstSystem << "firstBar:" << firstBar;
if (doEngraveBars || true) { if (doEngraveBars || true) {
// engrave all bars in the sheet // engrave all bars in the sheet
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "Voice.h" #include "Voice.h"
#include "Sheet.h" #include "Sheet.h"
#include <QtCore/QList> #include <QtCore/QList>
#include <kdebug.h>
namespace MusicCore { namespace MusicCore {
......
...@@ -36,7 +36,7 @@ public: ...@@ -36,7 +36,7 @@ public:
QList<StaffSystem*> staffSystems; QList<StaffSystem*> staffSystems;
}; };
Sheet::Sheet() : d(new Private) Sheet::Sheet(QObject* parent) : QObject(parent), d(new Private)
{ {
} }
......
...@@ -44,7 +44,7 @@ public: ...@@ -44,7 +44,7 @@ public:
/** /**
* Constructor, this will create a sheet containing no parts. * Constructor, this will create a sheet containing no parts.
*/ */
Sheet(); explicit Sheet(QObject* parent = 0);
/** /**
* Destructor. * Destructor.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment