forked from openkylin/docs
更新前两个表格
This commit is contained in:
parent
d40c636fe1
commit
b3ba173d51
|
@ -3394,50 +3394,17 @@ $ sudo apt-get install libkysdk-package libkysdk-package-dev
|
|||
> MixedType:过渡结构
|
||||
|
||||
|
||||
```
|
||||
+------------------------+-------------------------------------------+
|
||||
| 声明 | 描述 |
|
||||
+========================+===========================================+
|
||||
| > QWidget\* sideBar(); | 获取左边栏 widget,通过 setlayout 添加自定 |
|
||||
+------------------------+-------------------------------------------+
|
||||
| 声明 | 描述 | | |
|
||||
|------------------------------------------------|--------------------------------------------------|---|---|
|
||||
| QWidget* sideBar(); | 获取左边栏widget,通过setlayout添加自定义内容。 | | |
|
||||
| QWidget* baseBar(); | 获取主内容区widget,通过setlayout添加自定义内容。 | | |
|
||||
| void setIcon(const QIcon& icon); | 通过icon添加窗体图标 | | |
|
||||
| void setIcon(const QString& iconName); | 设置窗体图标,iconName 需要直接指定系统目录中的图标名称,如"kylin-music"。 | | |
|
||||
| void setWidgetName(const QString& widgetName); | 设置窗体名称。 | | |
|
||||
| KWindowButtonBar* windowButtonBar(); | 获取窗口三联组合控件,以控制是否显示最大化、最小化按钮和下拉菜单按钮。 | | |
|
||||
| KIconBar* iconBar(); | 获取窗口标题、图标组合控件,以控制相关样式。 | | |
|
||||
| void setLayoutType(LayoutType type); | 设置布局结构类型。 | | |
|
||||
|
||||
+----------------------------------+----------------------------------+
|
||||
| | > 义内容。 |
|
||||
+==================================+==================================+
|
||||
| > QWidget\* baseBar(); | 获取主内容区 widget,通过 |
|
||||
| | setlayout 添加自 |
|
||||
| | |
|
||||
| | > 定义内容。 |
|
||||
+----------------------------------+----------------------------------+
|
||||
| > void setIcon(const QIcon& | > 通过 icon 添加窗体图标 |
|
||||
| > icon); | |
|
||||
+----------------------------------+----------------------------------+
|
||||
| > void setIcon(const QString& | 设置窗体图标,iconName |
|
||||
| > iconName); | 需要直接指定系 |
|
||||
| | |
|
||||
| | > 统目录中 |
|
||||
| | 的图标名称,如\"kylin-music\"。 |
|
||||
+----------------------------------+----------------------------------+
|
||||
| > void setWidgetName(const | > 设置窗体名称。 |
|
||||
| > QString& | |
|
||||
| > | |
|
||||
| > widgetName); | |
|
||||
+----------------------------------+----------------------------------+
|
||||
| > KWindowButtonBar\* | 获取 |
|
||||
| > | 窗口三联组合控件,以控制是否显示 |
|
||||
| > windowButtonBar(); | |
|
||||
| | > 最 |
|
||||
| | 大化、最小化按钮和下拉菜单按钮。 |
|
||||
+----------------------------------+----------------------------------+
|
||||
| > KIconBar\* iconBar(); | 获取 |
|
||||
| | 窗口标题、图标组合控件,以控制相 |
|
||||
| | |
|
||||
| | > 关样式。 |
|
||||
+----------------------------------+----------------------------------+
|
||||
| > void setLayoutType(LayoutType | > 设置布局结构类型。 |
|
||||
| > type); | |
|
||||
+----------------------------------+----------------------------------+
|
||||
```
|
||||
|
||||
|
||||
#### **4.1.1.2** KBubbleWidget
|
||||
|
@ -3448,18 +3415,7 @@ $ sudo apt-get install libkysdk-package libkysdk-package-dev
|
|||
|
||||
> 角、毛玻璃以及透明度。自 2.0.0.0 版本启用。
|
||||
|
||||
|
||||
```
|
||||
+----------+----------------------------------------------------------+
|
||||
| 枚 举 类 | > enum TailDirection{ TopDirection, LeftDirection, |
|
||||
| | > BottomDirection, |
|
||||
| > 型 | > |
|
||||
| | > RightDirection, None }; |
|
||||
+==========+==========================================================+
|
||||
| | > enum TailLocation{ LeftLocation, MiddleLocation, |
|
||||
| | > RightLocation }; |
|
||||
+----------+----------------------------------------------------------+
|
||||
```
|
||||
<table style="width: auto;"><tbody><tr><td colSpan="1" rowSpan="2" width="75">枚举类型</td><td colSpan="1" rowSpan="1" width="492">enum TailDirection{ TopDirection, LeftDirection, BottomDirection, RightDirection, None };</td></tr><tr><td colSpan="1" rowSpan="1" width="492">enum TailLocation{ LeftLocation, MiddleLocation, RightLocation };</td></tr></tbody></table>
|
||||
|
||||
|
||||
> TailDirection:气泡尾部的显示方向
|
||||
|
@ -3467,44 +3423,19 @@ $ sudo apt-get install libkysdk-package libkysdk-package-dev
|
|||
> TailLocation:指定气泡尾部的显示位置
|
||||
|
||||
|
||||
```
|
||||
+-------------------------------------------+--------------------------------+
|
||||
| 声明 | 描述 |
|
||||
+===========================================+================================+
|
||||
| > void setTailSize(const QSize& size); | > 设置气泡尾部尺寸 |
|
||||
+-------------------------------------------+--------------------------------+
|
||||
| > QSize tailSize(); | > 获取气泡尾部尺寸 |
|
||||
+-------------------------------------------+--------------------------------+
|
||||
| > void setTailPosition(TailDirection | > 设置气泡尾部显示位置 |
|
||||
| > | |
|
||||
| > dirType, TailLocation | |
|
||||
| > | |
|
||||
| > locType=MiddleLocation); | |
|
||||
+-------------------------------------------+--------------------------------+
|
||||
| > TailDirection tailDirection(); | 获取气泡尾部显示方向(左、上、 |
|
||||
| | |
|
||||
| | > 右、下) |
|
||||
+-------------------------------------------+--------------------------------+
|
||||
| > TailLocation tailLocation(); | 获取气泡尾部显示位置(居左、居 |
|
||||
| | |
|
||||
| | > 中、居右) |
|
||||
+-------------------------------------------+--------------------------------+
|
||||
| > void setBorderRadius(int bottomLeft,int | > 设置窗体圆角半径 |
|
||||
| > | |
|
||||
| > topLeft,int topRight,int bottomRight); | |
|
||||
+-------------------------------------------+--------------------------------+
|
||||
| > void setBorderRadius(int radius); | > 设置窗体圆角半径 |
|
||||
+-------------------------------------------+--------------------------------+
|
||||
| > void setEnableBlur(bool flag); | > 设置是否启用毛玻璃效果 |
|
||||
+-------------------------------------------+--------------------------------+
|
||||
| > bool enableBlur(); | > 获取是否已启用毛玻璃效果 |
|
||||
+-------------------------------------------+--------------------------------+
|
||||
| > void setOpacity(qreal opacity); | > 设置透明度 |
|
||||
+-------------------------------------------+--------------------------------+
|
||||
| > qreal opacity(); | > 获取透明度 |
|
||||
+-------------------------------------------+--------------------------------+
|
||||
|
||||
```
|
||||
| 声明 | 描述 |
|
||||
|-----------------------------------------------------------------------------------|----------------------|
|
||||
| void setTailSize(const QSize& size); | 设置气泡尾部尺寸 |
|
||||
| QSize tailSize(); | 获取气泡尾部尺寸 |
|
||||
| void setTailPosition(TailDirection dirType, TailLocation locType=MiddleLocation); | 设置气泡尾部显示位置 |
|
||||
| TailDirection tailDirection(); | 获取气泡尾部显示方向(左、上、右、下) |
|
||||
| TailLocation tailLocation(); | 获取气泡尾部显示位置(居左、居中、居右) |
|
||||
| void setBorderRadius(int bottomLeft,int topLeft,int topRight,int bottomRight); | 设置窗体圆角半径 |
|
||||
| void setBorderRadius(int radius); | 设置窗体圆角半径 |
|
||||
| void setEnableBlur(bool flag); | 设置是否启用毛玻璃效果 |
|
||||
| bool enableBlur(); | 获取是否已启用毛玻璃效果 |
|
||||
| void setOpacity(qreal opacity); | 设置透明度 |
|
||||
| qreal opacity(); | 获取透明度 |
|
||||
|
||||
|
||||
### **4.1.2** 对话框模块
|
||||
|
|
Loading…
Reference in New Issue