Commit feaada8d by ss.dai

完成订单搜索样式

parent 10ba2608
...@@ -186,6 +186,8 @@ void MainForm::on_mainBtnSet_clicked() ...@@ -186,6 +186,8 @@ void MainForm::on_mainBtnSet_clicked()
void MainForm::on_mainBtnHide_clicked() void MainForm::on_mainBtnHide_clicked()
{ {
hide(); hide();
ui->mainEdtSearch->clear();
m_padForm->hide();
showFloatForm(); showFloatForm();
} }
......
...@@ -8,6 +8,7 @@ PadForm::PadForm(QWidget *parent) : ...@@ -8,6 +8,7 @@ PadForm::PadForm(QWidget *parent) :
ui->setupUi(this); ui->setupUi(this);
setWindowFlags(windowFlags() | Qt::FramelessWindowHint); setWindowFlags(windowFlags() | Qt::FramelessWindowHint);
setAttribute(Qt::WA_TranslucentBackground);
} }
PadForm::~PadForm() PadForm::~PadForm()
......
...@@ -13,312 +13,327 @@ ...@@ -13,312 +13,327 @@
<property name="windowTitle"> <property name="windowTitle">
<string>Dialog</string> <string>Dialog</string>
</property> </property>
<widget class="QWidget" name="gridLayoutWidget"> <layout class="QGridLayout" name="gridLayout_2">
<property name="geometry"> <property name="leftMargin">
<rect> <number>0</number>
<x>10</x> </property>
<y>10</y> <property name="topMargin">
<width>239</width> <number>0</number>
<height>281</height> </property>
</rect> <property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <item row="0" column="0">
<item row="0" column="1"> <widget class="QWidget" name="padWdg" native="true">
<widget class="QPushButton" name="padBtn2"> <layout class="QGridLayout" name="gridLayout_3">
<property name="minimumSize"> <item row="0" column="0">
<size> <layout class="QGridLayout" name="gridLayout">
<width>56</width> <item row="0" column="1">
<height>56</height> <widget class="QPushButton" name="padBtn2">
</size> <property name="minimumSize">
</property> <size>
<property name="maximumSize"> <width>56</width>
<size> <height>56</height>
<width>56</width> </size>
<height>56</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="focusPolicy"> <width>56</width>
<enum>Qt::NoFocus</enum> <height>56</height>
</property> </size>
<property name="text"> </property>
<string>2</string> <property name="focusPolicy">
</property> <enum>Qt::NoFocus</enum>
<property name="num" stdset="0"> </property>
<string>2</string> <property name="text">
</property> <string>2</string>
</widget> </property>
</item> <property name="num" stdset="0">
<item row="0" column="2"> <string>2</string>
<widget class="QPushButton" name="padBtn3"> </property>
<property name="minimumSize"> </widget>
<size> </item>
<width>56</width> <item row="0" column="2">
<height>56</height> <widget class="QPushButton" name="padBtn3">
</size> <property name="minimumSize">
</property> <size>
<property name="maximumSize"> <width>56</width>
<size> <height>56</height>
<width>56</width> </size>
<height>56</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="focusPolicy"> <width>56</width>
<enum>Qt::NoFocus</enum> <height>56</height>
</property> </size>
<property name="text"> </property>
<string>3</string> <property name="focusPolicy">
</property> <enum>Qt::NoFocus</enum>
<property name="num" stdset="0"> </property>
<string>3</string> <property name="text">
</property> <string>3</string>
</widget> </property>
</item> <property name="num" stdset="0">
<item row="1" column="1"> <string>3</string>
<widget class="QPushButton" name="padBtn5"> </property>
<property name="minimumSize"> </widget>
<size> </item>
<width>56</width> <item row="1" column="1">
<height>56</height> <widget class="QPushButton" name="padBtn5">
</size> <property name="minimumSize">
</property> <size>
<property name="maximumSize"> <width>56</width>
<size> <height>56</height>
<width>56</width> </size>
<height>56</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="focusPolicy"> <width>56</width>
<enum>Qt::NoFocus</enum> <height>56</height>
</property> </size>
<property name="text"> </property>
<string>5</string> <property name="focusPolicy">
</property> <enum>Qt::NoFocus</enum>
<property name="num" stdset="0"> </property>
<string>5</string> <property name="text">
</property> <string>5</string>
</widget> </property>
</item> <property name="num" stdset="0">
<item row="1" column="2"> <string>5</string>
<widget class="QPushButton" name="padBtn6"> </property>
<property name="minimumSize"> </widget>
<size> </item>
<width>56</width> <item row="1" column="2">
<height>56</height> <widget class="QPushButton" name="padBtn6">
</size> <property name="minimumSize">
</property> <size>
<property name="maximumSize"> <width>56</width>
<size> <height>56</height>
<width>56</width> </size>
<height>56</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="focusPolicy"> <width>56</width>
<enum>Qt::NoFocus</enum> <height>56</height>
</property> </size>
<property name="text"> </property>
<string>6</string> <property name="focusPolicy">
</property> <enum>Qt::NoFocus</enum>
<property name="num" stdset="0"> </property>
<string>6</string> <property name="text">
</property> <string>6</string>
</widget> </property>
</item> <property name="num" stdset="0">
<item row="1" column="0"> <string>6</string>
<widget class="QPushButton" name="padBtn4"> </property>
<property name="minimumSize"> </widget>
<size> </item>
<width>56</width> <item row="1" column="0">
<height>56</height> <widget class="QPushButton" name="padBtn4">
</size> <property name="minimumSize">
</property> <size>
<property name="maximumSize"> <width>56</width>
<size> <height>56</height>
<width>56</width> </size>
<height>56</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="focusPolicy"> <width>56</width>
<enum>Qt::NoFocus</enum> <height>56</height>
</property> </size>
<property name="text"> </property>
<string>4</string> <property name="focusPolicy">
</property> <enum>Qt::NoFocus</enum>
<property name="num" stdset="0"> </property>
<string>4</string> <property name="text">
</property> <string>4</string>
</widget> </property>
</item> <property name="num" stdset="0">
<item row="2" column="2"> <string>4</string>
<widget class="QPushButton" name="padBtn9"> </property>
<property name="minimumSize"> </widget>
<size> </item>
<width>56</width> <item row="2" column="2">
<height>56</height> <widget class="QPushButton" name="padBtn9">
</size> <property name="minimumSize">
</property> <size>
<property name="maximumSize"> <width>56</width>
<size> <height>56</height>
<width>56</width> </size>
<height>56</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="focusPolicy"> <width>56</width>
<enum>Qt::NoFocus</enum> <height>56</height>
</property> </size>
<property name="text"> </property>
<string>9</string> <property name="focusPolicy">
</property> <enum>Qt::NoFocus</enum>
<property name="num" stdset="0"> </property>
<string>9</string> <property name="text">
</property> <string>9</string>
</widget> </property>
</item> <property name="num" stdset="0">
<item row="2" column="0"> <string>9</string>
<widget class="QPushButton" name="padBtn7"> </property>
<property name="minimumSize"> </widget>
<size> </item>
<width>56</width> <item row="2" column="0">
<height>56</height> <widget class="QPushButton" name="padBtn7">
</size> <property name="minimumSize">
</property> <size>
<property name="maximumSize"> <width>56</width>
<size> <height>56</height>
<width>56</width> </size>
<height>56</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="focusPolicy"> <width>56</width>
<enum>Qt::NoFocus</enum> <height>56</height>
</property> </size>
<property name="text"> </property>
<string>7</string> <property name="focusPolicy">
</property> <enum>Qt::NoFocus</enum>
<property name="num" stdset="0"> </property>
<string>7</string> <property name="text">
</property> <string>7</string>
</widget> </property>
</item> <property name="num" stdset="0">
<item row="2" column="1"> <string>7</string>
<widget class="QPushButton" name="padBtn8"> </property>
<property name="minimumSize"> </widget>
<size> </item>
<width>56</width> <item row="2" column="1">
<height>56</height> <widget class="QPushButton" name="padBtn8">
</size> <property name="minimumSize">
</property> <size>
<property name="maximumSize"> <width>56</width>
<size> <height>56</height>
<width>56</width> </size>
<height>56</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="focusPolicy"> <width>56</width>
<enum>Qt::NoFocus</enum> <height>56</height>
</property> </size>
<property name="text"> </property>
<string>8</string> <property name="focusPolicy">
</property> <enum>Qt::NoFocus</enum>
<property name="num" stdset="0"> </property>
<string>8</string> <property name="text">
</property> <string>8</string>
</widget> </property>
</item> <property name="num" stdset="0">
<item row="0" column="0"> <string>8</string>
<widget class="QPushButton" name="padBtn1"> </property>
<property name="minimumSize"> </widget>
<size> </item>
<width>56</width> <item row="0" column="0">
<height>56</height> <widget class="QPushButton" name="padBtn1">
</size> <property name="minimumSize">
</property> <size>
<property name="maximumSize"> <width>56</width>
<size> <height>56</height>
<width>56</width> </size>
<height>56</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="focusPolicy"> <width>56</width>
<enum>Qt::NoFocus</enum> <height>56</height>
</property> </size>
<property name="text"> </property>
<string>1</string> <property name="focusPolicy">
</property> <enum>Qt::NoFocus</enum>
<property name="num" stdset="0"> </property>
<string>1</string> <property name="text">
</property> <string>1</string>
</widget> </property>
</item> <property name="num" stdset="0">
<item row="3" column="0"> <string>1</string>
<widget class="QPushButton" name="padBtnDel"> </property>
<property name="minimumSize"> </widget>
<size> </item>
<width>56</width> <item row="3" column="0">
<height>56</height> <widget class="QPushButton" name="padBtnDel">
</size> <property name="minimumSize">
</property> <size>
<property name="maximumSize"> <width>56</width>
<size> <height>56</height>
<width>56</width> </size>
<height>56</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="focusPolicy"> <width>56</width>
<enum>Qt::NoFocus</enum> <height>56</height>
</property> </size>
<property name="text"> </property>
<string/> <property name="focusPolicy">
</property> <enum>Qt::NoFocus</enum>
</widget> </property>
</item> <property name="text">
<item row="3" column="1"> <string/>
<widget class="QPushButton" name="padBtn0"> </property>
<property name="minimumSize"> </widget>
<size> </item>
<width>56</width> <item row="3" column="1">
<height>56</height> <widget class="QPushButton" name="padBtn0">
</size> <property name="minimumSize">
</property> <size>
<property name="maximumSize"> <width>56</width>
<size> <height>56</height>
<width>56</width> </size>
<height>56</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="focusPolicy"> <width>56</width>
<enum>Qt::NoFocus</enum> <height>56</height>
</property> </size>
<property name="text"> </property>
<string>0</string> <property name="focusPolicy">
</property> <enum>Qt::NoFocus</enum>
<property name="num" stdset="0"> </property>
<string>0</string> <property name="text">
</property> <string>0</string>
</widget> </property>
</item> <property name="num" stdset="0">
<item row="3" column="2"> <string>0</string>
<widget class="QPushButton" name="padBtnClose"> </property>
<property name="minimumSize"> </widget>
<size> </item>
<width>56</width> <item row="3" column="2">
<height>56</height> <widget class="QPushButton" name="padBtnClose">
</size> <property name="minimumSize">
</property> <size>
<property name="maximumSize"> <width>56</width>
<size> <height>56</height>
<width>56</width> </size>
<height>56</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="focusPolicy"> <width>56</width>
<enum>Qt::NoFocus</enum> <height>56</height>
</property> </size>
<property name="text"> </property>
<string>关闭</string> <property name="focusPolicy">
</property> <enum>Qt::NoFocus</enum>
</widget> </property>
</item> <property name="text">
</layout> <string>关闭</string>
</widget> </property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget> </widget>
<resources/> <resources/>
<connections> <connections>
......
...@@ -225,6 +225,21 @@ QWidget ...@@ -225,6 +225,21 @@ QWidget
{ {
height: 0px; height: 0px;
} }
#mainListWdg0
{
spacing: 10px;
color: rgb(90, 90, 90);
font: 12pt "微软雅黑";
}
#mainListWdg0::item
{
height: 30px;
}
#mainListWdg0::item:selected
{
background: #ffbf3f;
}
/*---------------------------------mainForm[ end ]---------------------------------*/ /*---------------------------------mainForm[ end ]---------------------------------*/
/*---------------------------------pickForm[begin]---------------------------------*/ /*---------------------------------pickForm[begin]---------------------------------*/
...@@ -490,6 +505,50 @@ QWidget ...@@ -490,6 +505,50 @@ QWidget
} }
/*---------------------------------DetailForm[ end ]---------------------------------*/ /*---------------------------------DetailForm[ end ]---------------------------------*/
/*---------------------------------padForm[begin]---------------------------------*/
#padWdg
{
border-image: url(:pad_bg.png);
}
#padBtn1,#padBtn2,#padBtn3
{
font: 13pt "微软雅黑";
color: rgb(98, 98, 98);
border-image: url(:numBtn0.png);
}
#padBtn4,#padBtn5,#padBtn6
{
font: 13pt "微软雅黑";
color: rgb(98, 98, 98);
border-image: url(:numBtn1.png);
}
#padBtn7,#padBtn8,#padBtn9,#padBtn0
{
font: 13pt "微软雅黑";
color: rgb(98, 98, 98);
border-image: url(:numBtn2.png);
}
#padBtnClose
{
font: 11pt "微软雅黑";
color: rgb(98, 98, 98);
border-image: url(:numBtn2.png);
}
#padBtn0:pressed,#padBtn1:pressed,#padBtn2:pressed,#padBtn3:pressed,#padBtn4:pressed,
#padBtn5:pressed,#padBtn6:pressed,#padBtn7:pressed,#padBtn8:pressed,#padBtn9:pressed,#padBtnClose:pressed
{
color: #ffffff;
}
#padBtnDel
{
border-image: url(:delBtn_normal.png);
}
#padBtnDel:pressed
{
border-image: url(:delBtn_press.png);
}
/*---------------------------------padForm[ end ]---------------------------------*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment