setAutoSaveSettings();
// font
- setFont( KitaConfig::font() );
+ setFont( KitaConfig::listFont() );
// allow the view to change the statusbar and caption
Kita::SignalCollection* signalCollection = Kita::SignalCollection::getInstance();
m_threadBackgroundColor( KitaConfig::defaultThreadBackgroundColor() ),
m_popupColor( KitaConfig::defaultPopupColor() ),
m_popupBackgroundColor( KitaConfig::defaultPopupBackgroundColor() ),
- m_font( KitaConfig::defaultFont() ),
+ m_listFont( KitaConfig::defaultListFont() ),
m_threadFont( KitaConfig::defaultThreadFont() ),
// m_boardListURL
// m_nameCompletion
void KitaConfig::writeConfig( KConfig* config )
{
config->setGroup( "Global" );
- config->writeEntry( "Font", KitaConfig::font() );
+ config->writeEntry( "Font", KitaConfig::listFont() );
config->writeEntry( "ThreadFont", KitaConfig::threadFont() );
config->writeEntry( "ShowMailAddress", KitaConfig::showMailAddress() );
config->writeEntry( "MarkTime", KitaConfig::MarkTime() );
config->setGroup( "Global" );
if ( config->hasKey( "Font" ) ) {
- KitaConfig::setFont( config->readFontEntry( "Font" ) );
+ KitaConfig::setListFont( config->readFontEntry( "Font" ) );
} else {
- KitaConfig::setFont( KitaConfig::defaultFont() );
+ KitaConfig::setListFont( KitaConfig::defaultListFont() );
}
if ( config->hasKey( "ThreadFont" ) ) {
QColor m_threadBackgroundColor;
QColor m_popupColor;
QColor m_popupBackgroundColor;
- QFont m_font;
+ QFont m_listFont;
QFont m_threadFont;
QString m_boardListURL;
KCompletion m_nameCompletion;
static void readConfig( KConfig* config );
static KitaConfig* getInstance();
- static QFont& font() { return getInstance() ->m_font; }
- static void setFont( QFont font ) { getInstance() ->m_font = font; }
- static QFont defaultFont() { return QFont(); }
+ static QFont& listFont() { return getInstance() ->m_listFont; }
+ static void setListFont( QFont font ) { getInstance() ->m_listFont = font; }
+ static QFont defaultListFont() { return QFont(); }
static QFont& threadFont() { return getInstance() ->m_threadFont; }
static void setThreadFont( QFont font ) { getInstance() ->m_threadFont = font; }
{
m_postInfo = info;
- QFont font = KitaConfig::font();
+ QFont font = KitaConfig::listFont();
bodyText->setFont( font );
nameLine->setFont( font );
nameLabel->setFont( font );
{
// font
QFont font = listFontButton->font();
- KitaConfig::setFont( font );
+ KitaConfig::setListFont( font );
emit fontChanged( font );
if ( m_threadFontchanged ) {
{
// font
QFont font;
- font = KitaConfig::defaultFont();
+ font = KitaConfig::defaultListFont();
listFontButton->setText( font.family() + " " + QString::number( font.pointSize() ) );
listFontButton->setFont( font );
void FacePrefPage::updateButtons()
{
- QFont font = KitaConfig::font();
+ QFont font = KitaConfig::listFont();
listFontButton->setText( font.family() + " " + QString::number( font.pointSize() ) );
listFontButton->setFont( font );