notes/notesui/notesapplication/src/main.cpp
changeset 45 b6db4fd4947b
parent 23 fd30d51f876b
child 55 2c54b51f39c4
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // System includes
    18 // System includes
    19 #include <QScopedPointer>
    19 #include <QScopedPointer>
    20 #include <QTranslator>
       
    21 #include <hbapplication.h>
    20 #include <hbapplication.h>
    22 #include <hbmainwindow.h>
    21 #include <hbmainwindow.h>
    23 
    22 #include <hbtranslator.h>
    24 // User includes
    23 // User includes
    25 #include "notesappcontroller.h"
    24 #include "notesappcontroller.h"
    26 
    25 
    27 /*!
    26 /*!
    28 	The main() function.
    27 	The main() function.
    40 	window.setRenderHints(
    39 	window.setRenderHints(
    41 			QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
    40 			QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
    42 	window.setViewportUpdateMode(QGraphicsView::MinimalViewportUpdate);
    41 	window.setViewportUpdateMode(QGraphicsView::MinimalViewportUpdate);
    43 
    42 
    44 	// Load the translation file.
    43 	// Load the translation file.
    45 	QTranslator notesViewsTranslator;
    44 	HbTranslator notesViewsTranslator("notes");
    46 	notesViewsTranslator.load("notes",":/translations");
    45 	notesViewsTranslator.loadCommon();
    47 	app.installTranslator(&notesViewsTranslator);
       
    48 
    46 
    49 	// Construct the application controller.
    47 	// Construct the application controller.
    50 	QScopedPointer<NotesAppController> controller(new NotesAppController);
    48 	QScopedPointer<NotesAppController> controller(new NotesAppController);
    51 	Q_UNUSED(controller)
    49 	Q_UNUSED(controller)
    52 
    50