Skip to content

Commit f65a561

Browse files
committed
Bump Qt dependency to 6.9, fix issues after the port
1 parent b9814cd commit f65a561

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,12 @@ CPMAddPackage(
158158
GIT_TAG fa5bc4296a252ad71c85209b60675bb025024a1e
159159
VERSION 0.10.0
160160
EXCLUDE_FROM_ALL ON
161-
OPTIONS "QCORO_BUILD_EXAMPLES OFF" "BUILD_TESTING OFF" "QCORO_WITH_QTDBUS ${LITH_DEPENDENCY_ENABLE_DBUS}"
161+
OPTIONS "QCORO_BUILD_EXAMPLES OFF" "BUILD_TESTING OFF" "QCORO_WITH_QML OFF" "QCORO_WITH_QTQUICK OFF" "QCORO_WITH_QTDBUS ${LITH_DEPENDENCY_ENABLE_DBUS}"
162162
FIND_PACKAGE_ARGUMENTS "COMPONENTS ${LITH_QCORO_DEPENDENCY_MODULES} REQUIRED"
163163
)
164164

165-
qt_standard_project_setup(REQUIRES 6.5)
165+
qt_standard_project_setup(REQUIRES 6.9)
166+
qt_policy(SET QTP0004 NEW)
166167
get_target_property(QT_MOC_EXECUTABLE Qt::moc IMPORTED_LOCATION)
167168
get_filename_component(QT_BINARY_PREFIX ${QT_MOC_EXECUTABLE} DIRECTORY)
168169
get_filename_component(QT_INSTALL_PREFIX ${QT_BINARY_PREFIX} DIRECTORY)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Lith currently supports the following platforms:
6161

6262
## Build instructions
6363

64-
Lith is written using C++ and the Qt framework with QML. The only supported version is Qt 6.5 and newer. Other
64+
Lith is written using C++ and the Qt framework with QML. The only supported version is Qt 6.9 and newer. Other
6565
dependencies are listed below.
6666

6767
When building for all supported platforms, only the following steps should be necessary if CMake is setup correctly:

app/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ target_link_libraries(Lith PRIVATE
4141
LithStyle
4242
QCoro6::Coro
4343
Qt::Gui
44-
Qt::GuiPrivate
4544
Qt::Multimedia
4645
Qt::Qml
4746
Qt::Quick

modules/Lith/Core/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ target_link_libraries(LithCore PRIVATE
7777
QCoro6::Coro
7878
QCoro6::Core
7979
Qt::Gui
80-
Qt::GuiPrivate
8180
Qt::Multimedia
8281
Qt::Qml
8382
Qt::Quick

modules/Lith/Style/TabButton.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import QtQuick.Templates as T
55
import Lith.Core
66
import Lith.Style
77

8+
import "util"
9+
810
T.TabButton {
911
id: control
1012

modules/Lith/UI/MainView.qml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import QtQuick
2-
import QtQuick.Controls
2+
import QtQuick.Controls as QQC2
33
import QtQuick.Layouts
44

55
import Lith.Core
6-
import Lith.Style
6+
import Lith.Style as LithStyle
77

88
import "util"
99

@@ -79,7 +79,7 @@ Item {
7979

8080
Rectangle {
8181
id: mainViewContents
82-
color: LithPalette.regular.window
82+
color: LithStyle.LithPalette.regular.window
8383
anchors {
8484
fill: parent
8585
leftMargin: mainView.leftMargin
@@ -211,7 +211,7 @@ Item {
211211
left: parent.left
212212
}
213213
width: mainView.leftMargin
214-
color: LithPalette.regular.base
214+
color: LithStyle.LithPalette.regular.base
215215
}
216216

217217
Rectangle {
@@ -224,7 +224,7 @@ Item {
224224
right: parent.right
225225
}
226226
width: mainView.rightMargin
227-
color: LithPalette.regular.base
227+
color: LithStyle.LithPalette.regular.base
228228
}
229229

230230
Rectangle {
@@ -237,7 +237,7 @@ Item {
237237
right: parent.right
238238
}
239239
height: mainView.topMargin
240-
color: LithPalette.regular.base
240+
color: LithStyle.LithPalette.regular.base
241241
}
242242

243243
Rectangle {
@@ -250,11 +250,11 @@ Item {
250250
right: parent.right
251251
}
252252
height: mainView.bottomMargin
253-
color: LithPalette.regular.base
253+
color: LithStyle.LithPalette.regular.base
254254
}
255255

256256
// TODO make this a component and fix this
257-
Dialog {
257+
LithStyle.Dialog {
258258
id: linkHandler
259259
z: 99999999
260260
width: channelView.width
@@ -315,15 +315,15 @@ Item {
315315
x: 6
316316
width: channelView.width - 12
317317
spacing: 9
318-
Label {
318+
LithStyle.Label {
319319
id: linkText
320320
Layout.fillWidth: true
321321
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
322322
horizontalAlignment: Text.AlignHCenter
323323
textFormat: Text.RichText
324324
text: "<a href=\""+linkHandler.currentLink+"\">"+linkHandler.currentLink+"</a>"
325325
}
326-
Button {
326+
LithStyle.Button {
327327
focusPolicy: Qt.NoFocus
328328
Layout.preferredHeight: 36
329329
Layout.preferredWidth: height
@@ -333,7 +333,7 @@ Item {
333333
linkHandler.visible = false
334334
}
335335
}
336-
Button {
336+
LithStyle.Button {
337337
focusPolicy: Qt.NoFocus
338338
Layout.preferredHeight: 36
339339
Layout.preferredWidth: height
@@ -343,7 +343,7 @@ Item {
343343
}
344344
icon.source: "qrc:/navigation/"+WindowHelper.currentThemeName+"/resize.png"
345345
}
346-
Button {
346+
LithStyle.Button {
347347
visible: linkHandler.containsImage || linkHandler.containsVideo
348348
focusPolicy: Qt.NoFocus
349349
icon.source: "qrc:/navigation/"+WindowHelper.currentThemeName+"/image.png"

0 commit comments

Comments
 (0)