[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Wed Jun 22 17:26:18 CEST 2005
SVN commit 427987 by staikos:
cleanup iteration and constness a bit.
M +2 -2 kstlegend.cpp
M +2 -2 kstlegend.h
M +1 -1 matrixselector.ui
M +1 -1 matrixselector.ui.h
M +1 -1 vectorselector.ui
M +1 -1 vectorselector.ui.h
--- trunk/extragear/graphics/kst/kst/kstlegend.cpp #427986:427987
@@ -104,11 +104,11 @@
bFront = in_bFront;
}
-void KstLegend::setColorBackground(QColor in_color) {
+void KstLegend::setColorBackground(const QColor& in_color) {
colorBackground = in_color;
}
-void KstLegend::setColorForeground(QColor in_color) {
+void KstLegend::setColorForeground(const QColor& in_color) {
colorForeground = in_color;
}
--- trunk/extragear/graphics/kst/kst/kstlegend.h #427986:427987
@@ -36,9 +36,9 @@
bool getShow() const { return ShowLegend; }
void setFront(bool in_bFront);
bool getFront() const { return bFront; }
- void setColorBackground( QColor in_color );
+ void setColorBackground( const QColor& in_color );
const QColor& getColorBackground() const { return colorBackground; }
- void setColorForeground( QColor in_color );
+ void setColorForeground( const QColor& in_color );
const QColor& getColorForeground() const { return colorForeground; }
void setLayout(KstLegendLayoutType type) { LayoutType = type; }
void setAlignment(KstLegendAlignmentType type) { AlignmentType = type; }
--- trunk/extragear/graphics/kst/kst/matrixselector.ui #427986:427987
@@ -130,7 +130,7 @@
<slot>setSelection( KstMatrixPtr v )</slot>
<slot>provideNoneMatrix( bool provide )</slot>
<slot>editMatrix()</slot>
- <slot>setEdit( QString tag )</slot>
+ <slot>setEdit( const QString& tag )</slot>
</slots>
<functions>
<function returnType="QString">selectedMatrix()</function>
--- trunk/extragear/graphics/kst/kst/matrixselector.ui.h #427986:427987
@@ -128,7 +128,7 @@
}
-void MatrixSelector::setEdit(QString tag)
+void MatrixSelector::setEdit(const QString& tag)
{
KstMatrixList matrices = kstObjectSubList<KstDataObject, KstMatrix>(KST::dataObjectList);
_editMatrix->setEnabled(matrices.findTag(tag) != matrices.end());
--- trunk/extragear/graphics/kst/kst/vectorselector.ui #427986:427987
@@ -135,7 +135,7 @@
<slot>setSelection( KstVectorPtr v )</slot>
<slot>provideNoneVector( bool provide )</slot>
<slot>editVector()</slot>
- <slot>setEdit( QString tag )</slot>
+ <slot>setEdit( const QString& tag )</slot>
</slots>
<functions>
<function returnType="QString">selectedVector()</function>
--- trunk/extragear/graphics/kst/kst/vectorselector.ui.h #427986:427987
@@ -132,7 +132,7 @@
KstVectorDialogI::globalInstance()->show_Edit(_vector->currentText());
}
-void VectorSelector::setEdit( QString tag)
+void VectorSelector::setEdit( const QString& tag )
{
KST::vectorList.lock().readLock();
KstRVectorPtr rvp = kst_cast<KstRVector>(*KST::vectorList.findTag(tag));
More information about the Kst
mailing list