本文整理汇总了C++中KAboutData::setHomepage方法的典型用法代码示例。如果您正苦于以下问题:C++ KAboutData::setHomepage方法的具体用法?C++ KAboutData::setHomepage怎么用?C++ KAboutData::setHomepage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KAboutData
的用法示例。
在下文中一共展示了KAboutData::setHomepage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char** argv)
{
KAboutData* aboutData = new KAboutData(
QByteArray("mangonel"),
QByteArray("mangonel"),
ki18n("Mangonel"),
QByteArray("1.1"),
ki18n("A simple application launcher for KDE4."));
aboutData->setHomepage(QByteArray("www.tarmack.eu/mangonel/"));
aboutData->addAuthor(ki18n("Martin Sandsmark"), ki18n("Developer"), "[email protected]", "http://iskrembilen.com/");
aboutData->addAuthor(ki18n("Bart Kroon"), ki18n("Developer, original author"), "", "http://tarmack.eu/");
KCmdLineArgs::init(argc, argv, aboutData);
KUniqueApplication app;
app.setQuitOnLastWindowClosed(false);
app.setOrganizationName("Tarmack SW");
Mangonel foo(&app);
return app.exec();
}
示例2: 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();
}
示例3: fillAboutData
void fillAboutData(KAboutData& aboutData)
{
aboutData.setProgramIconName("utilities-terminal");
aboutData.setHomepage("http://konsole.kde.org");
aboutData.addAuthor(ki18nc("@info:credit", "Kurt Hindenburg"),
ki18nc("@info:credit", "General maintainer, bug fixes and general"
" improvements"),
"[email protected]");
aboutData.addAuthor(ki18nc("@info:credit", "Robert Knight"),
ki18nc("@info:credit", "Previous maintainer, ported to KDE4"),
"[email protected]");
aboutData.addAuthor(ki18nc("@info:credit", "Lars Doelle"),
ki18nc("@info:credit", "Original author"),
"lars.doell[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Jekyll Wu"),
ki18nc("@info:credit", "Bug fixes and general improvements"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Waldo Bastian"),
ki18nc("@info:credit", "Bug fixes and general improvements"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Stephan Binner"),
ki18nc("@info:credit", "Bug fixes and general improvements"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Thomas Dreibholz"),
ki18nc("@info:credit", "General improvements"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Chris Machemer"),
ki18nc("@info:credit", "Bug fixes"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Francesco Cecconi"),
ki18nc("@info:credit", "Bug fixes"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Stephan Kulow"),
ki18nc("@info:credit", "Solaris support and history"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Alexander Neundorf"),
ki18nc("@info:credit", "Bug fixes and improved startup performance"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Peter Silva"),
ki18nc("@info:credit", "Marking improvements"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Lotzi Boloni"),
ki18nc("@info:credit", "Embedded Konsole\n"
"Toolbar and session names"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "David Faure"),
ki18nc("@info:credit", "Embedded Konsole\n"
"General improvements"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Antonio Larrosa"),
ki18nc("@info:credit", "Visual effects"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Matthias Ettrich"),
ki18nc("@info:credit", "Code from the kvt project\n"
"General improvements"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Warwick Allison"),
ki18nc("@info:credit", "Schema and text selection improvements"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Dan Pilone"),
ki18nc("@info:credit", "SGI port"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Kevin Street"),
ki18nc("@info:credit", "FreeBSD port"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Sven Fischer"),
ki18nc("@info:credit", "Bug fixes"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Dale M. Flaven"),
ki18nc("@info:credit", "Bug fixes"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Martin Jones"),
ki18nc("@info:credit", "Bug fixes"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Lars Knoll"),
ki18nc("@info:credit", "Bug fixes"),
"[email protected]");
aboutData.addCredit(ki18nc("@info:credit", "Thanks to many others.\n"));
}