mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
update lineeditwithsearch
This commit is contained in:
parent
d1f8b28c30
commit
6499def2e0
@ -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 );
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user