This should finally fix the remaining font issues, caused by not having explicitely...
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 9 Apr 2008 11:02:22 +0000 (11:02 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 9 Apr 2008 11:02:22 +0000 (11:02 +0000)
a font for the default format. Even though the docs say that "the default font is used" in that
case, obviously it wasn't used correctly...
Now even fresh installs (with no custom font set) should display correctly. Please let me know
if that also works on Windows and MacOSX, or if any issues remain.

src/uisupport/uistyle.cpp
version.inc

index cbf2eca..94c9742 100644 (file)
@@ -17,6 +17,7 @@
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
+#include <QApplication>
 
 #include "uistyle.h"
 #include "uistylesettings.h"
 
 #include "uistyle.h"
 #include "uistylesettings.h"
@@ -25,7 +26,7 @@ UiStyle::UiStyle(const QString &settingsKey) : _settingsKey(settingsKey) {
   // Default format
   QTextCharFormat def;
   def.setForeground(QBrush("#000000"));
   // Default format
   QTextCharFormat def;
   def.setForeground(QBrush("#000000"));
-  //def.setFont(QFont("Mono", 10));
+  def.setFont(QFont("Monospace", QApplication::font().pointSize()));
   def.font().setFixedPitch(true);
   def.font().setStyleHint(QFont::TypeWriter);
   _defaultFormats = QVector<QTextCharFormat>(NumFormatTypes, def);
   def.font().setFixedPitch(true);
   def.font().setStyleHint(QFont::TypeWriter);
   _defaultFormats = QVector<QTextCharFormat>(NumFormatTypes, def);
index 404720b..4481b18 100644 (file)
@@ -5,7 +5,7 @@
 
   quasselVersion = "0.2.0-alpha5-pre";
   quasselDate = "2008-04-09";
 
   quasselVersion = "0.2.0-alpha5-pre";
   quasselDate = "2008-04-09";
-  quasselBuild = 715;
+  quasselBuild = 716;
 
   //! Minimum client build number the core needs
   clientBuildNeeded = 642;
 
   //! Minimum client build number the core needs
   clientBuildNeeded = 642;