mirror of
https://github.com/loimu/zeit.git
synced 2025-09-15 12:58:44 +08:00
Minor cosmetic changes: suppress warnings
This commit is contained in:
parent
e434dfe613
commit
3a81332a48
@ -17,7 +17,6 @@
|
||||
|
||||
#include "ctHelper.h"
|
||||
|
||||
#include "logging.h"
|
||||
|
||||
CTTask::CTTask(const QString& tokenString, const QString& _comment,
|
||||
const QString& _userLogin, bool _systemCrontab) :
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
|
||||
#include "ctHelper.h"
|
||||
|
||||
|
||||
CTVariable::CTVariable(const QString& tokenString, const QString& _comment, const QString& _userLogin) {
|
||||
|
||||
QString tokStr = tokenString;
|
||||
|
||||
@ -40,18 +40,20 @@ int main(int argc, char *argv[])
|
||||
QApplication::setApplicationName(QStringLiteral("Zeit"));
|
||||
QApplication::setOrganizationName(QStringLiteral("zeit"));
|
||||
QApplication::setApplicationVersion(QStringLiteral(ZEIT_V));
|
||||
bool result;
|
||||
QTranslator translator;
|
||||
translator.load(QApplication::applicationDirPath() +
|
||||
result = translator.load(QApplication::applicationDirPath() +
|
||||
QLatin1String("/../share/zeit/translations/") +
|
||||
QLatin1String("zeit_") +
|
||||
QLocale::system().name() + QLatin1String(".qm"));
|
||||
a.installTranslator(&translator);
|
||||
QTranslator libTranslator;
|
||||
libTranslator.load(QApplication::applicationDirPath() +
|
||||
result &= libTranslator.load(QApplication::applicationDirPath() +
|
||||
QLatin1String("/../share/zeit/translations/") +
|
||||
QLatin1String("crontablib_") +
|
||||
QLocale::system().name() + QLatin1String(".qm"));
|
||||
a.installTranslator(&libTranslator);
|
||||
Q_UNUSED(result)
|
||||
MainWindow w;
|
||||
w.show();
|
||||
if(showTrayIcon)
|
||||
|
||||
@ -35,7 +35,6 @@
|
||||
#include "cthost.h"
|
||||
#include "ctcron.h"
|
||||
#include "cttask.h"
|
||||
#include "ctvariable.h"
|
||||
#include "ctInitializationError.h"
|
||||
|
||||
#include "data/commanddelegate.h"
|
||||
@ -46,7 +45,6 @@
|
||||
#include "taskdialog.h"
|
||||
#include "commanddialog.h"
|
||||
#include "timerdialog.h"
|
||||
#include "variabledialog.h"
|
||||
#include "commands.h"
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user