KWizard::KWizard( QWidget *parent, const char *name, bool modal, WFlags f ) : QWizard( parent, name, modal, f ) { bool useIcons = KGlobalSettings::showIconsOnPushButtons(); if ( useIcons ) { KGuiItem back = KStdGuiItem::back( KStdGuiItem::UseRTL ); KGuiItem forward = KStdGuiItem::forward( KStdGuiItem::UseRTL ); backButton()->setIconSet( back.iconSet() ); nextButton()->setIconSet( forward.iconSet() ); finishButton()->setIconSet( SmallIconSet( "apply" ) ); cancelButton()->setIconSet( SmallIconSet( "button_cancel" ) ); helpButton()->setIconSet( SmallIconSet( "help" ) ); backButton()->setText( i18n( "&Back" ) ); nextButton()->setText( i18n( "Opposite to Back","&Next" ) ); } QFont font = titleFont(); font.setBold( true ); setTitleFont( font ); }
void KexiDSWelcome::setUseWizard(bool use) { #if !defined(Q_WS_WIN) bool useIcons = KGlobalSettings::showIconsOnPushButtons(); #endif if (use) { KGuiItem forward = KStandardGuiItem::forward(KStandardGuiItem::UseRTL); if (useIcons) m_wiz->nextButton()->setIconSet(forward.iconSet()); m_wiz->nextButton()->setText(i18n("&Next")); } else { if (useIcons) m_wiz->nextButton()->setIconSet(KIcon("dialog-ok")); m_wiz->nextButton()->setText(i18n("&Finish")); } m_wiz->finishNext(!use); }