Skip to content

Commit

Permalink
editor: Code restyle
Browse files Browse the repository at this point in the history
  • Loading branch information
WiseLord committed Mar 12, 2018
1 parent 1f0352b commit 75ffe88
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 26 deletions.
26 changes: 13 additions & 13 deletions editor/editor.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
#-------------------------------------------------

QT += core gui
QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

Expand All @@ -14,24 +14,24 @@ TARGET = matrixclockeditor
TEMPLATE = app

SOURCES += main.cpp\
mainwindow.cpp \
lcdconverter.cpp \
aboutdialog.cpp \
fontpixel.cpp
mainwindow.cpp \
lcdconverter.cpp \
aboutdialog.cpp \
fontpixel.cpp

HEADERS += mainwindow.h \
lcdconverter.h \
aboutdialog.h \
fontpixel.h \
timespinbox.h
# defines.h
lcdconverter.h \
aboutdialog.h \
fontpixel.h \
timespinbox.h \
defines.h

FORMS += mainwindow.ui \
aboutdialog.ui
aboutdialog.ui

RESOURCES += \
res.qrc \
ts.qrc
res.qrc \
ts.qrc

TRANSLATIONS += \
ts/editor_ru.ts \
Expand Down
13 changes: 0 additions & 13 deletions editor/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,6 @@ int main(int argc, char *argv[])
QCoreApplication::setApplicationName(APPLICATION_NAME);

QApplication a(argc, argv);

QSettings settings(ORGANIZATION_NAME, APPLICATION_NAME);

QString lang = settings.value(SETTINGS_GENERAL_LANGUAGE, "auto").toString();

if (lang.compare("auto") == 0) {
lang = QLocale::system().bcp47Name().remove(QRegExp("-.*"));
}
/*
QTranslator translator;
translator.load(":/ts/editor_" + lang);
a.installTranslator(&translator);
*/
MainWindow w;
w.show();

Expand Down

0 comments on commit 75ffe88

Please sign in to comment.