mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move the qtTranslator and ssrfTranslator pointers to qt-init.cpp
No point in having it defined in each main program's .cpp. Especially since the unit tests don't define them. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
744e596883
commit
8f35b7324e
4 changed files with 2 additions and 6 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
|
|
||||||
char *settings_suffix = NULL;
|
char *settings_suffix = NULL;
|
||||||
|
QTranslator *qtTranslator, *ssrfTranslator;
|
||||||
|
|
||||||
void init_qt_late()
|
void init_qt_late()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
#include "qt-gui.h"
|
#include "qt-gui.h"
|
||||||
|
#include "qthelper.h"
|
||||||
#include "dive.h"
|
#include "dive.h"
|
||||||
#include "save-html.h"
|
#include "save-html.h"
|
||||||
#include "stdio.h"
|
#include "stdio.h"
|
||||||
|
@ -14,8 +15,6 @@
|
||||||
#include "windowtitleupdate.h"
|
#include "windowtitleupdate.h"
|
||||||
#include "statistics.h"
|
#include "statistics.h"
|
||||||
|
|
||||||
QTranslator *qtTranslator, *ssrfTranslator;
|
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
QApplication *application = new QApplication(argc, argv);
|
QApplication *application = new QApplication(argc, argv);
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
#include <QLoggingCategory>
|
#include <QLoggingCategory>
|
||||||
#include <git2.h>
|
#include <git2.h>
|
||||||
|
|
||||||
QTranslator *qtTranslator, *ssrfTranslator;
|
|
||||||
|
|
||||||
static bool filesOnCommandLine = false;
|
static bool filesOnCommandLine = false;
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
#include <QLoggingCategory>
|
#include <QLoggingCategory>
|
||||||
#include <git2.h>
|
#include <git2.h>
|
||||||
|
|
||||||
QTranslator *qtTranslator, *ssrfTranslator;
|
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Add table
Reference in a new issue