~ubuntu-branches/ubuntu/vivid/kalgebra/vivid

« back to all changes in this revision

Viewing changes to src/main.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-12-04 18:41:41 UTC
  • mfrom: (0.5.5) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20141204184141-30yko9e4x2arqw9c
Tags: 4:14.11.97-0ubuntu1
* New upstream release
* Update build-deps for Qt 5 port
* in debian/rules to pkg-kde version 3
* PPA build

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA   *
17
17
 *************************************************************************************/
18
18
 
19
 
#include <KApplication>
 
19
#include <QApplication>
20
20
#include <KAboutData>
21
 
#include <KCmdLineArgs>
22
21
#include "kalgebra.h"
 
22
#include <klocalizedstring.h>
23
23
 
24
24
int main(int argc, char *argv[])
25
25
{
26
 
        KAboutData about("kalgebra", 0, ki18n(("KAlgebra")), "0.11", ki18n("A calculator"),
27
 
                         KAboutData::License_GPL, ki18n("(C) 2006-2010 Aleix Pol Gonzalez"));
28
 
        about.addAuthor( ki18n("Aleix Pol Gonzalez"), KLocalizedString(), "aleixpol@kde.org" );
29
 
    about.addAuthor( ki18n("Percy Camilo Triveño Aucahuasi"),  ki18n("Developed feature for drawing implicit curves. Improvements for plotting functions."),
30
 
    "percy.camilo.ta@gmail.com" );
31
 
        KCmdLineArgs::init(argc, argv, &about);
32
 
        KApplication app;
 
26
        QApplication app(argc, argv);
 
27
        app.setApplicationName("kalgebra");
 
28
        app.setApplicationDisplayName(app.tr("KAlgebra"));
 
29
        app.setApplicationVersion("0.99");
33
30
        
34
 
        /*if(app.isSessionRestored()) {
35
 
                RESTORE(KAlgebra);
36
 
        } else {*/
37
 
                KAlgebra* widget = new KAlgebra;
38
 
                widget->show();
39
 
        //}
 
31
        KLocalizedString::setApplicationDomain("kalgebra");
 
32
 
 
33
        KAlgebra widget;
 
34
        widget.show();
40
35
        
41
36
        return app.exec();
42
37
}