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

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Fri Jun 9 16:25:49 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         
kurt.hindenburg kdemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From kurt.hindenburg kdemail net  2006-06-09 18:25 -------
SVN commit 549730 by hindenburg:

Add DCOP calls setFont() and font().

BUG: 123325


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


--- branches/KDE/3.5/kdebase/konsole/konsole/session.cpp #549729:549730
 @ -764,6 +764,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();
--- branches/KDE/3.5/kdebase/konsole/konsole/session.h #549729:549730
 @ -113,6 +113,8  @
   void setKeytab(const QString &keytab);
   QSize size();
   void setSize(QSize size);
+  void setFont(const QString &font);
+  QString font();
 
 public slots:
 
--- branches/KDE/3.5/kdebase/konsole/konsole/sessioniface.h #549729:549730
 @ -24,6 +24,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