Reload merge data (#252,#241)

* Added reloadSource() method to Merge class.
* Added reload button to MergeView
This commit is contained in:
Jaye Evins
2025-11-29 00:16:21 -05:00
committed by GitHub
parent 1ebddfc534
commit 1f4f4aa221
6 changed files with 76 additions and 2 deletions
+9
View File
@@ -203,6 +203,15 @@ namespace glabels
}
///
/// Reload button clicked handler
///
void MergeView::onReloadButtonClicked()
{
mModel->merge()->reloadSource();
}
///
/// Cell changed handler
///
+1
View File
@@ -70,6 +70,7 @@ namespace glabels
void onLocationBrowseButtonClicked();
void onSelectAllButtonClicked();
void onUnselectAllButtonClicked();
void onReloadButtonClicked();
void onCellChanged( int iRow, int iCol );
+26 -2
View File
@@ -131,6 +131,13 @@
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Reload</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
@@ -197,8 +204,8 @@
<slot>onLocationBrowseButtonClicked()</slot>
<hints>
<hint type="sourcelabel">
<x>296</x>
<y>130</y>
<x>534</x>
<y>165</y>
</hint>
<hint type="destinationlabel">
<x>565</x>
@@ -206,11 +213,28 @@
</hint>
</hints>
</connection>
<connection>
<sender>pushButton</sender>
<signal>clicked()</signal>
<receiver>MergeView</receiver>
<slot>onReloadButtonClicked()</slot>
<hints>
<hint type="sourcelabel">
<x>510</x>
<y>552</y>
</hint>
<hint type="destinationlabel">
<x>539</x>
<y>602</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>onSelectAllButtonClicked()</slot>
<slot>onUnselectAllButtonClicked()</slot>
<slot>onFormatComboActivated()</slot>
<slot>onLocationBrowseButtonClicked()</slot>
<slot>onReloadButtonClicked()</slot>
</slots>
</ui>