void QTextPanel::pageClear() { scene->clear(); /* remove all item */ BASE_TEXT = new QTextPanelLayerControl(0); scene->addItem(BASE_TEXT); connect(scene, SIGNAL(MakeVisible(QRectF)), this, SLOT(viewDisplay(QRectF))); connect(BASE_TEXT, SIGNAL(pageCountChange() ), this, SLOT(forceResize())); connect(BASE_TEXT, SIGNAL(autoCursorChange() ), this, SLOT(cursorChange())); /* load document and recalculate the first time */ QTimer::singleShot(22, this, SLOT(forceResize())); }
void LeaderboardDialog::dialogWillAppear() { clearCells(); addHeaderCell(); for(int i = 0; i < m_cellData.size(); i++) { addCell(m_cellData[i].rank,m_cellData[i].name,m_cellData[i].rating,false, !(i % 2 == 0)); } forceResize(); repositionCells(); scrollToTop(); }
/* Set whether the view is expanded or not */ void exonViewSetExpanded(GtkWidget *exonView, const gboolean expanded) { ExonViewProperties *properties = exonViewGetProperties(exonView); properties->expanded = expanded; if (expanded) { properties->yPad = DEFAULT_EXON_YPAD_BUMPED; properties->exonHeight = DEFAULT_EXON_HEIGHT_BUMPED; } else { properties->yPad = DEFAULT_EXON_YPAD; properties->exonHeight = DEFAULT_EXON_HEIGHT; } calculateExonViewHeight(exonView); forceResize(properties->bigPicture); bigPictureRedrawAll(properties->bigPicture); }
void gcWebControl::onStartLoad() { m_bStartedLoading = true; onPageStartEvent -= guiDelegate(this, &gcWebControl::onStartLoad); forceResize(); }
void MainWindow::play () { mlt->play (); forceResize (); ui->statusBar->showMessage (tr("Playing")); }
void MainWindow::pause () { mlt->pause (); forceResize (); ui->statusBar->showMessage (tr("Paused")); }
void QTextPanel::swapPaper() { PanelPageSize PAGE_MODEL = QTextPanelData::instance()->CurrentPageFormat(); BASE_TEXT->changePageModel(PAGE_MODEL); forceResize(); /* at end page total */ }