[Konsole-devel] [Bug 98865] Konsole should use KGlobalSettings::fixedFont(); instead of "fixed"

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Tue Feb 8 18:01:09 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=98865         
kurt.hindenburg kdemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      everconfirmed|0                           |1



------- Additional Comments From kurt.hindenburg kdemail net  2005-02-08 19:01 -------
Perhaps this is a bug?  I wonder if unicode should be changed...

Index: konsole.cpp
===================================================================
RCS file: /home/kde/kdebase/konsole/konsole/konsole.cpp,v
retrieving revision 1.505
diff -u -p -r1.505 konsole.cpp
--- konsole.cpp 2 Feb 2005 07:03:49 -0000       1.505
+++ konsole.cpp 8 Feb 2005 17:56:26 -0000
 @ -1534,9 +1534,7  @ void Konsole::readProperties(KConfig* co
       // Options that should be applied to all sessions /////////////

       // (1) set menu items and Konsole members
-      QFont tmpFont("fixed");
-      tmpFont.setFixedPitch(true);
-      tmpFont.setStyleHint(QFont::TypeWriter);
+      QFont tmpFont = KGlobalSettings::fixedFont();
       defaultFont = config->readFontEntry("defaultfont", &tmpFont);

       //set the schema
 @ -1804,10 +1802,7  @ void Konsole::setFont(int fontno)
   }
   else
   {
-    QFont f;
-    f.setFamily("fixed");
-    f.setFixedPitch(true);
-    f.setStyleHint(QFont::TypeWriter);
+    QFont f = KGlobalSettings::fixedFont();
     f.setPixelSize(QString(fonts[fontno]).toInt());
     te->setVTFont(f);
   }



More information about the konsole-devel mailing list