]> git.sesse.net Git - kdenlive/commitdiff
Vectorscope:
authorSimon A. Eugster <simon.eu@gmail.com>
Mon, 16 Aug 2010 09:48:50 +0000 (09:48 +0000)
committerSimon A. Eugster <simon.eu@gmail.com>
Mon, 16 Aug 2010 09:48:50 +0000 (09:48 +0000)
* Remember paint modes as well
* Always draw the mouse circle in light grey if it is outside the background (black is nearly invisible then)

svn path=/trunk/kdenlive/; revision=4727

src/vectorscope.cpp

index 1c38d7ab8610a704e3f7fa0267e872336ac699d1..c25ef10d9d41e4cd294dfaea3d8c5b64deaa1a10 100644 (file)
@@ -125,6 +125,8 @@ void Vectorscope::readConfig()
     KConfigGroup scopeConfig(config, configName());
     m_a75PBox->setChecked(scopeConfig.readEntry("75PBox", false));
     m_aAxisEnabled->setChecked(scopeConfig.readEntry("axis", false));
+    ui->backgroundMode->setCurrentIndex(scopeConfig.readEntry("backgroundmode").toInt());
+    ui->paintMode->setCurrentIndex(scopeConfig.readEntry("paintmode").toInt());
 }
 
 void Vectorscope::writeConfig()
@@ -133,6 +135,8 @@ void Vectorscope::writeConfig()
     KConfigGroup scopeConfig(config, configName());
     scopeConfig.writeEntry("75PBox", m_a75PBox->isChecked());
     scopeConfig.writeEntry("axis", m_aAxisEnabled->isChecked());
+    scopeConfig.writeEntry("backgroundmode", ui->backgroundMode->currentIndex());
+    scopeConfig.writeEntry("paintMode", ui->paintMode->currentIndex());
     scopeConfig.sync();
 }
 
@@ -195,7 +199,11 @@ QImage Vectorscope::renderHUD(uint)
             davinci.setPen(penLight);
             break;
         default:
-            davinci.setPen(penDark);
+            if (r > cw/2) {
+                davinci.setPen(penLight);
+            } else {
+                davinci.setPen(penDark);
+            }
             break;
         }
         davinci.drawEllipse(m_centerPoint, (int)r, (int)r);