Skip to content

Commit 62b6fe7

Browse files
committed
Port to Qt6
1 parent 0402dcd commit 62b6fe7

8 files changed

Lines changed: 9 additions & 7 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
110110
set(CMAKE_AUTOMOC ON)
111111
find_package(Qt6 REQUIRED COMPONENTS Core Network)
112112
set(Qt6_LIBRARIES Qt6::Core Qt6::Network )
113+
qt_standard_project_setup()
113114
message("Found Qt6 ${Qt6Core_VERSION}")
114115

115116
message("\n\n\n{Qt6_LIBRARIES}=${Qt6_LIBRARIES} ")

Dockerfile-debian12

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ ENV DEBIAN_FRONTEND=noninteractive
66
# Setup
77
RUN apt-get update -y -qq && apt-get install -y apt-utils wget bzip2 git gcc g++ cmake cmake-data ninja-build qt6-base-dev-tools qt6-declarative-dev packaging-dev -qq
88
RUN mkdir -p /src/
9-
RUN git clone https://github.com/aymara/qhttpserver /src/qhttpserver
9+
COPY . /src/qhttpserver
10+
#RUN git clone https://github.com/aymara/qhttpserver /src/qhttpserver
1011

1112
RUN mkdir -p /src/qhttpserver/build
1213

examples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
add_subdirectory(helloworld)
2-
add_subdirectory(greeting)
2+
# add_subdirectory(greeting)
33
#add_subdirectory(bodydata)

examples/bodydata/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SET(œ_EXE_SRCS
88

99
add_executable(bodydata_server ${bodydata_EXE_SRCS})
1010

11-
target_link_libraries(bodydata_server qhttpserver ${Qt5_LIBRARIES})
11+
target_link_libraries(bodydata_server qhttpserver ${Qt6_LIBRARIES})
1212

1313
add_test(
1414
NAME bodydata_Test

examples/greeting/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SET(greeting_EXE_SRCS
88

99
add_executable(greeting_server ${greeting_EXE_SRCS})
1010

11-
target_link_libraries(greeting_server qhttpserver ${Qt5_LIBRARIES})
11+
target_link_libraries(greeting_server qhttpserver ${Qt6_LIBRARIES})
1212

1313
add_test(
1414
NAME greeting_Test

examples/helloworld/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SET(helloworld_EXE_SRCS
88

99
add_executable(helloworld_server ${helloworld_EXE_SRCS})
1010

11-
target_link_libraries(helloworld_server qhttpserver ${Qt5_LIBRARIES})
11+
target_link_libraries(helloworld_server qhttpserver ${Qt6_LIBRARIES})
1212

1313
add_test(
1414
NAME helloworld_Test

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ SET(qhttpserver_LIB_SRCS
1515

1616
add_library(qhttpserver SHARED ${qhttpserver_LIB_SRCS})
1717

18-
target_link_libraries(qhttpserver ${Qt5_LIBRARIES})
18+
target_link_libraries(qhttpserver ${Qt6_LIBRARIES})
1919

2020
install(TARGETS qhttpserver DESTINATION ${LIB_INSTALL_DIR})
2121

src/qhttprequest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class QHTTPSERVER_API QHttpRequest : public QObject
4646
Q_PROPERTY(HeaderHash headers READ headers)
4747
Q_PROPERTY(QString remoteAddress READ remoteAddress)
4848
Q_PROPERTY(quint16 remotePort READ remotePort)
49-
Q_PROPERTY(QString method READ method)
49+
Q_PROPERTY(QString method READ methodString)
5050
Q_PROPERTY(QUrl url READ url)
5151
Q_PROPERTY(QString path READ path)
5252
Q_PROPERTY(QString httpVersion READ httpVersion)

0 commit comments

Comments
 (0)