clean
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
CompileFlags:
|
||||
Add: [-std=c++14, -Wno-documentation, -Wno-missing-prototypes]
|
||||
|
||||
Diagnostics:
|
||||
ClangTidy:
|
||||
Add:
|
||||
[
|
||||
performance-*,
|
||||
bugprone-*,
|
||||
modernize-*,
|
||||
clang-analyzer-*,
|
||||
readability-identifier*,
|
||||
]
|
||||
CheckOptions:
|
||||
readability-identifier-naming.VariableCase: camelCase
|
||||
|
||||
Suppress: [-Wdeprecated-declarations]
|
||||
+2
-5
@@ -191,8 +191,5 @@ _deps
|
||||
|
||||
.cache
|
||||
.cmake
|
||||
.vscode
|
||||
.qt
|
||||
.qtc
|
||||
|
||||
.build
|
||||
.qtc_clangd
|
||||
build
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"cmake.configureOnOpen": false,
|
||||
}
|
||||
@@ -29,9 +29,7 @@ class Clock(QWidget):
|
||||
clock.start(1000) # update the clock per second
|
||||
self.show()
|
||||
|
||||
self.settings = QSettings(
|
||||
f"{sys.argv[0]}/../config/config.ini", QSettings.IniFormat
|
||||
)
|
||||
self.settings = QSettings(f"{sys.argv[0]}/../config.ini", QSettings.IniFormat)
|
||||
font = QFont()
|
||||
font.setFamily(self.settings.value("USER/FONT_FAMILY"))
|
||||
font.setPointSize(int(self.settings.value("USER/FONT_SIZE")))
|
||||
|
||||
@@ -20,8 +20,8 @@ include_directories(
|
||||
)
|
||||
|
||||
set (SRCS
|
||||
clock.cpp
|
||||
clock.h
|
||||
flock.cpp
|
||||
flock.h
|
||||
main.cpp
|
||||
)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "clock.h"
|
||||
#include "flock.h"
|
||||
|
||||
Clock::Clock(QWidget *parent) : QWidget{parent}, pressed(false) {
|
||||
// geometry of Main Window (x, y, width, height)
|
||||
@@ -6,13 +6,10 @@
|
||||
QT = core gui widgets
|
||||
|
||||
HEADERS = \
|
||||
$$PWD/clock.h
|
||||
$$PWD/flock.h
|
||||
|
||||
SOURCES = \
|
||||
$$PWD/build/CMakeFiles/3.27.1/CompilerIdC/CMakeCCompilerId.c \
|
||||
$$PWD/build/CMakeFiles/3.27.1/CompilerIdCXX/CMakeCXXCompilerId.cpp \
|
||||
$$PWD/clock_autogen/mocs_compilation.cpp \
|
||||
$$PWD/clock.cpp \
|
||||
$$PWD/flock.cpp \
|
||||
$$PWD/main.cpp
|
||||
|
||||
INCLUDEPATH = \
|
||||
|
||||
Reference in New Issue
Block a user