MCPcopy Create free account
hub / github.com/Atarity/Lightpack / changePage

Method changePage

Software/src/SettingsWindow.cpp:142–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void SettingsWindow::changePage(int page)
143{
144 DEBUG_LOW_LEVEL << Q_FUNC_INFO << page;
145
146 ui->tabWidget->setCurrentIndex(page);
147 if (page == 5) {
148 ui->textBrowser->verticalScrollBar()->setValue(0);
149 m_smoothScrollTimer.setInterval(100);
150 m_smoothScrollTimer.start();
151 } else {
152 m_smoothScrollTimer.stop();
153 }
154
155}
156
157SettingsWindow::~SettingsWindow()
158{

Callers

nothing calls this directly

Calls 3

setValueMethod · 0.80
startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected