~ubuntu-branches/ubuntu/raring/filelight/raring-proposed

« back to all changes in this revision

Viewing changes to src/app/main.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 15:09:43 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20111215150943-pchy42ow3jjr09hk
Tags: 4:4.7.90-0ubuntu1
Initial package

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "define.h"
23
23
#include "mainWindow.h"
24
24
 
25
 
#include <kaboutdata.h>
26
 
#include <kapplication.h>
27
 
#include <kcmdlineargs.h>
28
 
#include <klocale.h>
29
 
#include <kurl.h>
 
25
#include <KAboutData>
 
26
#include <KApplication>
 
27
#include <KCmdLineArgs>
 
28
#include <KLocale>
 
29
#include <KUrl>
30
30
 
31
31
static KAboutData about(
32
32
    APP_NAME,
37
37
    KAboutData::License_GPL_V3,
38
38
    ki18n("(C) 2006 Max Howell\n(C) 2008, 2009 Martin Sandsmark"),
39
39
    KLocalizedString(),
40
 
    "http://www.methylblue.com/filelight/");
 
40
    "http://utils.kde.org/projects/filelight");
41
41
 
42
42
 
43
43
int main(int argc, char *argv[])
53
53
    KCmdLineArgs::init(argc, argv, &about);
54
54
 
55
55
    KCmdLineOptions options;
56
 
    options.add("+[path]", ki18n("Scan 'path'"));
 
56
    KLocale *tmpLocale = new KLocale(QLatin1String("filelight"));
 
57
    options.add(ki18nc("Path in the file system to scan", "+[path]").toString(tmpLocale).toLocal8Bit(), ki18n("Scan 'path'"));
 
58
    delete tmpLocale;
57
59
    KCmdLineArgs::addCmdLineOptions(options);
58
60
 
59
61
    KApplication app;