修改部分格式

This commit is contained in:
陌生人 2022-11-11 13:30:31 +08:00
parent fc31bc54ef
commit 582b57adba
1 changed files with 22 additions and 38 deletions

View File

@ -1730,22 +1730,23 @@ aux_source_directory(. SOURCESCODE)
![输入图片说明](assets/openKylin%20SDK%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97V2.0/image9.png)
> (3)int KInputDialog::getInt(QWidget \*parent,const QString &label, int
> value,
>
> int min, int max, int step, bool \*ok, Qt::WindowFlags flags)
>
> (3)
```
int KInputDialog::getInt(QWidget *parent,const QString &label, int value,
int min, int max, int step, bool *ok, Qt::WindowFlags flags)
```
> 整型数字输入对话框,同 QInputDialog
>
![输入图片说明](assets/openKylin%20SDK%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97V2.0/image10.png)
>
> \(3\) double KInputDialog::getDouble(QWidget \*parent,const QString
> &label,
>
> double value, double minValue, double maxValue,
>
> int decimals, bool \*ok, Qt::WindowFlags flags)
>
> (3)
```
double KInputDialog::getDouble(QWidget *parent,const QString &label,
double value, double minValue, double maxValue,
int decimals, bool *ok, Qt::WindowFlags flags)
```
> 浮点型数字输入对话框,同 QInputDialog
>
![输入图片说明](assets/openKylin%20SDK%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97V2.0/image11.png)
@ -1834,31 +1835,17 @@ aux_source_directory(. SOURCESCODE)
#### **4.1.2.4** 进度对话框
>
> 功能描述KProgressDialog继承自 QDialog参考 QProgressDialog 源码,
对子控件 ProgressBar 的样式进行了调整。可以设置具体下载信息是否需要显
> 示,设置进度值的后缀等。
对子控件 ProgressBar 的样式进行了调整。可以设置具体下载信息是否需要显示,设置进度值的后缀等。
```
+----------------------------------------------------------------------+
| > KProgressDialog \*progress2 = new |
| > KProgressDialog(tr(\"下载\"),tr(\"取消 |
| > |
| > \"),0,100,this); |
| > |
| > progress2-\>setSubContent(\"下载中\...\"); |
| > |
| > progress2-\>setSuffix(\"MB\"); |
| > |
| > progress2-\>setWindowTitle(\"进度对话框\"); |
| > |
| > progress2-\>setWindowIcon(\"kylin-music\"); |
| > |
| > progress2-\>setValue(50); |
| > |
| > progress2-\>setShowDetail(false); |
+----------------------------------------------------------------------+
KProgressDialog *progress2 = new KProgressDialog(tr("下载"),tr("取消"),0,100,this);
progress2->setSubContent("下载中...");
progress2->setSuffix("MB");
progress2->setWindowTitle("进度对话框");
progress2->setWindowIcon("kylin-music");
progress2->setValue(50);
progress2->setShowDetail(false);
```
@ -1909,10 +1896,7 @@ aux_source_directory(. SOURCESCODE)
```
+----------------------------------------------------------------------+
| > KUninstallDialog \*uninstallDialog = new |
| > KUninstallDialog(\"browser360-cn-stable\",\"104\",this); |
+----------------------------------------------------------------------+
KUninstallDialog *uninstallDialog = new KUninstallDialog("browser360-cn-stable","104",this);
```