-
- mp_dBusDayNightMode_StatusBarWidget->setDayNightMode(m_dayNightMode);
- mp_dBusDayNightMode_ControlBarWidget->setDayNightMode(m_dayNightMode);
-}
-
-void MainWindow::showPopup(int type, const QString &text)
-{
- if (0 == mp_popupWidget)
- {
- qDebug("0 == mp_popupWidget");
- mp_popupWidget = new PopupWidget(this);
- }
-
- mp_popupWidget->move(0, 0);
- mp_popupWidget->show();
-
- if (0 == mp_dBusPopup)
- {
- qDebug("0 == mp_dBusPopup");
- // connect to the dBus interface provided by the popup widget
- mp_dBusPopup = new org::agl::popup("org.agl.mainwindow",
- "/PopupWidget",
- QDBusConnection::sessionBus(),
- 0);
- }
- mp_dBusPopup->showPopup(type, text);