-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Move relevant files to a utils library
Merge json_utils.h to json.h Rename string_utils.[cpp h] to strings.[cpp h] Move json.h strings[cpp h] qt_fmt_helpers.h qt_std_format.h qt_fmt_format.h to the utils library. Task-Id: KNUT-130 Change-Id: I08e34c1f7d38b6fe51d0b3f562cdaeff062589da Reviewed-on: https://codereview.kdab.com/c/knut/+/140830 Tested-by: Continuous Integration <build@kdab.com> Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
- Loading branch information
Showing
27 changed files
with
112 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#pragma once | ||
|
||
#include "json_utils.h" | ||
#include "utils/json.h" | ||
|
||
#include <map> | ||
#include <optional> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#pragma once | ||
|
||
#include "document.h" | ||
#include "json_utils.h" | ||
#include "utils/json.h" | ||
|
||
namespace Core { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#pragma once | ||
|
||
#include "json_utils.h" | ||
#include "utils/json.h" | ||
|
||
class QPlainTextEdit; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#pragma once | ||
|
||
#include "string_utils.h" | ||
#include "utils/strings.h" | ||
|
||
#include <QHash> | ||
#include <QObject> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#pragma once | ||
|
||
#include "json.h" | ||
#include "notificationmessage.h" | ||
#include "utils/json.h" | ||
|
||
#include <type_traits> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#pragma once | ||
|
||
#include "json.h" | ||
#include "requestmessage.h" | ||
#include "utils/json.h" | ||
|
||
#include <type_traits> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
|
||
#pragma once | ||
|
||
#include "json.h" | ||
#include "types.h" | ||
#include "utils/json.h" | ||
|
||
namespace Lsp { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
project(knut-utils LANGUAGES CXX) | ||
find_package(Qt6 REQUIRED COMPONENTS Core Gui) | ||
set(PROJECT_SOURCES json.h qt_fmt_helpers.h strings.h strings.cpp) | ||
add_library(${PROJECT_NAME} STATIC ${PROJECT_SOURCES}) | ||
if(KNUT_USE_STD_FORMAT) | ||
target_sources(${PROJECT_NAME} PUBLIC qt_std_format.h) | ||
else() | ||
target_sources(${PROJECT_NAME} PUBLIC qt_fmt_format.h) | ||
endif() | ||
|
||
target_link_libraries(${PROJECT_NAME} PUBLIC nlohmann_json::nlohmann_json | ||
Qt6::Core Qt6::Gui) | ||
|
||
target_include_directories(${PROJECT_NAME} | ||
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/..) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.