Fixed display bug of sync button
This commit is contained in:
parent
cfca814476
commit
64d9a303b3
@ -254,7 +254,7 @@ bool WideGraph::shouldAutoSync(){
|
||||
return ui->autoDriftButton->isChecked();
|
||||
}
|
||||
|
||||
void WideGraph::on_autoDriftButton_checked(bool checked){
|
||||
void WideGraph::on_autoDriftButton_toggled(bool checked){
|
||||
auto text = ui->autoDriftButton->text();
|
||||
if(checked){
|
||||
ui->autoDriftButton->setText(text.replace("Start", "Stop"));
|
||||
|
@ -123,7 +123,7 @@ private slots:
|
||||
void on_filterCheckBox_toggled(bool b);
|
||||
void on_filterOpacitySpinBox_valueChanged(int n);
|
||||
|
||||
void on_autoDriftButton_checked(bool checked);
|
||||
void on_autoDriftButton_toggled(bool checked);
|
||||
void on_driftSpinBox_valueChanged(int n);
|
||||
void on_driftSyncButton_clicked();
|
||||
void on_driftSyncEndButton_clicked();
|
||||
|
20
widegraph.ui
20
widegraph.ui
@ -428,7 +428,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>240</width>
|
||||
<width>267</width>
|
||||
<height>742</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -976,7 +976,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>281</width>
|
||||
<height>234</height>
|
||||
<height>252</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
@ -1020,6 +1020,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="autoDriftButton">
|
||||
<property name="minimumSize">
|
||||
@ -1029,13 +1036,20 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Start Automatic Drift Sync</string>
|
||||
<string>Start Automatic Sync Time Drift</string>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="driftSyncMinuteButton">
|
||||
<property name="minimumSize">
|
||||
|
Loading…
Reference in New Issue
Block a user