~ubuntu-branches/ubuntu/vivid/kdesdk/vivid

« back to all changes in this revision

Viewing changes to kspy/tests/main.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-06 11:49:54 UTC
  • mfrom: (0.4.21)
  • Revision ID: package-import@ubuntu.com-20120606114954-rdls73fzlpzxglbx
Tags: 4:4.8.80-0ubuntu1
* New uptream beta release
* Update dont_export_private_classes.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                          main.cpp  -  description
3
 
                             -------------------
4
 
    begin                : Tue May  1 02:59:33 BST 2001
5
 
    copyright            : (C) 2001 by Richard Moore
6
 
    email                : rich@kde.org
7
 
 ***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *                                                                         *
11
 
 *   This program is free software; you can redistribute it and/or modify  *
12
 
 *   it under the terms of the GNU General Public License as published by  *
13
 
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 
 *   (at your option) any later version.                                   *
15
 
 *                                                                         *
16
 
 ***************************************************************************/
17
 
 
18
 
#include <kcmdlineargs.h>
19
 
#include <kaboutdata.h>
20
 
#include <klocale.h>
21
 
 
22
 
#include "spy.h"
23
 
 
24
 
static const char description[] =
25
 
        I18N_NOOP("Spy");
26
 
// INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
27
 
        
28
 
        
29
 
int main(int argc, char *argv[])
30
 
{
31
 
 
32
 
  KAboutData aboutData( "spy", 0, ki18n("Spy"),
33
 
    VERSION, ki18n(description), KAboutData::License_GPL,
34
 
    ki18n("(c) 2001, Richard Moore"), KLocalizedString(), 0, "rich@kde.org");
35
 
  aboutData.addAuthor(ki18n("Richard Moore"),KLocalizedString(), "rich@kde.org");
36
 
  KCmdLineArgs::init( argc, argv, &aboutData );
37
 
 
38
 
  KCmdLineOptions options;
39
 
  KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
40
 
 
41
 
  KApplication a;
42
 
  Spy *spy = new Spy();
43
 
  a.setMainWidget(spy);
44
 
 
45
 
  spy->show();
46
 
 
47
 
  return a.exec();
48
 
}