Say hello to the first settings page in our shiny new, almost working SettingsDlg...
[quassel.git] / src / qtopia / qtopiauistyle.cpp
index 88dd921..5876eae 100644 (file)
  ***************************************************************************/
 
 #include "qtopiauistyle.h"
+#include "settings.h"
 
-QtopiaUiStyle::QtopiaUiStyle() : UiStyle() {
+QtopiaUiStyle::QtopiaUiStyle() : UiStyle("QtopiaUiStyle") {
 
   QTextCharFormat def;
   def.setForeground(QBrush("#000000"));
   def.setFont(QFont("Verdana",5));
-  setFormat(None, def);
+  setFormat(None, def, Settings::Default);
 
   // We need to just set our internal formats; everything else is done by the base class...
 
@@ -33,81 +34,81 @@ QtopiaUiStyle::QtopiaUiStyle() : UiStyle() {
 
   QTextCharFormat plainMsg;
   plainMsg.setForeground(QBrush("#000000"));
-  setFormat(PlainMsg, plainMsg);
+  setFormat(PlainMsg, plainMsg, Settings::Default);
 
   QTextCharFormat notice;
   notice.setForeground(QBrush("#000080"));
-  setFormat(NoticeMsg, notice);
+  setFormat(NoticeMsg, notice, Settings::Default);
 
   QTextCharFormat server;
   server.setForeground(QBrush("#000080"));
-  setFormat(ServerMsg, server);
+  setFormat(ServerMsg, server, Settings::Default);
 
   QTextCharFormat error;
   error.setForeground(QBrush("#ff0000"));
-  setFormat(ErrorMsg, error);
+  setFormat(ErrorMsg, error, Settings::Default);
 
   QTextCharFormat join;
   join.setForeground(QBrush("#008000"));
-  setFormat(JoinMsg, join);
+  setFormat(JoinMsg, join, Settings::Default);
 
   QTextCharFormat part;
   part.setForeground(QBrush("#ff0000"));
-  setFormat(PartMsg, part);
+  setFormat(PartMsg, part, Settings::Default);
 
   QTextCharFormat quit;
   quit.setForeground(QBrush("#ff0000"));
-  setFormat(QuitMsg, quit);
+  setFormat(QuitMsg, quit, Settings::Default);
 
   QTextCharFormat kick;
   kick.setForeground(QBrush("#ff0000"));
-  setFormat(KickMsg, kick);
+  setFormat(KickMsg, kick, Settings::Default);
 
   QTextCharFormat nren;
   nren.setForeground(QBrush("#6a5acd"));
-  setFormat(RenameMsg, nren);
+  setFormat(RenameMsg, nren, Settings::Default);
 
   QTextCharFormat mode;
   mode.setForeground(QBrush("#4682b4"));
-  setFormat(ModeMsg, mode);
+  setFormat(ModeMsg, mode, Settings::Default);
 
   QTextCharFormat action;
   action.setFontItalic(true);
   action.setForeground(QBrush("#8b008b"));
-  setFormat(ActionMsg, action);
+  setFormat(ActionMsg, action, Settings::Default);
 
   // Internal message element formats
   QTextCharFormat ts;
   ts.setForeground(QBrush("#808080"));
-  setFormat(Timestamp, ts);
+  setFormat(Timestamp, ts, Settings::Default);
 
   QTextCharFormat sender;
   sender.setAnchor(true);
   sender.setForeground(QBrush("#000080"));
-  setFormat(Sender, sender);
+  setFormat(Sender, sender, Settings::Default);
 
   QTextCharFormat nick;
   nick.setAnchor(true);
   nick.setFontWeight(QFont::Bold);
-  setFormat(Nick, nick);
+  setFormat(Nick, nick, Settings::Default);
 
   QTextCharFormat hostmask;
   hostmask.setFontItalic(true);
-  setFormat(Hostmask, hostmask);
+  setFormat(Hostmask, hostmask, Settings::Default);
 
   QTextCharFormat channel;
   channel.setAnchor(true);
   channel.setFontWeight(QFont::Bold);
-  setFormat(ChannelName, channel);
+  setFormat(ChannelName, channel, Settings::Default);
 
   QTextCharFormat flags;
   flags.setFontWeight(QFont::Bold);
-  setFormat(ModeFlags, flags);
+  setFormat(ModeFlags, flags, Settings::Default);
 
   QTextCharFormat url;
   url.setFontUnderline(true);
   url.setAnchor(true);
-  setFormat(Url, url);
+  setFormat(Url, url, Settings::Default);
 
 }