Implementing app launch and app surface control workflow. Using WindowManager to...
[staging/HomeScreen.git] / HomeScreenSimulator / src / mainwindow.cpp
index ffc5170..d670154 100644 (file)
@@ -144,3 +144,18 @@ void MainWindow::on_pushButton_IconExample_clicked()
     // Home Screen app resources...
     mp_ui->tableWidget_Status->setItem(0, 2, new QTableWidgetItem(":/icons/home_day.png"));
 }
+
+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);
+}