📄 chooseenginedialog.cpp.svn-base
字号:
/*************************************************************************** * Copyright (C) 2006 by Pino Toscano <toscano.pino@tiscali.it> * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/#include <qcombobox.h>#include <qlabel.h>#include <klocale.h>#include "ui_chooseenginewidget.h"#include "chooseenginedialog.h"ChooseEngineDialog::ChooseEngineDialog( const QStringList &generators, const KMimeType::Ptr &mime, QWidget * parent ) : KDialog( parent ){ setCaption( i18n( "Generator Selection" ) ); setButtons( Ok | Cancel ); setDefaultButton( Ok ); QWidget *main = new QWidget( this ); setMainWidget( main ); m_widget = new Ui_ChooseEngineWidget(); m_widget->setupUi( main ); m_widget->engineList->addItems(generators); m_widget->description->setText( i18n( "More than one generator found for mimetype \"%1\" (%2).\n" "Please select which one to use:", mime->comment(), mime->name() ) );}int ChooseEngineDialog::selectedGenerator() const{ return m_widget->engineList->currentIndex();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -