Exemplo n.º 1
0
 private function getPQPackDialog()
 {
     $messagebox = new QMessageBox();
     $answer = (int) $messagebox->question(0, tr('Package not found'), sprintf(tr("PQPack package not found in `%s` directory.\r\n" . "Without PQPack package you can't compile applications.\r\n\r\n" . "Download and install it?"), $this->pqpackPath), tr('Yes'), tr('No (Quit)'));
     if ($answer == 1) {
         qApp::quit();
     } else {
         $this->downloadPQPack();
     }
     if (!file_exists($this->pqpackPath)) {
         qApp::quit();
     }
 }