Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

indentation fixes

svn path=/branches/KDE4/; revision=2643
parent 8acf863e
......@@ -331,11 +331,11 @@ void RenderWidget::slotDeleteProfile() {
void RenderWidget::focusFirstVisibleItem() {
if (m_view.size_list->currentItem() && !m_view.size_list->currentItem()->isHidden()) return;
for (uint ix = 0; ix < m_view.size_list->count(); ix++) {
QListWidgetItem *item = m_view.size_list->item(ix);
if (item && !item->isHidden()) {
m_view.size_list->setCurrentRow(ix);
break;
}
QListWidgetItem *item = m_view.size_list->item(ix);
if (item && !item->isHidden()) {
m_view.size_list->setCurrentRow(ix);
break;
}
}
if (!m_view.size_list->currentItem()) m_view.size_list->setCurrentRow(0);
}
......@@ -374,7 +374,7 @@ void RenderWidget::setDocumentStandard(QString std) {
void RenderWidget::refreshView() {
QListWidgetItem *item = m_view.format_list->currentItem();
if (!item) {
m_view.format_list->setCurrentRow(0);
m_view.format_list->setCurrentRow(0);
item = m_view.format_list->currentItem();
}
if (!item) return;
......
......@@ -498,16 +498,15 @@ int TrackView::slotAddProjectTrack(int ix, QDomElement xml, bool videotrack) {
if (!continueParsing) {
n2 = lastParsedEffect;
}
} else {
// Check if effect has in/out points
if (effect.hasAttribute("in")) {
EffectsList::setParameter(currenteffect, "in", effect.attribute("in"));
}
if (effect.hasAttribute("out")) {
EffectsList::setParameter(currenteffect, "out", effect.attribute("out"));
}
}
else {
// Check if effect has in/out points
if (effect.hasAttribute("in")) {
EffectsList::setParameter(currenteffect, "in", effect.attribute("in"));
}
if (effect.hasAttribute("out")) {
EffectsList::setParameter(currenteffect, "out", effect.attribute("out"));
}
}
// adjust effect parameters
for (QDomNode n3 = effect.firstChild(); !n3.isNull(); n3 = n3.nextSibling()) {
......
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