X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreenSimulator%2Fsrc%2Fmainwindow.cpp;h=d670154dc7e4c8f7e14f8cd2e91120749c23a9cf;hb=cf8cd699e91df40c3f9070019f7c561432b4b4dd;hp=74c02d7c01f5deba230a056c2aff2c8cf2c19afe;hpb=0a468d9b5ae7b3e5ba106facf17698d89b1ce200;p=staging%2FHomeScreen.git diff --git a/HomeScreenSimulator/src/mainwindow.cpp b/HomeScreenSimulator/src/mainwindow.cpp index 74c02d7..d670154 100644 --- a/HomeScreenSimulator/src/mainwindow.cpp +++ b/HomeScreenSimulator/src/mainwindow.cpp @@ -149,3 +149,13 @@ void MainWindow::on_pushButton_PopupExample_clicked() { mp_dBusPopupProxy->showPopup(0, "Hello Popup!\nNice to see you!"); } + +void MainWindow::on_pushButton_comboBoxExample_clicked() +{ + QStringList choices; + choices.append("Item1"); + choices.append("Item2"); + choices.append("Item3"); + choices.append("Item4"); + mp_dBusPopupProxy->showPopupComboBox("Make your choice!", choices); +}