Add straight paths to script api
This commit is contained in:
parent
5e09d7b965
commit
b8bbfe60e8
2 changed files with 10 additions and 0 deletions
|
@ -100,6 +100,8 @@ public:
|
||||||
Q_INVOKABLE bool getBorderVisibility();
|
Q_INVOKABLE bool getBorderVisibility();
|
||||||
Q_INVOKABLE void setSmartPathsEnabled(bool visible);
|
Q_INVOKABLE void setSmartPathsEnabled(bool visible);
|
||||||
Q_INVOKABLE bool getSmartPathsEnabled();
|
Q_INVOKABLE bool getSmartPathsEnabled();
|
||||||
|
Q_INVOKABLE void setStraightPathsEnabled(bool visible);
|
||||||
|
Q_INVOKABLE bool getStraightPathsEnabled();
|
||||||
Q_INVOKABLE void registerAction(QString functionName, QString actionName, QString shortcut = "");
|
Q_INVOKABLE void registerAction(QString functionName, QString actionName, QString shortcut = "");
|
||||||
Q_INVOKABLE void setTimeout(QJSValue callback, int milliseconds);
|
Q_INVOKABLE void setTimeout(QJSValue callback, int milliseconds);
|
||||||
void invokeCallback(QJSValue callback);
|
void invokeCallback(QJSValue callback);
|
||||||
|
|
|
@ -476,6 +476,14 @@ bool MainWindow::getSmartPathsEnabled() {
|
||||||
return this->ui->checkBox_smartPaths->isChecked();
|
return this->ui->checkBox_smartPaths->isChecked();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::setStraightPathsEnabled(bool visible) {
|
||||||
|
this->ui->checkBox_straightPaths->setChecked(visible);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool MainWindow::getStraightPathsEnabled() {
|
||||||
|
return this->ui->checkBox_straightPaths->isChecked();
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::registerAction(QString functionName, QString actionName, QString shortcut) {
|
void MainWindow::registerAction(QString functionName, QString actionName, QString shortcut) {
|
||||||
if (!this->ui || !this->ui->menuTools)
|
if (!this->ui || !this->ui->menuTools)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue