Skip to content

Commit

Permalink
remove qt5 design studio deps
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Aug 12, 2024
1 parent e729b18 commit c696b1e
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 81 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,3 @@ jobs:
restore-keys: ${{ runner.os }}-ghc-${{ matrix.ghc }}-
- name: Build
run: cabal build all
- name: Test
run: make test
1 change: 0 additions & 1 deletion resources/qml/content/ErrorScreen.ui.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import Futr 1.0
import QtQuick.Studio.Components 1.0

Rectangle {
id: errorScreen
Expand Down
1 change: 0 additions & 1 deletion resources/qml/content/HomeScreen.ui.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import Futr 1.0
import QtQuick.Studio.Components 1.0

Rectangle {
id: homeScreen
Expand Down
1 change: 0 additions & 1 deletion resources/qml/content/KeysGeneratedScreen.ui.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Controls.Material 2.15
import QtQuick.Layouts 1.15
import QtQuick.Studio.Components 1.0

Rectangle {
id: keysGeneratedScreen
Expand Down
1 change: 0 additions & 1 deletion resources/qml/content/WelcomeScreen.ui.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import Futr 1.0
import QtQuick.Studio.Components 1.0

Rectangle {
id: welcomeScreen
Expand Down
7 changes: 0 additions & 7 deletions resources/qml/imports/Futr/Constants.qml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ QtObject {
readonly property int width: 1280
readonly property int height: 720

property alias fontDirectory: directoryFontLoader.fontDirectory
property alias relativeFontDirectory: directoryFontLoader.relativeFontDirectory

readonly property font font: Qt.font({
family: "Arial",
pixelSize: Qt.application.font.pixelSize,
Expand All @@ -22,8 +19,4 @@ QtObject {
})

readonly property color backgroundColor: "#c2c2c2"

property DirectoryFontLoader directoryFontLoader: DirectoryFontLoader {
id: directoryFontLoader
}
}
62 changes: 0 additions & 62 deletions resources/qml/imports/Futr/DirectoryFontLoader.qml

This file was deleted.

2 changes: 0 additions & 2 deletions resources/qml/imports/Futr/qmldir
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ Module Futr
singleton Constants 1.0 Constants.qml
EventListSimulator 1.0 EventListSimulator.qml
EventListModel 1.0 EventListModel.qml
DirectoryFontLoader 1.0 DirectoryFontLoader.qml

8 changes: 4 additions & 4 deletions src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ createContext modelVar changeKey = do
let handleError :: ObjRef() -> String -> IO ()
handleError obj err = do
model <- takeMVar modelVar
putMVar modelVar model { errorMsg = pack err }
putMVar modelVar model { errorMsg = "Error: " <> pack err }
fireSignal changeKey obj

rootClass <- newClass [
Expand Down Expand Up @@ -162,9 +162,9 @@ main = do
importPath' <- getDataFileName "resources/qml/content"
importPath'' <- getDataFileName "resources/qml/imports"

let qtImportPath = "/home/sasa/Qt/qtdesignstudio-2.3.1-community/qt5_design_studio_reduced_version/qml"
--let qtImportPath = "/home/sasa/Qt/qtdesignstudio-2.3.1-community/qt5_design_studio_reduced_version/qml"

setEnv "QML2_IMPORT_PATH" qtImportPath
--setEnv "QML2_IMPORT_PATH" qtImportPath
setEnv "QT_QUICK_CONTROLS_STYLE" "Material"
-- QT_QUICK_CONTROLS_CONF: "qtquickcontrols2.conf"
setEnv "QT_AUTO_SCREEN_SCALE_FACTOR" "1"
Expand All @@ -178,6 +178,6 @@ main = do
runEngineLoop defaultEngineConfig
{ initialDocument = fileDocument path
, contextObject = Just $ anyObjRef ctx
, importPaths = [importPath, importPath', importPath'', qtImportPath]
, importPaths = [importPath, importPath', importPath'']
--, pluginPaths = ["/home/sasa/Qt/qtdesignstudio-2.3.1-community/qt5_design_studio_reduced_version/plugins"]
}
File renamed without changes.

0 comments on commit c696b1e

Please sign in to comment.