From: <j-...@us...> - 2010-08-30 22:22:25
|
Revision: 4788 http://kdenlive.svn.sourceforge.net/kdenlive/?rev=4788&view=rev Author: j-b-m Date: 2010-08-30 22:22:19 +0000 (Mon, 30 Aug 2010) Log Message: ----------- effect stack: small ui fixes Modified Paths: -------------- trunk/kdenlive/src/effectstackview.cpp Modified: trunk/kdenlive/src/effectstackview.cpp =================================================================== --- trunk/kdenlive/src/effectstackview.cpp 2010-08-30 22:14:24 UTC (rev 4787) +++ trunk/kdenlive/src/effectstackview.cpp 2010-08-30 22:22:19 UTC (rev 4788) @@ -169,7 +169,15 @@ } else { m_clipref = c; if (c) { - m_ui.checkAll->setText(i18n("Effects for %1").arg(m_clipref->clipName())); + QString cname = m_clipref->clipName(); + if (cname.length() > 20) { + m_ui.checkAll->setToolTip(i18n("Effects for %1").arg(cname)); + cname.truncate(17); + m_ui.checkAll->setText(i18n("Effects for %1").arg(cname) + "..."); + } else { + m_ui.checkAll->setToolTip(QString()); + m_ui.checkAll->setText(i18n("Effects for %1").arg(cname)); + } ix = c->selectedEffectIndex(); QString size = c->baseClip()->getProperty("frame_size"); double factor = c->baseClip()->getProperty("aspect_ratio").toDouble(); @@ -184,6 +192,8 @@ m_effectedit->transferParamDesc(QDomElement(), 0, 0, 0); //m_ui.region_url->clear(); m_ui.effectlist->blockSignals(false); + m_ui.checkAll->setToolTip(QString()); + m_ui.checkAll->setText(QString()); setEnabled(false); return; } @@ -200,6 +210,7 @@ m_currentEffectList = info.effectsList; kDebug() << "// TRACK; " << ix << ", EFFECTS: " << m_currentEffectList.count(); setEnabled(true); + m_ui.checkAll->setToolTip(QString()); m_ui.checkAll->setText(i18n("Effects for track %1").arg(info.trackName.isEmpty() ? QString::number(ix) : info.trackName)); m_trackindex = ix; setupListView(0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |