forked from openkylin/docs
更新翻译
Signed-off-by: jlspcdd1227dd <12046126+jlspcdd1227dd@user.noreply.gitee.com>
This commit is contained in:
parent
28d965b9ab
commit
4621852776
|
@ -1581,19 +1581,19 @@ int decimals, bool *ok, Qt::WindowFlags flags)
|
|||
|
||||
|
||||
|
||||
| 常量 | describe |
|
||||
| constant | describe |
|
||||
|--------------------------------------------|------------------------------------------------------------|
|
||||
| QInputDialog::NoButtons | 不显示确定和取消按钮 |
|
||||
| QInputDialog::UseListViewForComboBoxItems | 使用QListView而不是不可编辑的QComboxItems来显示使用SetComboxItems()设置的项目。 |
|
||||
| QInputDialog::UsePlainTextEditForTextInput | 使用QPlainTextEdit进行多行文本输入。在这个值中在5.2中被引入。 |
|
||||
| QInputDialog::NoButtons | Don't show OK and Cancel buttons |
|
||||
| QInputDialog::UseListViewForComboBoxItems | Use QListView instead of non-editable QComboxItems to display items set with SetComboxItems(). |
|
||||
| QInputDialog::UsePlainTextEditForTextInput | Use QPlainTextEdit for multi-line text input. In this value was introduced in 5.2. |
|
||||
|
||||
|
||||
|
||||
| 常量 | describe |
|
||||
| constant | describe |
|
||||
|---------------------------|---------------|
|
||||
| QInputDialog::TextInput | 用于输入文本字符串。 |
|
||||
| QInputDialog::IntInput | 用于输入整数。 |
|
||||
| QInputDialog::DoubleInput | 用于以双精度输入的浮点数。 |
|
||||
| QInputDialog::TextInput | Used to enter text strings. |
|
||||
| QInputDialog::IntInput | Used to enter integers. |
|
||||
| QInputDialog::DoubleInput | For floating-point numbers entered in double precision. |
|
||||
|
||||
|
||||
|
||||
|
@ -1649,7 +1649,7 @@ int decimals, bool *ok, Qt::WindowFlags flags)
|
|||
| void setDoubleStep(double step); | 设置double步数 |
|
||||
| double doubleStep() const; | 获取double步数 |
|
||||
| void setPlaceholderText(const QString &); | 设置PlaceholderText的文本内容(自1.2.0.12启用) |
|
||||
| QString placeholderText() const; | 获取PlaceholderText的文本内容(自1.2.0.12启用) |
|
||||
| QString placeholderText() const; | Get the text content of PlaceholderText (enabled since 1.2.0.12) |
|
||||
|
||||
|
||||
|
||||
|
@ -1679,29 +1679,29 @@ progress2->setShowDetail(false);
|
|||
|
||||
| statement | describe |
|
||||
|-----------------------------------------------|---------------------------------------------------------------------------------------------------------|
|
||||
| void setLabel(QLabel *label); | 将标签设置给label。进度对话框会调整大小以适应。标签成为进度对话框的所有权,必要时将被删除,所以不要在堆栈中传递对象的地址。 |
|
||||
| void setCancelButton(QPushButton *button); | 将取消按钮设置给按钮,cancelButton。进度对话框拥有这个按钮的所有权,这个按钮在必要时将被删除,所以不要传递堆栈中的对象的地址,用new()来创建按钮。如果传递nullptr,将不会显示取消按钮。 |
|
||||
| void setBar(QProgressBar *bar); | 将进度条部件设置给bar。进度对话框会调整大小以适应。进度条对话框拥有进度条的所有权,该进度条将在必要时被删除,所以不要使用分配在堆栈中的进度条。 |
|
||||
| void setSuffix(const QString& suffix); | 设置detail的后缀 |
|
||||
| void setShowDetail(bool flag); | 设置是否显示详细信息 |
|
||||
| int minimum() const; | 返回最小值 |
|
||||
| int maximum() const; | 返回最大值 |
|
||||
| int value() const | 返回当前值 |
|
||||
| QString labelText() const; | 返回提示内容 |
|
||||
| void setAutoReset(bool reset); | 设置进度对话框是否在value()等于maximum()时立即调用reset(),默认为true。 |
|
||||
| bool autoReset() const; | 返回是否自动重置 |
|
||||
| void setAutoClose(bool close); | 设置是否自动关闭对话框 |
|
||||
| bool autoClose() const; | 返回是否自动关闭对话框 |
|
||||
| QProgressBar* progressBar(); | 获取进度条 |
|
||||
| void cancel(); | 取消进度条。 |
|
||||
| void reset(); | 重置进度条。 |
|
||||
| void setMaximum(int maximum) | 设置进度条所代表的最高值,默认值是100。 |
|
||||
| void setMinimum(int minimum) | 设置进度条所代表的最小值,默认值是0。 |
|
||||
| void setRange(int minimum, int maximum) | 设置进度条范围,如果最大值小于最小值,则最小值成为唯一的合法值。如果当前值超出了新的范围,则用reset()重置进度框。 |
|
||||
| void setValue(int progress) | 设置当前进度值。 |
|
||||
| void setLabelText(const QString &text) | 设置提示标签文本。 |
|
||||
| void setCancelButtonText(const QString &text) | 设置取消按钮文本。 |
|
||||
| void setSubContent(const QString &text) | 设置次级内容。 |
|
||||
| void setLabel(QLabel *label); | Set the label to label. The progress dialog resizes to fit. The label becomes the ownership of the progress dialog and will be deleted if necessary, so don't pass the address of the object on the stack. |
|
||||
| void setCancelButton(QPushButton *button); | Set the cancel button to the button, cancelButton. The progress dialog takes ownership of the button, and the button will be deleted if necessary, so instead of passing the address of an object on the stack, use new() to create the button. If nullptr is passed, the cancel button will not be displayed. |
|
||||
| void setBar(QProgressBar *bar); | Set the progress bar widget to bar. The progress dialog resizes to fit. The progress bar dialog takes ownership of the progress bar, which will be deleted if necessary, so don't use a progress bar allocated on the stack. |
|
||||
| void setSuffix(const QString& suffix); | Set the suffix of detail |
|
||||
| void setShowDetail(bool flag); | Set whether to display detailed information |
|
||||
| int minimum() const; | return minimum |
|
||||
| int maximum() const; | return the maximum value |
|
||||
| int value() const | return the current value |
|
||||
| QString labelText() const; | Return to prompt content |
|
||||
| void setAutoReset(bool reset); | Sets whether the progress dialog calls reset() immediately when value() equals maximum(), defaults to true. |
|
||||
| bool autoReset() const; | Returns whether to reset automatically |
|
||||
| void setAutoClose(bool close); | Set whether to automatically close the dialog box |
|
||||
| bool autoClose() const; | Returns whether to automatically close the dialog |
|
||||
| QProgressBar* progressBar(); | get progress bar |
|
||||
| void cancel(); | Cancel the progress bar. |
|
||||
| void reset(); | Reset the progress bar. |
|
||||
| void setMaximum(int maximum) | Set the highest value represented by the progress bar, the default value is 100. |
|
||||
| void setMinimum(int minimum) | Set the minimum value represented by the progress bar, the default value is 0. |
|
||||
| void setRange(int minimum, int maximum) | Set the range of the progress bar. If the maximum value is smaller than the minimum value, the minimum value becomes the only legal value. If the current value is outside the new range, reset the progress box with reset(). |
|
||||
| void setValue(int progress) | Set the current progress value. |
|
||||
| void setLabelText(const QString &text) | Set the hint label text. |
|
||||
| void setCancelButtonText(const QString &text) | Set the cancel button text. |
|
||||
| void setSubContent(const QString &text) | Set secondary content. |
|
||||
|
||||
|
||||
|
||||
|
@ -1726,11 +1726,11 @@ KUninstallDialog *uninstallDialog = new KUninstallDialog("browser360-cn-stable",
|
|||
|
||||
| statement | describe |
|
||||
|----------------------------------|------------------|
|
||||
| QLabel* debAppNameLabel(); | 获取应用名称的label |
|
||||
| QLabel* debNameLabel(); | 获取包名的label |
|
||||
| QLabel* debIconLabel(); | 获取应用图标的label |
|
||||
| QLabel* debVersionLabel(); | 获取包版本的label |
|
||||
| QPushButton* uninstallButtton(); | 获取卸载按钮pushbutton |
|
||||
| QLabel* debAppNameLabel(); | Get the label of the application name |
|
||||
| QLabel* debNameLabel(); | Get the label of the package name |
|
||||
| QLabel* debIconLabel(); | Get the label of the application icon |
|
||||
| QLabel* debVersionLabel(); | Get the label of the package version |
|
||||
| QPushButton* uninstallButtton(); | Get the uninstall button pushbutton |
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue