📄 firstrunwizard.ui.h
字号:
/****************************************************************************** ui.h extension file, included from the uic-generated form implementation.**** If you want to add, delete, or rename functions or slots, use** Qt Designer to update this file, preserving your code.**** You should not define a constructor or destructor in this file.** Instead, write your code in functions called init() and destroy().** These will automatically be called by the form's constructor and** destructor.*****************************************************************************/#include "amarok.h"#include "config.h"#include "directorylist.h"#include <kapplication.h>#include <kconfig.h>#include <klocale.h>#include <qpushbutton.h>namespace Amarok{ extern QPixmap getPNG( const QString& ); extern QPixmap getJPG( const QString& ); extern KConfig *config( const QString& );}voidFirstRunWizard::init(){ using namespace Amarok; //aesthetics helpButton()->hide(); picture1->setPixmap( getJPG( "amarok_rocks" ) ); picture4->setPixmap( *picture1->pixmap() ); WizardPageLayout_2->addWidget( m_folderSetup = new CollectionSetup( WizardPage_2 ) ); text4->disconnect( SIGNAL(linkClicked( const QString& )) ); connect( text4, SIGNAL(linkClicked( const QString& )), SLOT(invokeHandbook()) ); dbActiveLabel->disconnect( SIGNAL(linkClicked( const QString& )) ); connect( dbActiveLabel, SIGNAL(linkClicked( const QString& )), SLOT(openLink( const QString &)) ); setFinishEnabled ( WizardPage_4, true );#if !defined(USE_MYSQL) && !defined(USE_POSTGRESQL) removePage(WizardPage_3);#endif}voidFirstRunWizard::showPage( QWidget *w ) //virtual{ QWizard::showPage( w ); cancelButton()->setText( w == WizardPage ? i18n("&Skip") : i18n("&Cancel") );}inline voidFirstRunWizard::invokeHandbook() //SLOT{ // Show handbook kapp->invokeHelp( QString::null, QString::null, 0 );}voidFirstRunWizard::writeCollectionConfig(){ m_folderSetup->writeConfig();}voidFirstRunWizard::openLink(const QString& s){ Amarok::invokeBrowser(s);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -