Skip to content

Commit

Permalink
add scripting doc for setStyleSheet
Browse files Browse the repository at this point in the history
  • Loading branch information
dogboydog committed Mar 8, 2023
1 parent eaae72a commit 25bdc0f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/scripting-doc/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,11 @@ declare namespace Qt {
* Qt documentation: [QWidget.enabled](https://doc.qt.io/qt-5/qwidget.html#enabled-prop)
*/
enabled: boolean;
/**
* Adjust the style sheet for this widget.
* @param styleSheet The text of your style sheet. See https://doc.qt.io/qt-6/stylesheet.html and https://doc.qt.io/qt-6/stylesheet-examples.html for more information
*/
setStyleSheet(styleSheet: string) : void;
}

/**
Expand Down Expand Up @@ -4328,4 +4333,9 @@ declare class Dialog {
* the provided width, it will scale itself up automatically.
*/
minimumHeight: number;
/**
* Adjust the style sheet for the entire dialog.
* @param styleSheet The text of your style sheet. See https://doc.qt.io/qt-6/stylesheet.html and https://doc.qt.io/qt-6/stylesheet-examples.html for more information
*/
setStyleSheet(styleSheet: string) : void;
}

0 comments on commit 25bdc0f

Please sign in to comment.