mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 11:40:42 +00:00
Make screenshots hide calendar and right sidebar
This commit is contained in:
parent
0e2852e0cd
commit
0c57c04537
@ -604,6 +604,19 @@ void Daily::ReloadGraphs()
|
|||||||
graphView()->redraw();
|
graphView()->redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Daily::hideSpaceHogs()
|
||||||
|
{
|
||||||
|
if (p_profile->appearance->calendarVisible()) {
|
||||||
|
ui->calendarFrame->setVisible(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
void Daily::showSpaceHogs()
|
||||||
|
{
|
||||||
|
if (p_profile->appearance->calendarVisible()) {
|
||||||
|
ui->calendarFrame->setVisible(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Daily::on_calendar_currentPageChanged(int year, int month)
|
void Daily::on_calendar_currentPageChanged(int year, int month)
|
||||||
{
|
{
|
||||||
QDate d(year,month,1);
|
QDate d(year,month,1);
|
||||||
|
@ -143,6 +143,8 @@ public:
|
|||||||
void setCalendarVisible(bool visible);
|
void setCalendarVisible(bool visible);
|
||||||
|
|
||||||
void addBookmark(qint64 st, qint64 et, QString text);
|
void addBookmark(qint64 st, qint64 et, QString text);
|
||||||
|
void hideSpaceHogs();
|
||||||
|
void showSpaceHogs();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_ReloadDay();
|
void on_ReloadDay();
|
||||||
|
@ -1502,8 +1502,12 @@ void MainWindow::on_actionCheck_for_Updates_triggered()
|
|||||||
w->checkForUpdates();
|
w->checkForUpdates();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool toolbox_visible = false;
|
||||||
void MainWindow::on_action_Screenshot_triggered()
|
void MainWindow::on_action_Screenshot_triggered()
|
||||||
{
|
{
|
||||||
|
getDaily()->hideSpaceHogs();
|
||||||
|
toolbox_visible = ui->toolBox->isVisible();
|
||||||
|
ui->toolBox->hide();
|
||||||
QTimer::singleShot(250, this, SLOT(DelayedScreenshot()));
|
QTimer::singleShot(250, this, SLOT(DelayedScreenshot()));
|
||||||
}
|
}
|
||||||
void MainWindow::DelayedScreenshot()
|
void MainWindow::DelayedScreenshot()
|
||||||
@ -1536,6 +1540,9 @@ void MainWindow::DelayedScreenshot()
|
|||||||
} else {
|
} else {
|
||||||
Notify(tr("Screenshot saved to file \"%1\"").arg(QDir::toNativeSeparators(a)));
|
Notify(tr("Screenshot saved to file \"%1\"").arg(QDir::toNativeSeparators(a)));
|
||||||
}
|
}
|
||||||
|
getDaily()->showSpaceHogs();
|
||||||
|
ui->toolBox->setVisible(toolbox_visible);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_actionView_Oximetry_triggered()
|
void MainWindow::on_actionView_Oximetry_triggered()
|
||||||
|
@ -227,8 +227,8 @@ Overview::Overview(QWidget *parent, gGraphView *shared) :
|
|||||||
if (p_profile->general->calculateRDI()) {
|
if (p_profile->general->calculateRDI()) {
|
||||||
bc->addSlice(CPAP_RERA, COLOR_RERA, ST_CPH);
|
bc->addSlice(CPAP_RERA, COLOR_RERA, ST_CPH);
|
||||||
}
|
}
|
||||||
bc->addSlice(CPAP_UserFlag1, COLOR_UserFlag1, ST_CPH);
|
// bc->addSlice(CPAP_UserFlag1, COLOR_UserFlag1, ST_CPH);
|
||||||
bc->addSlice(CPAP_UserFlag2, COLOR_UserFlag2, ST_CPH);
|
// bc->addSlice(CPAP_UserFlag2, COLOR_UserFlag2, ST_CPH);
|
||||||
|
|
||||||
|
|
||||||
AHI->AddLayer(bc);
|
AHI->AddLayer(bc);
|
||||||
|
Loading…
Reference in New Issue
Block a user