kwizard.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <qstring.h>
00021 #include <qapplication.h>
00022 #include <qpushbutton.h>
00023
00024 #include <kiconloader.h>
00025 #include <klocale.h>
00026
00027 #include "kwizard.h"
00028
00029 KWizard::KWizard( QWidget *parent, const char *name, bool modal, WFlags f )
00030 : QWizard( parent, name, modal, f )
00031 {
00032 QString nextIcon, backIcon;
00033
00034 if ( QApplication::reverseLayout() )
00035 {
00036 backIcon = "forward";
00037 nextIcon = "back";
00038 }
00039 else
00040 {
00041 backIcon = "back";
00042 nextIcon = "forward";
00043 }
00044
00045 backButton()->setIconSet( SmallIconSet( backIcon ) );
00046 nextButton()->setIconSet( SmallIconSet( nextIcon ) );
00047
00048 finishButton()->setIconSet( SmallIconSet( "apply" ) );
00049 cancelButton()->setIconSet( SmallIconSet( "button_cancel" ) );
00050 helpButton()->setIconSet( SmallIconSet( "help" ) );
00051
00052 backButton()->setText( i18n( "&Back" ) );
00053 nextButton()->setText( i18n( "&Next" ) );
00054
00055 QFont font = titleFont();
00056 font.setBold( true );
00057 setTitleFont( font );
00058 }
00059
00060 #include "kwizard.moc"
This file is part of the documentation for kdelibs Version 3.1.5.