okular/optionDialogFontsWidget.cpp
Angus Leeming 1e73bd360e Enable it to compile if HAVE_FREETYPE is undefined.
svn path=/trunk/KDE/kdegraphics/kviewshell/plugins/dvi/; revision=482387
2005-11-22 20:34:31 +00:00

41 lines
1.4 KiB
C++

// optionDiologWidget.cpp
//
// Part of KDVI - A DVI previewer for the KDE desktop environment
//
// (C) 2003 Stefan Kebekus
// Distributed under the GPL
#include <config.h>
#include "optionDialogFontsWidget.h"
#ifndef HAVE_FREETYPE
# include <klocale.h>
# include <QCheckBox>
# include <QToolTip>
#endif // HAVE_FREETYPE
// Constructs a optionDialogWidget_base which is a child of 'parent', with
// the name 'name' and widget flags set to 'f'.
optionDialogFontsWidget::optionDialogFontsWidget( QWidget* parent, const char* name, Qt::WFlags fl )
: optionDialogFontsWidget_base( parent, name, fl )
{
#ifndef HAVE_FREETYPE
kcfg_UseType1Fonts->setChecked(false);
kcfg_UseType1Fonts->setEnabled(false);
QToolTip::add(UseType1Fonts, i18n("This version of KDVI does not support type 1 fonts."));
UseType1Fonts->setWhatsThis( i18n("KDVI needs the FreeType library to access type 1 fonts. This library "
"was not present when KDVI was compiled. If you want to use type 1 "
"fonts, you must either install the FreeType library and recompile KDVI "
"yourself, or find a precompiled software package for your operating "
"system."));
#endif
}
optionDialogFontsWidget::~optionDialogFontsWidget()
{}
#include "optionDialogFontsWidget.moc"