Refactor InputObject(EventFilter and VirtualKeyboard).
This commit is contained in:
@@ -70,13 +70,13 @@
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="5" column="1">
|
||||
<widget class="QLineEdit" name="wl_IP"/>
|
||||
<widget class="ULineEdit" name="wl_IP"/>
|
||||
</item>
|
||||
<item row="6" column="1">
|
||||
<widget class="QLineEdit" name="wl_Port"/>
|
||||
<widget class="ULineEdit" name="wl_Port"/>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QLineEdit" name="wl_AE"/>
|
||||
<widget class="ULineEdit" name="wl_AE"/>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<spacer name="verticalSpacer_3">
|
||||
@@ -129,7 +129,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="wl_Name"/>
|
||||
<widget class="ULineEdit" name="wl_Name"/>
|
||||
</item>
|
||||
<item row="6" column="2">
|
||||
<widget class="QToolButton" name="toolButton_2">
|
||||
@@ -157,10 +157,10 @@
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="4" column="1">
|
||||
<widget class="QLineEdit" name="pacs_IP"/>
|
||||
<widget class="ULineEdit" name="pacs_IP"/>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QLineEdit" name="pacs_AE"/>
|
||||
<widget class="ULineEdit" name="pacs_AE"/>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="lbl_Name_2">
|
||||
@@ -190,7 +190,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QLineEdit" name="pacs_Port"/>
|
||||
<widget class="ULineEdit" name="pacs_Port"/>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<spacer name="verticalSpacer_2">
|
||||
@@ -209,7 +209,7 @@
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="pacs_Name"/>
|
||||
<widget class="ULineEdit" name="pacs_Name"/>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="lbl_Port_2">
|
||||
@@ -247,7 +247,7 @@
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="recon_Name"/>
|
||||
<widget class="ULineEdit" name="recon_Name"/>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<spacer name="verticalSpacer">
|
||||
@@ -280,7 +280,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QLineEdit" name="recon_IP"/>
|
||||
<widget class="ULineEdit" name="recon_IP"/>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="lbl_Name_3">
|
||||
@@ -296,7 +296,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="1">
|
||||
<widget class="QLineEdit" name="recon_Port"/>
|
||||
<widget class="ULineEdit" name="recon_Port"/>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="lbl_AE_3">
|
||||
@@ -306,7 +306,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QLineEdit" name="recon_AE"/>
|
||||
<widget class="ULineEdit" name="recon_AE"/>
|
||||
</item>
|
||||
<item row="6" column="2">
|
||||
<widget class="QToolButton" name="toolButton_3">
|
||||
@@ -382,4 +382,11 @@
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>ULineEdit</class>
|
||||
<extends>QLineEdit</extends>
|
||||
<header location="global">components/ULineEdit.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
</ui>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include <QFormLayout>
|
||||
#include <QLabel>
|
||||
#include <QtWidgets/QLineEdit>
|
||||
#include "components/ULineEdit.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include <src/device/networkmanager.h>
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
GetAdminPsw::GetAdminPsw(QWidget* parent, Qt::WindowFlags f)
|
||||
: GUIFormBaseDialog(parent, f)
|
||||
, mPsw(new QLineEdit(this))
|
||||
, mPsw(new ULineEdit(this))
|
||||
, mLabelError(new QLabel(this))
|
||||
{
|
||||
setWindowModality(Qt::WindowModal);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "src/dialogs/GUIFormBaseDialog.h"
|
||||
|
||||
class QLineEdit;
|
||||
class ULineEdit;
|
||||
class QLabel;
|
||||
|
||||
class GetAdminPsw : public GUIFormBaseDialog
|
||||
@@ -22,7 +22,7 @@ protected:
|
||||
bool updateReferenceData();
|
||||
|
||||
private:
|
||||
QLineEdit* mPsw = nullptr;
|
||||
ULineEdit* mPsw = nullptr;
|
||||
QLabel* mLabelError = nullptr;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
|
||||
#include <QFormLayout>
|
||||
#include <QLabel>
|
||||
#include <QtWidgets/QLineEdit>
|
||||
#include "components/ULineEdit.h"
|
||||
|
||||
#include "device/networkmanager.h"
|
||||
|
||||
GetIPDialog::GetIPDialog(QWidget* parent, Qt::WindowFlags f)
|
||||
: GUIFormBaseDialog(parent, f)
|
||||
, mIp(new QLineEdit(this))
|
||||
, mMask(new QLineEdit(this))
|
||||
, mIp(new ULineEdit(this))
|
||||
, mMask(new ULineEdit(this))
|
||||
, mLabelError(new QLabel(this))
|
||||
{
|
||||
setWindowModality(Qt::WindowModal);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "src/dialogs/GUIFormBaseDialog.h"
|
||||
|
||||
class QLineEdit;
|
||||
class ULineEdit;
|
||||
class QLabel;
|
||||
|
||||
class GetIPDialog :public GUIFormBaseDialog
|
||||
@@ -24,8 +24,8 @@ protected:
|
||||
bool updateReferenceData();
|
||||
|
||||
private:
|
||||
QLineEdit* mIp = nullptr;
|
||||
QLineEdit* mMask = nullptr;
|
||||
ULineEdit* mIp = nullptr;
|
||||
ULineEdit* mMask = nullptr;
|
||||
QLabel* mLabelError = nullptr;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,15 +6,15 @@
|
||||
|
||||
#include <QFormLayout>
|
||||
#include <QLabel>
|
||||
#include <QtWidgets/QLineEdit>
|
||||
#include "components/ULineEdit.h"
|
||||
|
||||
#include "device/networkmanager.h"
|
||||
|
||||
GetRouteDialog::GetRouteDialog(QWidget* parent, Qt::WindowFlags f)
|
||||
: GUIFormBaseDialog(parent, f)
|
||||
, mDestination(new QLineEdit(this))
|
||||
, mNetmask(new QLineEdit(this))
|
||||
, mGateway(new QLineEdit(this))
|
||||
, mDestination(new ULineEdit(this))
|
||||
, mNetmask(new ULineEdit(this))
|
||||
, mGateway(new ULineEdit(this))
|
||||
, mLabelError(new QLabel(this))
|
||||
{
|
||||
setWindowModality(Qt::WindowModal);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "src/dialogs/GUIFormBaseDialog.h"
|
||||
|
||||
class QLineEdit;
|
||||
class ULineEdit;
|
||||
class QLabel;
|
||||
|
||||
class GetRouteDialog :public GUIFormBaseDialog
|
||||
@@ -24,9 +24,9 @@ protected:
|
||||
bool updateReferenceData();
|
||||
|
||||
private:
|
||||
QLineEdit* mDestination = nullptr;
|
||||
QLineEdit* mNetmask = nullptr;
|
||||
QLineEdit* mGateway = nullptr;
|
||||
ULineEdit* mDestination = nullptr;
|
||||
ULineEdit* mNetmask = nullptr;
|
||||
ULineEdit* mGateway = nullptr;
|
||||
QLabel* mLabelError = nullptr;
|
||||
};
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #ABABAB, stop: 1.0 #CDCDCD);
|
||||
}
|
||||
|
||||
QLineEdit#led_inface{font-size:15px;border: 0px;}
|
||||
ULineEdit#led_inface{font-size:15px;border: 0px;}
|
||||
</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
@@ -103,7 +103,7 @@
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QLineEdit" name="addr_ip"/>
|
||||
<widget class="ULineEdit" name="addr_ip"/>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
@@ -152,7 +152,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="led_inface">
|
||||
<widget class="ULineEdit" name="led_inface">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
@@ -187,7 +187,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QLineEdit" name="addr_mask"/>
|
||||
<widget class="ULineEdit" name="addr_mask"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<spacer name="verticalSpacer_2">
|
||||
@@ -301,7 +301,7 @@
|
||||
<widget class="QWidget" name="widget_4" native="true">
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="0" column="2">
|
||||
<widget class="QLineEdit" name="led_gw">
|
||||
<widget class="ULineEdit" name="led_gw">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
@@ -383,7 +383,7 @@
|
||||
<number>9</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="SlideTableView" name="tbl_route">
|
||||
<widget class="SlideTableView" name="tbl_route">
|
||||
<property name="gridStyle">
|
||||
<enum>Qt::DashLine</enum>
|
||||
</property>
|
||||
@@ -453,13 +453,13 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="daq_AE"/>
|
||||
<widget class="ULineEdit" name="daq_AE"/>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="daq_Name"/>
|
||||
<widget class="ULineEdit" name="daq_Name"/>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QLineEdit" name="daq_Port"/>
|
||||
<widget class="ULineEdit" name="daq_Port"/>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="lbl_Port">
|
||||
@@ -482,7 +482,7 @@
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="lbl_AE">
|
||||
<widget class="QLabel" name="lbl_AE">
|
||||
<property name="text">
|
||||
<string>AE</string>
|
||||
</property>
|
||||
@@ -496,7 +496,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="daq_IP">
|
||||
<widget class="ULineEdit" name="daq_IP">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
@@ -563,6 +563,11 @@
|
||||
<extends>QTableView</extends>
|
||||
<header location="global">components/SlideTableView.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>ULineEdit</class>
|
||||
<extends>QLineEdit</extends>
|
||||
<header location="global">components/ULineEdit.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
||||
Reference in New Issue
Block a user