示例#1
0
 public function createSel($selName, $cursor)
 {
     $sel = new QLabel($this->container);
     $sel->setCursor($cursor);
     $sel->objectName = "___pq_creator_sizectrl_{$selName}_";
     $sel->resize($this->size, $this->size);
     $sel->styleSheet = $this->styleSheet;
     if (strpos($this->selobj->disabledSels, $selName) === false) {
         $sel->enableResize = true;
     }
     $sel->setPHPEventListener($this, eventListener);
     $sel->addPHPEventListenerType(QEvent::MouseButtonPress);
     $sel->addPHPEventListenerType(QEvent::MouseButtonRelease);
     $sel->addPHPEventListenerType(QEvent::MouseMove);
     $sel->show();
     return $sel;
 }
示例#2
0
 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();
 }