[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Sun Oct 30 19:46:15 CET 2005
SVN commit 475833 by staikos:
fix indenting
M +19 -19 matrixselector.ui.h
--- trunk/extragear/graphics/kst/kst/matrixselector.ui.h #475832:475833
@@ -17,7 +17,7 @@
QString MatrixSelector::selectedMatrix()
{
if (_provideNoneMatrix && _matrix->currentItem() == 0) {
- return QString::null;
+ return QString::null;
}
return _matrix->currentText();
}
@@ -26,8 +26,8 @@
void MatrixSelector::update()
{
if (_matrix->listBox()->isVisible()) {
- QTimer::singleShot(250, this, SLOT(update()));
- return;
+ QTimer::singleShot(250, this, SLOT(update()));
+ return;
}
blockSignals(true);
@@ -35,18 +35,18 @@
bool found = false;
_matrix->clear();
if (_provideNoneMatrix) {
- _matrix->insertItem("<None>");
+ _matrix->insertItem("<None>");
}
-
+
KstMatrixList matrices = KST::matrixList;
for (KstMatrixList::Iterator i = matrices.begin(); i != matrices.end(); ++i) {
- _matrix->insertItem((*i)->tagName());
- if (!found && (*i)->tagName() == prev) {
- found = true;
- }
+ _matrix->insertItem((*i)->tagName());
+ if (!found && (*i)->tagName() == prev) {
+ found = true;
+ }
}
if (found) {
- _matrix->setCurrentText(prev);
+ _matrix->setCurrentText(prev);
}
blockSignals(false);
setEdit(_matrix->currentText());
@@ -84,13 +84,13 @@
void MatrixSelector::setSelection( const QString & tag )
{
if (tag.isEmpty()) {
- if (_provideNoneMatrix) {
- blockSignals(true);
- _matrix->setCurrentItem(0);
- blockSignals(false);
- _editMatrix->setEnabled(false);
- }
- return;
+ if (_provideNoneMatrix) {
+ blockSignals(true);
+ _matrix->setCurrentItem(0);
+ blockSignals(false);
+ _editMatrix->setEnabled(false);
+ }
+ return;
}
blockSignals(true);
_matrix->setCurrentText(tag); // What if it isn't in the combo?
@@ -117,8 +117,8 @@
void MatrixSelector::provideNoneMatrix( bool provide )
{
if (provide != _provideNoneMatrix) {
- _provideNoneMatrix = provide;
- update();
+ _provideNoneMatrix = provide;
+ update();
}
}
More information about the Kst
mailing list