Run astyle-kdelibs on the source
This commit is contained in:
parent
4b85d63d68
commit
39aac8c95b
22 changed files with 1227 additions and 1264 deletions
25
src/main.cpp
25
src/main.cpp
|
@ -36,8 +36,8 @@ static const char version[] = "%{VERSION}";
|
|||
int main(int argc, char **argv)
|
||||
{
|
||||
K4AboutData about("danbooru_client", 0, ki18n("danbooru_client"), version, ki18n(description),
|
||||
K4AboutData::License_GPL, ki18n("(C) %{CURRENT_YEAR} %{AUTHOR}"), KLocalizedString(), 0, "%{EMAIL}");
|
||||
about.addAuthor( ki18n("%{AUTHOR}"), KLocalizedString(), "%{EMAIL}" );
|
||||
K4AboutData::License_GPL, ki18n("(C) %{CURRENT_YEAR} %{AUTHOR}"), KLocalizedString(), 0, "%{EMAIL}");
|
||||
about.addAuthor(ki18n("%{AUTHOR}"), KLocalizedString(), "%{EMAIL}");
|
||||
QApplication app(argc, argv);
|
||||
QCommandLineParser parser;
|
||||
K4AboutData::setApplicationData(aboutData);
|
||||
|
@ -48,33 +48,26 @@ int main(int argc, char **argv)
|
|||
parser.process(app);
|
||||
aboutData.processCommandLine(&parser);
|
||||
|
||||
parser.addOption(QCommandLineOption(QStringList() << QLatin1String("+[URL]"), i18n( "Document to open" )));
|
||||
parser.addOption(QCommandLineOption(QStringList() << QLatin1String("+[URL]"), i18n("Document to open")));
|
||||
|
||||
danbooru_client *widget = new danbooru_client;
|
||||
|
||||
// see if we are starting with session management
|
||||
if (app.isSessionRestored())
|
||||
{
|
||||
if (app.isSessionRestored()) {
|
||||
RESTORE(danbooru_client);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
// no session.. just start up normally
|
||||
if (parser.positionalArguments().count() == 0)
|
||||
{
|
||||
if (parser.positionalArguments().count() == 0) {
|
||||
//danbooru_client *widget = new danbooru_client;
|
||||
widget->show();
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
int i = 0;
|
||||
for (; i < parser.positionalArguments().count(); i++)
|
||||
{
|
||||
for (; i < parser.positionalArguments().count(); i++) {
|
||||
//danbooru_client *widget = new danbooru_client;
|
||||
widget->show();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
return app.exec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue