Exemplo n.º 1
0
void TextInput::onEscape() {

    m_value.clear();
    setValue();

    onHome();

}
Exemplo n.º 2
0
void WebBrowser::setupConnections()
{
    connect(address_,SIGNAL(returnPressed()),this,SLOT(onLoad()));
    connect(refresh_,SIGNAL(pressed()),web_,SLOT(reload()));
    connect(forward_,SIGNAL(pressed()),web_,SLOT(forward()));
    connect(back_,SIGNAL(pressed()),web_,SLOT(back()));
    connect(home_,SIGNAL(pressed()),this,SLOT(onHome()));
    connect(web_,SIGNAL(urlChanged(QUrl)),this,SLOT(onUrlChange(QUrl)));
    connect(web_,SIGNAL(loadFinished(bool)),this,SLOT(onLoadFinished(bool)));
}
Exemplo n.º 3
0
void TextInput::onEnter() {

    m_history.push_back(m_value);
    m_historyIter = m_history.begin();

    m_value.clear();

    setValue();
    onHome();

}