Main Page   Compound List   File List   Compound Members   File Members  

fontsdlg.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './fontsdlg.ui'
00004 **
00005 ** Created: Wed Sep 24 12:11:03 2003
00006 **      by: The User Interface Compiler ()
00007 **
00008 ** WARNING! All changes made in this file will be lost!
00009 ****************************************************************************/
00010 
00011 #include "fontsdlg.h"
00012 
00013 #include <qvariant.h>
00014 #include <kfontdialog.h>
00015 #include <qlayout.h>
00016 #include <qtooltip.h>
00017 #include <qwhatsthis.h>
00018 
00019 /*
00020  *  Constructs a fontsdlg as a child of 'parent', with the
00021  *  name 'name' and widget flags set to 'f'.
00022  *
00023  *  The dialog will by default be modeless, unless you set 'modal' to
00024  *  TRUE to construct a modal dialog.
00025  */
00026 fontsdlg::fontsdlg( QWidget* parent, const char* name, bool modal, WFlags fl )
00027     : QDialog( parent, name, modal, fl )
00028 {
00029     if ( !name )
00030         setName( "fontsdlg" );
00031     fontsdlgLayout = new QGridLayout( this, 1, 1, 11, 6, "fontsdlgLayout"); 
00032 
00033     mFont = new KFontChooser( this, "mFont" );
00034     QFont mFont_font(  mFont->font() );
00035     mFont_font.setFamily( "Arial" );
00036     mFont_font.setPointSize( 48 );
00037     mFont_font.setBold( TRUE );
00038     mFont->setFont( mFont_font ); 
00039 
00040     fontsdlgLayout->addWidget( mFont, 0, 0 );
00041     languageChange();
00042     resize( QSize(487, 293).expandedTo(minimumSizeHint()) );
00043     clearWState( WState_Polished );
00044 }
00045 
00046 /*
00047  *  Destroys the object and frees any allocated resources
00048  */
00049 fontsdlg::~fontsdlg()
00050 {
00051     // no need to delete child widgets, Qt does it all for us
00052 }
00053 
00054 /*
00055  *  Sets the strings of the subwidgets using the current
00056  *  language.
00057  */
00058 void fontsdlg::languageChange()
00059 {
00060     setCaption( tr2i18n( "Form1" ) );
00061 }
00062 
00063 #include "fontsdlg.moc"

Generated on Sat Oct 18 21:37:49 2003 by doxygen1.2.18