This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const QDir &PluginContainer::pluginDir() | |
{ | |
static bool isLoaded = false; | |
static QDir path; | |
if (!isLoaded) { | |
isLoaded = true; | |
QString appDir = qApp->applicationDirPath(); | |
QStringList list{}; | |
#ifdef Q_OS_MAC | |
if (appDir == QLatin1String("MacOS")) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Button { | |
z: 1 | |
id: destroyButton | |
anchors.left: parent.left | |
anchors.top: parent.top | |
width: 150 | |
text: "close window" | |
visible: buttonToggle | |
onClicked: { | |
sprite.destroy() |