QTfrontend/hwform.cpp
changeset 5087 d3af455a868e
parent 5061 c90b1da271bc
child 5095 15dd764b728c
equal deleted inserted replaced
5086:df5bd3c32e19 5087:d3af455a868e
    96 
    96 
    97     namegen = new HWNamegen();
    97     namegen = new HWNamegen();
    98 
    98 
    99 #ifdef __APPLE__
    99 #ifdef __APPLE__
   100     panel = new M3Panel;
   100     panel = new M3Panel;
       
   101 
   101 #ifdef SPARKLE_ENABLED
   102 #ifdef SPARKLE_ENABLED
   102     AutoUpdater* updater;
   103     AutoUpdater* updater;
   103     CocoaInitializer initializer;
   104     CocoaInitializer initializer;
   104     updater = new SparkleAutoUpdater(SPARKLE_APPCAST_URL);
   105     updater = new SparkleAutoUpdater(SPARKLE_APPCAST_URL);
   105     if (updater && config->isAutoUpdateEnabled())
   106     if (updater && config->isAutoUpdateEnabled())
   106         updater->checkForUpdates();
   107         updater->checkForUpdates();
   107 #endif
   108 #endif
       
   109 
       
   110     QShortcut *hideFrontend = new QShortcut(QKeySequence("Ctrl+M"), this);
       
   111     connect (hideFrontend, SIGNAL(activated()), this, SLOT(showMinimized()));
   108 #else
   112 #else
   109     // ctrl+q closes frontend for consistency
   113     // ctrl+q closes frontend for consistency
   110     QShortcut *closeFrontend = new QShortcut(QKeySequence("Ctrl+Q"), this);
   114     QShortcut *closeFrontend = new QShortcut(QKeySequence("Ctrl+Q"), this);
   111     connect (closeFrontend, SIGNAL(activated()), this, SLOT(close()));
   115     connect (closeFrontend, SIGNAL(activated()), this, SLOT(close()));
   112 #endif
   116 #endif