예제 #1
0
/**
\param parent
**/
BlDateSearch::BlDateSearch ( QWidget *parent ) : BlWidget ( parent )
{
    BL_FUNC_DEBUG
    setupUi ( this );
    QObject::connect ( m_busquedaFecha, SIGNAL ( clicked ( bool ) ), this, SLOT ( s_searchFecha() ) );
    QObject::connect ( m_textoFecha, SIGNAL ( returnPressed() ), this, SLOT ( s_returnPressed() ) );
    QObject::connect ( m_textoFecha, SIGNAL ( editingFinished() ), this, SLOT ( s_fechalostFocus() ) );
    QObject::connect ( m_textoFecha, SIGNAL ( editingFinished() ), this, SIGNAL ( editingFinished() ) );

    /// Establecemos la delegacion del foco en el texto
    setFocusProxy(m_textoFecha);
}
예제 #2
0
파일: qnfind.cpp 프로젝트: srgan/label
void QNFind::on_lineEdit_returnPressed()
{
	emit s_returnPressed(ui.lineEdit->text());
	ui.pushButton_2->setFocus();
}