gui #17
18
README.md
18
README.md
@ -19,6 +19,24 @@ And of course, [Rust](https://www.rust-lang.org/tools/install).
|
|||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
This project requires at least Qt 6.7. To check your Qt version
|
||||||
|
|
||||||
|
```bash
|
||||||
|
qmake6 -query QT_VERSION
|
||||||
|
```
|
||||||
|
|
||||||
|
Use the [Qt Installer](https://www.qt.io/development/download) to download and install the Qt version of your choice.
|
||||||
|
|
||||||
|
**You must set the QMAKE variable before building clide**. This should be a path to `qmake6` binary installed on your system.
|
||||||
|
The following export is the default installation path for Qt 6.7 on Ubuntu 24.04
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export QMAKE=$HOME/Qt/6.7.3/gcc_64/bin/qmake6
|
||||||
|
export LD_LIBRARY_PATH=$HOME/Qt/6.7.3/gcc_64/lib
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
To install and run clide
|
To install and run clide
|
||||||
|
|||||||
@ -27,6 +27,7 @@ Rectangle {
|
|||||||
boundsBehavior: Flickable.StopAtBounds
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
boundsMovement: Flickable.StopAtBounds
|
boundsMovement: Flickable.StopAtBounds
|
||||||
clip: true
|
clip: true
|
||||||
|
rootIndex: FileSystem.rootIndex
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
FileSystem.setDirectory(root.rootDirectory)
|
FileSystem.setDirectory(root.rootDirectory)
|
||||||
@ -122,13 +123,13 @@ Rectangle {
|
|||||||
text: qsTr("Set as root index")
|
text: qsTr("Set as root index")
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
console.log("Setting directory: " + treeDelegate.filePath)
|
console.log("Setting directory: " + treeDelegate.filePath)
|
||||||
FileSystem.setDirectory(treeDelegate.filePath)
|
FileSystem.rootIndex = FileSystem.setDirectory(treeDelegate.filePath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Action {
|
Action {
|
||||||
text: qsTr("Reset root index")
|
text: qsTr("Reset root index")
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
FileSystem.setDirectory("")
|
FileSystem.rootIndex = FileSystem.setDirectory(root.rootDirectory)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user