Skip to content

Commit 2f5959d

Browse files
committed
Fixup with new api
1 parent 45b5c9d commit 2f5959d

10 files changed

Lines changed: 40 additions & 24 deletions

src/CMakeLists.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1+
set(PROJECT glacier-filemuncher)
2+
13
set(SRC main.cpp
24
filetools.cpp
35
txtfilereader.cpp)
46

57
set(HEADERS filetools.h
68
txtfilereader.h)
79

8-
add_executable(glacier-filemuncher ${SRC} ${HEADERS})
10+
qt_add_resources(RESOURCES qml/${PROJECT}.qrc)
11+
12+
add_executable(${PROJECT} ${SRC} ${HEADERS} ${RESOURCES}
13+
qml/glacier-filemuncher.qrc)
914

10-
target_link_libraries(glacier-filemuncher
15+
target_link_libraries(${PROJECT}
1116
Qt6::Gui
1217
Qt6::Qml
1318
Qt6::Quick
1419
Glacier::App)
1520

16-
install(TARGETS glacier-filemuncher RUNTIME
21+
install(TARGETS ${PROJECT} RUNTIME
1722
DESTINATION ${CMAKE_INSTALL_BINDIR})
18-
install(DIRECTORY qml
19-
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-filemuncher
20-
PATTERN "api" EXCLUDE)
2123
install(DIRECTORY qml/api/
22-
DESTINATION ${QT_INSTALL_QML}/org/nemomobile/filemuncher/
23-
)
24+
DESTINATION ${QT_INSTALL_QML}/org/nemomobile/filemuncher/)

src/qml/DetailViewSheet.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2012 Robin Burchell <robin+nemo@viroteck.net>
3-
* Copyright (C) 2017 Chupligin Sergey <neochapay@gmail.com>
3+
* Copyright (C) 2017-2025 Chupligin Sergey <neochapay@gmail.com>
44
*
55
* You may use this file under the terms of the BSD license as follows:
66
*
@@ -31,6 +31,7 @@
3131
*/
3232

3333
import QtQuick
34+
import Nemo
3435
import Nemo.Controls
3536

3637
Page {

src/qml/DirectoryPage.qml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2012 Robin Burchell <robin+nemo@viroteck.net>
3-
* Copyright (C) 2017-2020 Chupligin Sergey <neochapay@gmail.com>
3+
* Copyright (C) 2017-2025 Chupligin Sergey <neochapay@gmail.com>
44
*
55
* You may use this file under the terms of the BSD license as follows:
66
*
@@ -32,6 +32,7 @@
3232

3333
import QtQuick
3434

35+
import Nemo
3536
import Nemo.Controls
3637
import Nemo.Dialogs
3738

@@ -55,11 +56,7 @@ Page {
5556
ToolButton {
5657
iconSource: "image://theme/refresh"
5758
onClicked: dirModel.refresh()
58-
}/*,
59-
ToolButton {
60-
iconSource: "image://theme/bars"
61-
onClicked: (pageMenu.status == DialogStatus.Closed) ? pageMenu.open() : pageMenu.close()
62-
}*/
59+
}
6360
]
6461
drawerLevels: [
6562
Button {
@@ -167,7 +164,9 @@ Page {
167164
if (component.status == Component.Ready) {
168165
// TODO: error handling
169166
var detailsSheet = component.createObject(page, {"model": model});
170-
pageStack.push(detailsSheet)
167+
if(detailsSheet != null) {
168+
pageStack.push(detailsSheet)
169+
}
171170
}
172171

173172
console.log(component.errorString())

src/qml/FilePickerSheet.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2012 Robin Burchell <robin+nemo@viroteck.net>
3-
* Copyright (C) 2017 Chupligin Sergey <neochapay@gmail.com>
3+
* Copyright (C) 2017-2025 Chupligin Sergey <neochapay@gmail.com>
44
*
55
* You may use this file under the terms of the BSD license as follows:
66
*
@@ -31,6 +31,7 @@
3131
*/
3232

3333
import QtQuick
34+
import Nemo
3435
import Nemo.Controls
3536

3637
Sheet {

src/qml/InputSheet.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2012 Arto Jalkanen <ajalkane@gmail.com>
3-
* Copyright (C) 2017 Chupligin Sergey <neochapay@gmail.com>
3+
* Copyright (C) 2017-2025 Chupligin Sergey <neochapay@gmail.com>
44
*
55
* You may use this file under the terms of the BSD license as follows:
66
*
@@ -31,6 +31,7 @@
3131
*/
3232

3333
import QtQuick
34+
import Nemo
3435
import Nemo.Controls
3536

3637
Page {

src/qml/TextViewPage.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020 Chupligin Sergey <neochapay@gmail.com>
2+
* Copyright (C) 2020-2025 Chupligin Sergey <neochapay@gmail.com>
33
*
44
* You may use this file under the terms of the BSD license as follows:
55
*
@@ -30,6 +30,7 @@
3030
*/
3131

3232
import QtQuick
33+
import Nemo
3334
import Nemo.Controls
3435
import org.nemomobile.glacier.filemuncher
3536

src/qml/api/FileListDelegate.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2012 Robin Burchell <robin+nemo@viroteck.net>
3-
* Copyright (C) 2017 Chupligin Sergey <neochapay@gmail.com>
3+
* Copyright (C) 2017-2025 Chupligin Sergey <neochapay@gmail.com>
44
*
55
* You may use this file under the terms of the BSD license as follows:
66
*
@@ -31,6 +31,7 @@
3131
*/
3232

3333
import QtQuick
34+
import Nemo
3435
import Nemo.Controls
3536

3637
ListViewItemWithActions {
@@ -59,11 +60,10 @@ ListViewItemWithActions {
5960
}
6061
]
6162

62-
Text {
63+
Label {
6364
id: fileSize
6465
color: Theme.textColor
6566
visible: model.isFile
66-
font: Theme.fontFamily
6767
text: model.fileSize
6868
anchors{
6969
right: parent.right

src/qml/api/FilePermissionIndicator.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2012 Petri M. Gerdt <petri.gerdt@gmail.com>
3-
* Copyright (C) 2017 Chupligin Sergey <neochapay@gmail.com>
3+
* Copyright (C) 2017-2025 Chupligin Sergey <neochapay@gmail.com>
44
*
55
* You may use this file under the terms of the BSD license as follows:
66
*
@@ -31,6 +31,7 @@
3131
*/
3232

3333
import QtQuick
34+
import Nemo
3435
import Nemo.Controls
3536

3637
Rectangle {

src/qml/glacier-filemuncher.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2012 Robin Burchell <robin+nemo@viroteck.net>
3-
* Copyright (C) 2018 Chupligin Sergey <neochapay@gmail.com>
3+
* Copyright (C) 2018-2025 Chupligin Sergey <neochapay@gmail.com>
44
*
55
* You may use this file under the terms of the BSD license as follows:
66
*
@@ -31,6 +31,7 @@
3131
*/
3232

3333
import QtQuick
34+
import Nemo
3435
import Nemo.Controls
3536
//import Nemo.Thumbnailer
3637

src/qml/glacier-filemuncher.qrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<RCC>
2+
<qresource prefix="/">
3+
<file>DetailViewSheet.qml</file>
4+
<file>DirectoryPage.qml</file>
5+
<file>FilePickerSheet.qml</file>
6+
<file>glacier-filemuncher.qml</file>
7+
<file>InputSheet.qml</file>
8+
<file>TextViewPage.qml</file>
9+
</qresource>
10+
</RCC>

0 commit comments

Comments
 (0)