[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/plasma/applets/notes
From:       Sebastian Kügler <sebas () kde ! nl>
Date:       2008-05-13 16:06:11
Message-ID: 1210694771.001203.9775.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 807323 by sebas:

Make manual fontsize setting actually work.


 M  +6 -2      notes.cpp  


--- trunk/extragear/plasma/applets/notes/notes.cpp #807322:807323
@@ -90,7 +90,7 @@
     setLayout(m_layout);
     updateTextGeometry();
     connect(m_textEdit, SIGNAL(textChanged()), this, SLOT(saveNote()));
-    connect(this, SIGNAL(clicked()), this, SLOT(focusNote()));
+    //connect(this, SIGNAL(clicked()), this, SLOT(focusNote()));
     focusNote();
 }
 
@@ -182,16 +182,20 @@
         m_textEdit->setFont(newFont);
     }
 
-    if (m_autoFont == ui.autoFont->isChecked()) {
+    if (m_autoFont != ui.autoFont->isChecked()) {
         changed = true;
         m_autoFont = ui.autoFont->isChecked();
         cg.writeEntry("autoFont", m_autoFont);
+        m_font.setPointSize(fontSize());
     }
 
     if (m_autoFontPercent != ui.autoFontPercent->value()) {
         changed = true;
         m_autoFontPercent = (ui.autoFontPercent->value());
         cg.writeEntry("autoFontPercent", m_autoFontPercent);
+        if (m_autoFont) {
+            m_font.setPointSize(fontSize());
+        }
     }
 
     QColor newColor = ui.textColorButton->color();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic