本文整理汇总了C++中KAboutData::setProgramLogo方法的典型用法代码示例。如果您正苦于以下问题:C++ KAboutData::setProgramLogo方法的具体用法?C++ KAboutData::setProgramLogo怎么用?C++ KAboutData::setProgramLogo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KAboutData
的用法示例。
在下文中一共展示了KAboutData::setProgramLogo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char **argv)
{
// specify data for About dialog
KAboutData* about = new KAboutData("aptgetkonsole", "aptgetkonsole", "");
about->setProgramLogo( QImage("/usr/share/icons/hicolor/32x32/apps/kappinstaller.png") );
about->setShortDescription( "aptgetkonsole" );
about->setLicense(KAboutData::License_GPL_V2);
about->setHomepage("http://linux.wuertz.org");
about->setBugAddress("[email protected]");
about->setCopyrightStatement("(c) 2008 Fabian Wuertz");
about->addAuthor("Fabian Würtz (xadras)", "Developer", "[email protected]", "http://linux.wuertz.org/");
KCmdLineArgs::init(argc, argv, about);
KCmdLineArgs::addCmdLineOptions( options );
KApplication app;
ac *mainWin = 0;
// start program
if (!app.isRestored())
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
QString changes;
for(int i = 0; i < args->count(); i++) // Counting start at 0!
changes = QString::fromLocal8Bit(args->arg(i));
mainWin = new ac( changes );
app.setMainWidget( mainWin );
mainWin->show();
args->clear();
}
return app.exec();
}
示例2: createAboutData
KAboutData* Kexi::createAboutData()
{
KAboutData *aboutData = new KAboutData(
"kexi", 0,
ki18n(KEXI_APP_NAME),
KEXI_VERSION_STRING
#ifndef CUSTOM_VERSION
" (KOffice " KOFFICE_VERSION_STRING ")"
#endif
, ki18n(description),
KAboutData::License_LGPL_V2,
ki18n("(c) 2002-2010, Kexi Team"),
ki18n("This software is developed by Kexi Team - an international group\n"
"of independent developers."),
"http://www.koffice.org/kexi",
"[email protected]"
);
// authors sorted by last nontrivial contribution date
aboutData->addAuthor(
ki18n("Jarosław Staniek"), ki18n("Project maintainer & developer, design, KexiDB, commercially supported version, MS Windows version"), "[email protected]");
aboutData->addAuthor(
ki18n("OpenOffice Polska LLC"), ki18n("Sponsoring and support (employer of Jarosław Staniek in 2003-2007)"), "[email protected]");
aboutData->addAuthor(
ki18n("Sebastian Sauer"), ki18n("Scripting module (KROSS), Python language bindings, design"), "[email protected]");
aboutData->addAuthor(
ki18n("Adam Pigg"), ki18n("PostgreSQL database driver, Migration and Reporting modules"), "[email protected]");
aboutData->addAuthor(
ki18n("Sharan Rao"), ki18n("Sybase/MS SQL Server database drivers, xBase migration plugin, improvements for KexiDB"), "[email protected]");
aboutData->addAuthor(
ki18n("Cédric Pasteur"), ki18n("First version of Property Editor and Form Designer"), "[email protected]");
aboutData->addAuthor(
ki18n("Martin Ellis"), ki18n("Contributions for MySQL and KexiDB, fixes, Migration module, MS Access file format support"), "[email protected]");
aboutData->addAuthor(
ki18n("Christian Nitschkowski"), ki18n("Graphics effects, helper dialogs"), "[email protected]");
aboutData->addAuthor(
ki18n("Lucijan Busch"), ki18n("Former project maintainer & developer"), "[email protected]");
aboutData->addAuthor(
ki18n("Peter Simonsson"), ki18n("Former developer"), "[email protected]");
aboutData->addAuthor(
ki18n("Joseph Wenninger"), ki18n("Original Form Designer, original user interface & much more"), "[email protected]");
aboutData->addAuthor(
ki18n("Seth Kurzenberg"), ki18n("CQL++, SQL assistance"), "[email protected]");
aboutData->addAuthor(
ki18n("Laurent Montel"), ki18n("Original code cleanings"), "[email protected]");
aboutData->addAuthor(
ki18n("Till Busch"), ki18n("Bugfixes, original Table Widget"), "[email protected]");
aboutData->addCredit(
ki18n("Daniel Molkentin"), ki18n("Initial design improvements"), "[email protected]");
aboutData->addCredit(
ki18n("Kristof Borrey"), ki18n("Icons and user interface research"), "[email protected]");
aboutData->addCredit(
ki18n("Tomas Krassnig"), ki18n("Coffee sponsoring"), "[email protected]");
aboutData->addCredit(
ki18n("Paweł Wirecki / OpenOffice Polska"), ki18n("Numerous bug reports, usability tests, technical support"));
aboutData->setTranslator(
ki18nc("NAME OF TRANSLATORS", "Your names"), ki18nc("EMAIL OF TRANSLATORS", "Your emails"));
#if defined(CUSTOM_VERSION) && defined(Q_WS_WIN)
aboutData->setProgramLogo(KEXI_APP_LOGO);
#endif
return aboutData;
}