logo       

koffice/karbon/plugins/tools/filterEffectTool: msg#13086

kde-commits

Subject: koffice/karbon/plugins/tools/filterEffectTool

SVN commit 1005369 by jaham:

fix some krazy issues



M +2 -2 FilterInputChangeCommand.cpp
M +3 -2 FilterInputChangeCommand.h


---
trunk/koffice/karbon/plugins/tools/filterEffectTool/FilterInputChangeCommand.cpp
#1005368:1005369
@@ -38,7 +38,7 @@
if (m_shape)
m_shape->update();

- foreach(InputChangeData data, m_data) {
+ foreach(const InputChangeData &data, m_data) {
data.filterEffect->setInput(data.inputIndex, data.newInput);
}

@@ -53,7 +53,7 @@
if (m_shape)
m_shape->update();

- foreach(InputChangeData data, m_data) {
+ foreach(const InputChangeData &data, m_data) {
data.filterEffect->setInput(data.inputIndex, data.oldInput);
}

---
trunk/koffice/karbon/plugins/tools/filterEffectTool/FilterInputChangeCommand.h
#1005368:1005369
@@ -38,12 +38,13 @@
QString newInput;
};

+/// A command to change the input of a filter effect
class FilterInputChangeCommand : public QUndoCommand
{
public:
- FilterInputChangeCommand( const InputChangeData &data, KoShape *shape = 0,
QUndoCommand *parent = 0);
+ explicit FilterInputChangeCommand( const InputChangeData &data, KoShape
*shape = 0, QUndoCommand *parent = 0);

- FilterInputChangeCommand( const QList<InputChangeData> &data, KoShape *
shape = 0, QUndoCommand *parent = 0);
+ explicit FilterInputChangeCommand( const QList<InputChangeData> &data,
KoShape * shape = 0, QUndoCommand *parent = 0);

/// redo the command
virtual void redo();

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise