~ubuntu-branches/ubuntu/trusty/openmsx-debugger/trusty

« back to all changes in this revision

Viewing changes to src/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Joost Yervante Damad
  • Date: 2007-08-10 18:32:50 UTC
  • Revision ID: james.westby@ubuntu.com-20070810183250-hepyzcrl39slr4x1
Tags: upstream-0.0.0.svn20070518
ImportĀ upstreamĀ versionĀ 0.0.0.svn20070518

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// $Id: main.cpp 6238 2007-04-01 20:56:33Z manuelbi $
 
2
 
 
3
#include "DebuggerForm.h"
 
4
#include "Settings.h"
 
5
#include <QApplication>
 
6
#include <QIcon>
 
7
 
 
8
int main(int argc, char** argv)
 
9
{
 
10
        QApplication app(argc, argv);
 
11
// Don't set the icon on OS X, because it will replace the high-res version
 
12
// with a lower resolution one, even though openMSX-debugger-logo-128.png is 128x128.
 
13
#ifndef __APPLE__
 
14
        app.setWindowIcon(QIcon::QIcon(":icons/openMSX-debugger-logo-128.png"));
 
15
#endif
 
16
        // restore main settings
 
17
        app.setFont( Settings::get().font( Settings::APP_FONT ) );
 
18
        
 
19
        DebuggerForm debugger;
 
20
        debugger.show();
 
21
 
 
22
        return app.exec();
 
23
}