mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
remove global QApplication *application
.. it is available from the macro qApp anyway.
This commit is contained in:
@@ -155,11 +155,12 @@ HomeWindow::HomeWindow(Context *context, QString name, QString /* windowtitle */
|
||||
connect(titleEdit, SIGNAL(textChanged(const QString&)), SLOT(titleChanged()));
|
||||
|
||||
installEventFilter(this);
|
||||
application->installEventFilter(this);
|
||||
qApp->installEventFilter(this);
|
||||
}
|
||||
|
||||
HomeWindow::~HomeWindow()
|
||||
{
|
||||
qApp->removeEventFilter(this);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
#include "QtMacSegmentedButton.h"
|
||||
#endif
|
||||
|
||||
extern QApplication *application;
|
||||
class ChartBar;
|
||||
|
||||
class HomeWindow : public GcWindow
|
||||
|
||||
@@ -58,7 +58,6 @@ void nostderr(QString dir)
|
||||
#include <QStandardPaths>
|
||||
#endif
|
||||
|
||||
QApplication *application;
|
||||
bool restarting = false;
|
||||
|
||||
// root directory shared by all
|
||||
@@ -142,7 +141,7 @@ main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
// create the application -- only ever ONE regardless of restarts
|
||||
application = new QApplication(argc, argv);
|
||||
QApplication *application = new QApplication(argc, argv);
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
// get an autorelease pool setup
|
||||
|
||||
Reference in New Issue
Block a user