chore: 添加 plugin 中的 DSearchEdit 控件

前面没有加上这个,虽然示例里面写的有,现在加上。

Log:
Change-Id: I7565401c9244c17a2bf260c56f3c9097aa53623d
This commit is contained in:
wangpenga 2021-07-14 09:45:00 +08:00
parent fc212a371f
commit 88611951e1
2 changed files with 5 additions and 3 deletions

View File

@ -52,12 +52,12 @@
#include <DSuggestButton>
#include <DSwitchButton>
#include <DWarningButton>
#include <DSearchEdit>
// not added
// #include <DSearchEdit>
// #include <DHorizontalLine>
// #include <DVerticalLine>
// TODO: setText problem, add in v5.6
#include <DIconButton>
@ -249,13 +249,14 @@ GENERATE_CUSTOMER_WIDGET(DColoredProgressBar, 200, 30);
GENERATE_CUSTOMER_WIDGET(DPasswordEdit, 200, 40);
GENERATE_CUSTOMER_WIDGET(DTabBar, 40, 40);
GENERATE_CUSTOMER_WIDGET(DWaterProgress, 100, 100); // TODO: 大小被写死了: 100*100
GENERATE_CUSTOMER_WIDGET(DWaterProgress, 100, 100); // TODO: 大小被写死了: 100*100
GENERATE_CUSTOMER_WIDGET(DSearchComboBox, 200, 40);
GENERATE_CUSTOMER_WIDGET(DSpinner, 40, 40);
GENERATE_CUSTOMER_WIDGET(DToolButton, 40, 40);
GENERATE_CUSTOMER_WIDGET(DSuggestButton, 100, 40);
GENERATE_CUSTOMER_WIDGET(DWarningButton, 100, 40);
GENERATE_CUSTOMER_WIDGET(DSwitchButton, 75, 32);
GENERATE_CUSTOMER_WIDGET(DSearchEdit, 200, 40);
//GENERATE_CUSTOMER_WIDGET(DShadowLine, 200, 40); // 看不到效果
//GENERATE_CUSTOMER_WIDGET(DSegmentedControl, 200, 40);

View File

@ -48,6 +48,7 @@ DCustomWidgets::DCustomWidgets(QObject *parent)
widgets.append(new DSuggestButtonPlugin(this));
widgets.append(new DSwitchButtonPlugin(this));
widgets.append(new DWarningButtonPlugin(this));
widgets.append(new DSearchEditPlugin(this));
}
QList<QDesignerCustomWidgetInterface*> DCustomWidgets::customWidgets() const