Skip to content

Commit 341a07d

Browse files
committed
io/process: use QVariantHash over QHash in Q_PROPERTY
Fixes qmlls for these properties
1 parent 41828c4 commit 341a07d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/io/process.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class Process: public PostReloadHook {
102102
/// If the process is already running changing this property will affect the next
103103
/// started process. If the property has been changed after starting a process it will
104104
/// return the new value, not the one for the currently running process.
105-
Q_PROPERTY(QHash<QString, QVariant> environment READ environment WRITE setEnvironment NOTIFY environmentChanged);
105+
Q_PROPERTY(QVariantHash environment READ environment WRITE setEnvironment NOTIFY environmentChanged);
106106
/// If the process's environment should be cleared prior to applying @@environment.
107107
/// Defaults to false.
108108
///

src/io/processcore.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace qs::io::process {
1313

1414
class ProcessContext {
1515
Q_PROPERTY(QList<QString> command MEMBER command WRITE setCommand);
16-
Q_PROPERTY(QHash<QString, QVariant> environment MEMBER environment WRITE setEnvironment);
16+
Q_PROPERTY(QVariantHash environment MEMBER environment WRITE setEnvironment);
1717
Q_PROPERTY(bool clearEnvironment MEMBER clearEnvironment WRITE setClearEnvironment);
1818
Q_PROPERTY(QString workingDirectory MEMBER workingDirectory WRITE setWorkingDirectory);
1919
Q_PROPERTY(bool unbindStdout MEMBER unbindStdout WRITE setUnbindStdout);

0 commit comments

Comments
 (0)