/***************************************************************************
- * Copyright (C) 2005-08 by the Quassel IRC Team *
+ * Copyright (C) 2005-09 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#ifndef _FONTSSETTINGSPAGE_H_
#define _FONTSSETTINGSPAGE_H_
+#include <QHash>
+#include <QTextCharFormat>
+
#include "settings.h"
#include "settingspage.h"
#include "ui_fontssettingspage.h"
class QSignalMapper;
+class QLabel;
class FontsSettingsPage : public SettingsPage {
Q_OBJECT
public:
FontsSettingsPage(QWidget *parent = 0);
- bool hasChanged() const;
+ bool hasDefaults() const;
public slots:
void save();
private slots:
void load(Settings::Mode mode);
+ void initLabel(QLabel *label, const QFont &font);
void setFont(QLabel *label, const QFont &font);
void chooseFont(QWidget *label);
+ void widgetHasChanged();
+
private:
+ void clearFontFromFormat(QTextCharFormat &fmt);
+
Ui::FontsSettingsPage ui;
QSignalMapper *mapper;