Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document setStyleSheet for script Dialog widgets #3605

Merged
merged 4 commits into from
Mar 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions docs/scripting-doc/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ declare namespace Qt {
* The toolTip displayed when the user mouses over this widget
*/
toolTip: string;

/**
* Controls whether this widget is visible.
* When toggling this property, the dialog layout will automatically adjust itself
Expand All @@ -377,6 +376,22 @@ declare namespace Qt {
* Qt documentation: [QWidget.enabled](https://doc.qt.io/qt-5/qwidget.html#enabled-prop)
*/
enabled: boolean;
/**
* Set this property to override the style sheet for this widget.
*
* See https://doc.qt.io/qt-6/stylesheet.html and https://doc.qt.io/qt-6/stylesheet-examples.html for more information.
*/
styleSheet: string;
/**
* You can use this property to prevent the widget from being resized to a width
* below this amount.
*/
minimumWidth: number;
/**
* You can use this property to prevent the widget from being resized to a height
* below this amount.
*/
minimumHeight: number;
}

/**
Expand Down Expand Up @@ -4103,7 +4118,7 @@ declare class ImageWidget extends Qt.QWidget {
*
* @since 1.9
*/
declare class Dialog {
declare class Dialog extends Qt.QWidget {
/**
* The dialog was rejected. Value is 0.
*/
Expand Down Expand Up @@ -4315,17 +4330,4 @@ declare class Dialog {
* The title of your dialog.
*/
windowTitle: string;

/**
* You can use this property to prevent the dialog from being resized to a width
* below this amount. When you change minimumWidth, ifthe dialog is already less wide than
* the provided width, it will scale itself up automatically.
*/
minimumWidth: number;
/**
* You can use this property to prevent the dialog from being resized to a height
* below this amount. When you change minimumHeight, ifthe dialog is already less tall than
* the provided width, it will scale itself up automatically.
*/
minimumHeight: number;
}