mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-30 01:38:07 +00:00
e3994658b6
port to the new i18n api svn path=/branches/work/kde4/playground/graphics/okular/; revision=528345
53 lines
2.1 KiB
C++
53 lines
2.1 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2006 by Pino Toscano <toscano.pino@tiscali.it> *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
***************************************************************************/
|
|
|
|
#include <qfont.h>
|
|
#include <kiconloader.h>
|
|
|
|
#include "ui_dlgperformancebase.h"
|
|
|
|
#include "dlgperformance.h"
|
|
|
|
DlgPerformance::DlgPerformance( QWidget * parent )
|
|
: QWidget( parent )
|
|
{
|
|
m_dlg = new Ui_DlgPerformanceBase();
|
|
m_dlg->setupUi( this );
|
|
|
|
QFont labelFont = m_dlg->descLabel->font();
|
|
labelFont.setBold( true );
|
|
m_dlg->descLabel->setFont( labelFont );
|
|
|
|
m_dlg->cpuLabel->setPixmap( BarIcon( "kcmprocessor", 32 ) );
|
|
m_dlg->memoryLabel->setPixmap( BarIcon( "kcmmemory", 32 ) );
|
|
|
|
connect( m_dlg->lowRadio, SIGNAL( toggled( bool ) ), this, SLOT( lowRadio_toggled( bool ) ) );
|
|
connect( m_dlg->normalRadio, SIGNAL( toggled( bool ) ), this, SLOT( normalRadio_toggled( bool ) ) );
|
|
connect( m_dlg->aggressiveRadio, SIGNAL( toggled( bool ) ), this, SLOT( aggressiveRadio_toggled( bool ) ) );
|
|
}
|
|
|
|
void DlgPerformance::lowRadio_toggled( bool on )
|
|
{
|
|
if ( on )
|
|
m_dlg->descLabel->setText( i18n("Keeps used memory as low as possible. Do not reuse anything. (For systems with low memory.)") );
|
|
}
|
|
|
|
void DlgPerformance::normalRadio_toggled( bool on )
|
|
{
|
|
if ( on )
|
|
m_dlg->descLabel->setText( i18n("A good compromise between memory usage and speed gain. Preload next page and boost searches. (For systems with 256MB of memory, typically.)") );
|
|
}
|
|
|
|
void DlgPerformance::aggressiveRadio_toggled( bool on )
|
|
{
|
|
if ( on )
|
|
m_dlg->descLabel->setText( i18n("Keeps everything in memory. Preload next pages. Boost searches. (For systems with more than 512MB of memory.)") );
|
|
}
|
|
|
|
#include "dlgperformance.moc"
|