public function show() { parent::show(); $desktop = new QDesktopWidget(); $screenNumber = $desktop->screenNumber($this); $this->screenGeometry = $desktop->screenGeometry($screenNumber); $this->logoPaw1->move($this->x, -$this->screenGeometry["height"] / 2); $this->logoPaw1->show(); $this->logoPaw2->move($this->x, -$this->screenGeometry["height"] / 2); $this->logoPaw2->show(); $this->logoPaw3->move($this->x, -$this->screenGeometry["height"] / 2); $this->logoPaw3->show(); $this->logoPaw4->move($this->x, -$this->screenGeometry["height"] / 2); $this->logoPaw4->show(); $this->logoPaw5->move($this->x, -$this->screenGeometry["height"] / 2); $this->logoPaw5->show(); $this->timer->start(); $this->labelVersion->move($this->width / 2 - $this->labelVersion->width / 2, 210); $this->updaterResult = $this->updater->check($this->server); return qApp::exec(); }
if (!file_exists($this->pqpackPath)) { $this->getPQPackDialog(); } else { if (!is_dir($this->pqpackPath)) { $messagebox = new QMessageBox(); $messagebox->critical(0, tr('PQCreator error'), sprintf(tr('Cannot access to PQPack directory `%s`'), $this->pqpackPath), tr('Quit')); } } } private function downloadPQPack() { $this->downloader = new PQDownloader(); $tempFile_c = QDir::TempPath . '/pqpack.'; $tempFilePath = $tempFile_c . rand(1, 9999) . '.pqdownload'; while (file_exists($tempFilePath)) { $tempFilePath = $tempFile_c . rand(1, 9999) . '.pqdownload'; } $this->downloader->download('http://phpqt.ru/downloads/pqpack/pqpack-0.1-rc1.zip', $tempFilePath, $this->pqpackPath); } public function run() { //$this->checkPQPack(); //$logo = new PQCreatorLogo("0.1-alpha1\n(build: 1)"); //$logo->show(); $this->projects->show(); } } $pqcreator = new PQCreator(); $pqcreator->run(); qApp::exec();