Skip to content

Commit

Permalink
Try if we can remove qtdeclarative5-private-dev as well
Browse files Browse the repository at this point in the history
Might still be needed, because it was added before the use of
Qt.qml-private.
  • Loading branch information
bjorn committed Nov 16, 2023
1 parent 3a33807 commit d9e222d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt update
sudo apt install qtbase5-dev libqt5svg5-dev qttools5-dev-tools zlib1g-dev qtdeclarative5-dev qtdeclarative5-private-dev qbs python3-dev
sudo apt install qtbase5-dev libqt5svg5-dev qttools5-dev-tools zlib1g-dev qtdeclarative5-dev qbs python3-dev
- name: Setup qbs
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-22.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt update
sudo apt install qtbase5-dev libqt5svg5-dev qttools5-dev-tools zlib1g-dev qtdeclarative5-dev qtdeclarative5-private-dev qbs python3-dev
sudo apt install qtbase5-dev libqt5svg5-dev qttools5-dev-tools zlib1g-dev qtdeclarative5-dev qbs python3-dev
- name: Setup qbs
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Compiling Tiled
Before you can compile Tiled, you must ensure the Qt (>= 5.12) development
libraries have been installed as well as the Qbs build tool:

* On Ubuntu/Debian: `sudo apt install qtbase5-dev libqt5svg5-dev qttools5-dev-tools zlib1g-dev qtdeclarative5-dev qtdeclarative5-private-dev qbs`
* On Ubuntu/Debian: `sudo apt install qtbase5-dev libqt5svg5-dev qttools5-dev-tools zlib1g-dev qtdeclarative5-dev qbs`
* On Fedora: `sudo dnf builddep tiled`
* On Arch Linux: `sudo pacman -S qt qt5-tools qbs`
* On macOS with [Homebrew](https://brew.sh/):
Expand Down
4 changes: 4 additions & 0 deletions src/tiled/editabletilelayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include "tilelayeredit.h"
#include "tilelayerwangedit.h"

static int EditableTileLayer_instances = 0;

namespace Tiled {

EditableTileLayer::EditableTileLayer(const QString &name, QSize size, QObject *parent)
Expand All @@ -46,10 +48,12 @@ EditableTileLayer::EditableTileLayer(EditableMap *map,
QObject *parent)
: EditableLayer(map, layer, parent)
{
qDebug() << Q_FUNC_INFO << layer->name() << ++EditableTileLayer_instances;
}

EditableTileLayer::~EditableTileLayer()
{
qDebug() << Q_FUNC_INFO << layer()->name() << --EditableTileLayer_instances;
while (!mActiveEdits.isEmpty())
delete mActiveEdits.first();
while (!mActiveWangEdits.isEmpty())
Expand Down

0 comments on commit d9e222d

Please sign in to comment.