Skip to content

Commit 7d8f234

Browse files
committed
Version 1.0:
* Added translations to es_ES and es_DO. * Fixed some typos in translations and making some string literals able to be translated by using tr() on them. * Incomplete labels when they're translated, fixed. * Fixed a little bug if we have 1 call saved on the DB, it didn't use to be shown. * resizeEvent of main window was refactored. I made this an internal class not to polute the main window class itself. * Shortcuts are fairly modified when we're under Spanish systems. * When saving calls instead of asking for keys() we're now iterating over all its values and then retrieving that value's associated key because we used to allocate an unnecessary container.
1 parent 8c12f32 commit 7d8f234

12 files changed

+1146
-457
lines changed

CMakeLists.txt

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.5)
22

3-
project(PerformanceMeasurer VERSION 0.8 LANGUAGES CXX)
3+
project(PerformanceMeasurer VERSION 1.0 LANGUAGES CXX)
44

55
set(CMAKE_AUTOUIC ON)
66
set(CMAKE_AUTOMOC ON)
@@ -10,30 +10,32 @@ set(CMAKE_CXX_STANDARD 17)
1010
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1111

1212
add_compile_definitions(PROGRAM_NAME="PerformanceMeasurer")
13-
add_compile_definitions(VERSION="0.8")
13+
add_compile_definitions(VERSION="1.0")
1414
add_compile_definitions(AUTHOR="Brayan MS")
1515
add_compile_definitions(THIS_PROGRAM_URL="https://github.com/brookiestein/PerformanceMeasurer")
1616
add_compile_definitions(OTHER_PROJECTS="https://github.com/brookiestein?tab=repositories")
1717

1818
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets LinguistTools Sql Charts)
1919
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools Sql Charts)
2020

21-
set(TS_FILES PerformanceMeasurer_es_US.ts)
21+
set(TS_FILES translations/PerformanceMeasurer_es_ES.ts
22+
translations/PerformanceMeasurer_es_DO.ts
23+
translations/PerformanceMeasurer_es_US.ts)
2224
qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
2325

2426
set(PROJECT_SOURCES
25-
main.cpp
26-
mainwindow.cpp
27-
mainwindow.hpp
28-
mainwindow.ui
29-
database.hpp
30-
database.cpp
3127
chart.hpp
32-
chart.cpp
33-
chart.ui
3428
calldetails.hpp
29+
database.hpp
30+
mainwindow.hpp
31+
chart.cpp
3532
calldetails.cpp
33+
database.cpp
34+
main.cpp
35+
mainwindow.cpp
36+
chart.ui
3637
calldetails.ui
38+
mainwindow.ui
3739
${TS_FILES}
3840
)
3941

PerformanceMeasurer_es_US.ts

Lines changed: 0 additions & 289 deletions
This file was deleted.

calldetails.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CallDetails::CallDetails(Database& db, const QString& datetime, const QString& d
1010
{
1111
m_ui->setupUi(this);
1212
this->setWindowTitle(tr("%1's Registered Calls").arg(dayname));
13+
m_ui->label->setText(this->windowTitle());
1314
m_tw = m_ui->tableWidget;
1415

1516
setWindowIcon(QIcon("assets/icon.ico"));

calldetails.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
<widget class="QLabel" name="label">
3333
<property name="geometry">
3434
<rect>
35-
<x>240</x>
35+
<x>210</x>
3636
<y>20</y>
37-
<width>191</width>
37+
<width>281</width>
3838
<height>31</height>
3939
</rect>
4040
</property>

0 commit comments

Comments
 (0)