equal
deleted
inserted
replaced
14 * You should have received a copy of the GNU General Public License |
14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software |
15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
17 */ |
17 */ |
18 |
18 |
19 #include <QApplication> |
19 #include "HWApplication.h" |
|
20 |
20 #include <QTranslator> |
21 #include <QTranslator> |
21 #include <QLocale> |
22 #include <QLocale> |
22 #include <QMessageBox> |
23 #include <QMessageBox> |
23 #include <QPlastiqueStyle> |
24 #include <QPlastiqueStyle> |
24 #include <QRegExp> |
25 #include <QRegExp> |
49 } |
50 } |
50 return true; |
51 return true; |
51 } |
52 } |
52 |
53 |
53 int main(int argc, char *argv[]) { |
54 int main(int argc, char *argv[]) { |
54 QApplication app(argc, argv); |
55 HWApplication app(argc, argv); |
55 app.setAttribute(Qt::AA_DontShowIconsInMenus,false); |
56 app.setAttribute(Qt::AA_DontShowIconsInMenus,false); |
56 |
57 |
57 QStringList arguments = app.arguments(); |
58 QStringList arguments = app.arguments(); |
58 QMap<QString, QString> parsedArgs; |
59 QMap<QString, QString> parsedArgs; |
59 { |
60 { |
453 #ifdef __APPLE__ |
454 #ifdef __APPLE__ |
454 // this creates the autoreleasepool that prevents leaking |
455 // this creates the autoreleasepool that prevents leaking |
455 CocoaInitializer initializer; |
456 CocoaInitializer initializer; |
456 #endif |
457 #endif |
457 |
458 |
458 HWForm *Form = new HWForm(); |
459 app.form = new HWForm(); |
459 |
460 |
460 Form->show(); |
461 app.form->show(); |
461 return app.exec(); |
462 return app.exec(); |
462 } |
463 } |