Skip to content

Commit

Permalink
prepare for intiial working state for qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
Camilo Higuita committed Jun 12, 2024
1 parent 8272456 commit 7a40f9b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 19 deletions.
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,17 @@ find_package(CaskServer REQUIRED)

include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR})
${CMAKE_CURRENT_SOURCE_DIR}/code)

set(cask_SRCS
main.cpp
code/models/zpacesmodel.cpp
code/models/surfacesmodel.cpp
code/controllers/zpaces.cpp

code/controllers/zpace.cpp
code/controllers/zpace.h

code/models/tasksmodel.cpp
code/controllers/task.cpp
code/controllers/abstractwindow.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/code/models/tasksmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void TasksModel::addTask(Task *task)
connect(task, &Task::closed, this, [this, task]()
{
this->removeTask(indexOf(task));
}, Qt::UniqueConnection);
});
}

Task *TasksModel::findTask(const QString &id)
Expand Down
2 changes: 1 addition & 1 deletion src/code/models/zpacesmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Zpace *ZpacesModel::createZpace()
connect(newZpace, &Zpace::closed, this, [this, newZpace]
{
this->removeZpace(indexOf(newZpace));
}, Qt::UniqueConnection);
});

return newZpace;
}
33 changes: 17 additions & 16 deletions src/qml/CaskScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -230,22 +230,23 @@ WaylandOutput
]

Keys.enabled: true
Keys.onPressed: {
if (event.key == Qt.Key_Left) {
console.log("move left");
dock.launcher.toggle()

event.accepted = true;
}

if((event.key === Qt.Key_Meta))
{
console.log("move meta");

dock.launcher.toggle()
event.accepted = true
}
}
Keys.onPressed: (event) =>
{
if (event.key == Qt.Key_Left) {
console.log("move left");
dock.launcher.toggle()

event.accepted = true;
}

if((event.key === Qt.Key_Meta))
{
console.log("move meta");

dock.launcher.toggle()
event.accepted = true
}
}

Shortcut
{
Expand Down

0 comments on commit 7a40f9b

Please sign in to comment.