searchui/onlinehandler/tsrc/t_baiduplugin/src/t_baiduplugin.cpp
changeset 17 7d8c8d8f5eab
parent 12 993ab30e92fc
equal deleted inserted replaced
12:993ab30e92fc 17:7d8c8d8f5eab
    75     str.append(searchQuery);
    75     str.append(searchQuery);
    76     HbLabel *label = new HbLabel(str);
    76     HbLabel *label = new HbLabel(str);
    77     popup->setHeadingWidget(label);
    77     popup->setHeadingWidget(label);
    78     HbAction * action = new HbAction(hbTrId("Back"), popup);
    78     HbAction * action = new HbAction(hbTrId("Back"), popup);
    79     connect(action, SIGNAL(triggered()), this, SLOT(BackEvent()));
    79     connect(action, SIGNAL(triggered()), this, SLOT(BackEvent()));
    80     popup->setPrimaryAction(action);
    80     popup->addAction(action);
    81     popup->show();
    81     popup->show();
    82 #else
    82 #else
    83     QString url("http://www.baidu.com/s?wd=");
    83     QString url("http://www.baidu.com/s?wd=");
    84     url.append(searchQuery);
    84     url.append(searchQuery);
    85     QDesktopServices::openUrl(url);
    85     QDesktopServices::openUrl(url);