Skip to content

Commit

Permalink
Version 1.0:
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
brookiestein committed May 27, 2023
1 parent 8c12f32 commit 7d8f234
Show file tree
Hide file tree
Showing 12 changed files with 1,146 additions and 457 deletions.
24 changes: 13 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.5)

project(PerformanceMeasurer VERSION 0.8 LANGUAGES CXX)
project(PerformanceMeasurer VERSION 1.0 LANGUAGES CXX)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
Expand All @@ -10,30 +10,32 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_compile_definitions(PROGRAM_NAME="PerformanceMeasurer")
add_compile_definitions(VERSION="0.8")
add_compile_definitions(VERSION="1.0")
add_compile_definitions(AUTHOR="Brayan MS")
add_compile_definitions(THIS_PROGRAM_URL="https://github.com/brookiestein/PerformanceMeasurer")
add_compile_definitions(OTHER_PROJECTS="https://github.com/brookiestein?tab=repositories")

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

set(TS_FILES PerformanceMeasurer_es_US.ts)
set(TS_FILES translations/PerformanceMeasurer_es_ES.ts
translations/PerformanceMeasurer_es_DO.ts
translations/PerformanceMeasurer_es_US.ts)
qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})

set(PROJECT_SOURCES
main.cpp
mainwindow.cpp
mainwindow.hpp
mainwindow.ui
database.hpp
database.cpp
chart.hpp
chart.cpp
chart.ui
calldetails.hpp
database.hpp
mainwindow.hpp
chart.cpp
calldetails.cpp
database.cpp
main.cpp
mainwindow.cpp
chart.ui
calldetails.ui
mainwindow.ui
${TS_FILES}
)

Expand Down
289 changes: 0 additions & 289 deletions PerformanceMeasurer_es_US.ts

This file was deleted.

1 change: 1 addition & 0 deletions calldetails.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ CallDetails::CallDetails(Database& db, const QString& datetime, const QString& d
{
m_ui->setupUi(this);
this->setWindowTitle(tr("%1's Registered Calls").arg(dayname));
m_ui->label->setText(this->windowTitle());
m_tw = m_ui->tableWidget;

setWindowIcon(QIcon("assets/icon.ico"));
Expand Down
4 changes: 2 additions & 2 deletions calldetails.ui
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>240</x>
<x>210</x>
<y>20</y>
<width>191</width>
<width>281</width>
<height>31</height>
</rect>
</property>
Expand Down
Loading

0 comments on commit 7d8f234

Please sign in to comment.