mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-09 04:30:43 +00:00
Added View menu option to toggle Line Cursor
This commit is contained in:
parent
fedfc4ac15
commit
861dd5cfca
sleepyhead
@ -185,6 +185,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
}
|
||||
}
|
||||
|
||||
ui->actionToggle_Line_Cursor->setChecked(p_profile->appearance->lineCursorMode());
|
||||
|
||||
overview = nullptr;
|
||||
daily = nullptr;
|
||||
@ -2334,3 +2335,13 @@ void MainWindow::on_importButton_clicked()
|
||||
on_action_Import_Data_triggered();
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::on_actionToggle_Line_Cursor_toggled(bool b)
|
||||
{
|
||||
p_profile->appearance->setLineCursorMode(b);
|
||||
if (ui->tabWidget->currentWidget() == getDaily()) {
|
||||
getDaily()->graphView()->timedRedraw(0);
|
||||
} else if (ui->tabWidget->currentWidget() == getOverview()) {
|
||||
getOverview()->graphView()->timedRedraw(0);
|
||||
}
|
||||
}
|
||||
|
@ -313,6 +313,8 @@ class MainWindow : public QMainWindow
|
||||
|
||||
void on_changeWarningMessage();
|
||||
|
||||
void on_actionToggle_Line_Cursor_toggled(bool arg1);
|
||||
|
||||
private:
|
||||
void importCPAPBackups();
|
||||
void finishCPAPImport();
|
||||
|
@ -3115,6 +3115,7 @@ border-radius: 10px;
|
||||
<addaction name="action_Link_Graph_Groups"/>
|
||||
<addaction name="action_Reset_Graph_Layout"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionToggle_Line_Cursor"/>
|
||||
<addaction name="action_Sidebar_Toggle"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu_Help">
|
||||
@ -3408,6 +3409,17 @@ border-radius: 10px;
|
||||
<string>Current Days</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionToggle_Line_Cursor">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Toggle &Line Cursor</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+S</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
Loading…
Reference in New Issue
Block a user