[Konsole-devel] [Bug 123325] Font changing with DCOP or Schema

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Sat May 6 16:52:07 UTC 2006


------- 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=123325         




------- Additional Comments From kurt.hindenburg kdemail net  2006-05-06 18:52 -------
SVN commit 538057 by hindenburg:

Add DCOP calls for font.  Can not test on /trunk right now.

CCBUG: 123325


 M  +14 -0     session.cpp  
 M  +2 -0      session.h  
 M  +2 -0      sessioniface.h  


--- trunk/KDE/kdebase/apps/konsole/konsole/session.cpp #538056:538057
 @ -750,6 +750,20  @
   emit setSessionSchema(this, schema);
 }
 
+QString TESession::font()
+{
+  return te->getVTFont().toString();
+}
+
+void TESession::setFont(const QString &font)
+{
+  QFont tmp;
+  if (tmp.fromString(font))
+    te->setVTFont(tmp);
+  else
+    kdWarning()<<"unknown font: "<<font<<endl;
+}
+
 QString TESession::encoding()
 {
   return em->codec()->name();
--- trunk/KDE/kdebase/apps/konsole/konsole/session.h #538056:538057
 @ -114,6 +114,8  @
   void setKeytab(const QString &keytab);
   QSize size();
   void setSize(QSize size);
+  void setFont(const QString &font);
+  QString font();
 
 public Q_SLOTS:
 
--- trunk/KDE/kdebase/apps/konsole/konsole/sessioniface.h #538056:538057
 @ -25,6 +25,8  @
     virtual void setKeytab(const QString &keyboard) =0;
     virtual QSize size() =0;
     virtual void setSize(QSize size) =0;
+    virtual QString font() =0;
+    virtual void setFont(const QString &font) =0;
 };
 
 #endif // SESSIONIFACE_H



More information about the konsole-devel mailing list