refactoring qmessageboxes to make them useable on android
This commit is contained in:
@@ -26,7 +26,11 @@ timeoutMsgBoxImpl::timeoutMsgBoxImpl(QMainWindow *parent)
|
||||
this->setWindowTitle(tr("Timeout Warning"));
|
||||
this->setIcon(QMessageBox::Warning);
|
||||
this->setInformativeText(tr("Please click \"OK\" to stop the countdown!"));
|
||||
|
||||
#ifdef ANDROID
|
||||
this->setWindowModality(Qt::WindowModal);
|
||||
this->setWindowFlags(Qt::ToolTip);
|
||||
this->setStyleSheet("QDialog{ border: 1px solid black; border-style: solid; border-radius: 4px; }");
|
||||
#endif
|
||||
timeOutTimer = new QTimer;
|
||||
|
||||
connect(timeOutTimer, SIGNAL(timeout()), this, SLOT(timerRefresh()));
|
||||
|
||||
Reference in New Issue
Block a user