Changeset 55956 in webkit
- Timestamp:
- Mar 13, 2010 1:38:05 AM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r55951 r55956 1 2010-03-13 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Add "Show FPS" menu option to QtLauncher. 6 7 [Qt] QtLauncher need a menu option to show/hide FPS 8 https://bugs.webkit.org/show_bug.cgi?id=35794 9 10 * QtLauncher/main.cpp: 11 (LauncherWindow::showFPS): 12 (LauncherWindow::createChrome): 13 1 14 2010-03-13 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> 2 15 -
trunk/WebKitTools/QtLauncher/main.cpp
r55951 r55956 122 122 void toggleSpatialNavigation(bool b); 123 123 void toggleFullScreenMode(bool enable); 124 void showFPS(bool enable); 124 125 125 126 public slots: … … 584 585 } 585 586 587 void LauncherWindow::showFPS(bool enable) 588 { 589 if (!isGraphicsBased()) 590 return; 591 592 gShowFrameRate = enable; 593 WebViewGraphicsBased* view = static_cast<WebViewGraphicsBased*>(m_view); 594 view->setFrameRateMeasurementEnabled(enable); 595 } 596 586 597 void LauncherWindow::newWindow() 587 598 { … … 711 722 cloneWindow->connect(toggleGraphicsView, SIGNAL(toggled(bool)), SLOT(setEnabled(bool))); 712 723 cloneWindow->setEnabled(isGraphicsBased()); 724 725 QAction* showFPS = graphicsViewMenu->addAction("Show FPS", this, SLOT(showFPS(bool))); 726 showFPS->setCheckable(true); 727 showFPS->setEnabled(isGraphicsBased()); 728 showFPS->connect(toggleGraphicsView, SIGNAL(toggled(bool)), SLOT(setEnabled(bool))); 729 showFPS->setChecked(gShowFrameRate); 713 730 } 714 731
Note: See TracChangeset
for help on using the changeset viewer.