1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

update lineeditwithsearch

This commit is contained in:
tianduanrui 2020-04-09 16:49:11 +08:00
parent d1f8b28c30
commit 6499def2e0
2 changed files with 29 additions and 22 deletions

View File

@ -1,4 +1,4 @@
#include "qqtlineeditwithsearch.h"
#include "qqtlineeditwithsearch.h"
#include <QHBoxLayout>
#include "qqtwidgets.h"
@ -33,6 +33,11 @@ void QQtLineEditWithSearch::setButtonText(QString text)
m_btnBrower->setText ( text );
}
void QQtLineEditWithSearch::setButtonIcon ( QString icon )
{
m_btnBrower->setIcon ( QIcon ( icon ) );
}
void QQtLineEditWithSearch::setObjectName ( const QString& name )
{
QLineEdit::setObjectName ( name );

View File

@ -14,7 +14,9 @@ class QQTSHARED_EXPORT QQtLineEditWithSearch : public QLineEdit
Q_OBJECT
public:
explicit QQtLineEditWithSearch ( QWidget* parent = 0 );
void setButtonText ( QString text );
void setButtonIcon ( QString image );
void setObjectName ( const QString& name );
signals: