ui connections
This commit is contained in:
parent
82a4997e90
commit
6d655b4984
|
@ -19,8 +19,12 @@ public:
|
|||
|
||||
private slots:
|
||||
void aatoggled(int);
|
||||
void pptoggled(int);
|
||||
void pptoggled(bool);
|
||||
void ppedited(const QString&);
|
||||
void bantoggled(bool);
|
||||
void banedited(const QString&);
|
||||
void picktoggled(bool);
|
||||
void pickedited(const QString&);
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
|
|
|
@ -20,11 +20,32 @@ void MainWindow::aatoggled(int state) {
|
|||
lolaa.setAutoAcceptEnabled(state == Qt::CheckState::Checked);
|
||||
}
|
||||
|
||||
void MainWindow::pptoggled(int state) {
|
||||
void MainWindow::pptoggled(bool state) {
|
||||
Log::info << "enablePrePick checkbox toggled " << state;
|
||||
lolaa.setPrePickEnabled(state == Qt::CheckState::Checked);
|
||||
lolaa.setPrePickEnabled(state);
|
||||
}
|
||||
|
||||
void MainWindow::ppedited(const QString& newtext) {
|
||||
Log::info << "prepick edited: " << newtext.toStdString();
|
||||
lolaa.setPrePick(newtext.toStdString());
|
||||
}
|
||||
|
||||
void MainWindow::bantoggled(bool state) {
|
||||
Log::info << "enableBan checkbox toggled " << state;
|
||||
lolaa.setBanEnabled(state);
|
||||
}
|
||||
|
||||
void MainWindow::banedited(const QString& b) {
|
||||
Log::info << "ban edited: " << b.toStdString();
|
||||
lolaa.setBan(b.toStdString());
|
||||
}
|
||||
|
||||
void MainWindow::picktoggled(bool state) {
|
||||
Log::info << "enablePick checkbox toggled " << state;
|
||||
lolaa.setPickEnabled(state);
|
||||
}
|
||||
|
||||
void MainWindow::pickedited(const QString& p) {
|
||||
Log::info << "pick edited: " << p.toStdString();
|
||||
lolaa.setPick(p.toStdString());
|
||||
}
|
||||
|
|
113
ui/mainwindow.ui
113
ui/mainwindow.ui
|
@ -120,8 +120,15 @@
|
|||
<class>StageSettings</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>stagesettings.h</header>
|
||||
<slots>
|
||||
<signal>toggled(bool)</signal>
|
||||
<signal>championChanged(QString)</signal>
|
||||
</slots>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>enableAll</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
|
@ -131,8 +138,8 @@
|
|||
<slot>aatoggled(int)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>15</x>
|
||||
<y>50</y>
|
||||
<x>16</x>
|
||||
<y>75</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>393</x>
|
||||
|
@ -140,10 +147,110 @@
|
|||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>prepickstage</sender>
|
||||
<signal>toggled(bool)</signal>
|
||||
<receiver>MainWindow</receiver>
|
||||
<slot>pptoggled(bool)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>169</x>
|
||||
<y>147</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>279</x>
|
||||
<y>140</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>banstage</sender>
|
||||
<signal>toggled(bool)</signal>
|
||||
<receiver>MainWindow</receiver>
|
||||
<slot>bantoggled(bool)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>139</x>
|
||||
<y>345</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>277</x>
|
||||
<y>292</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>pickstage</sender>
|
||||
<signal>toggled(bool)</signal>
|
||||
<receiver>MainWindow</receiver>
|
||||
<slot>picktoggled(bool)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>130</x>
|
||||
<y>509</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>279</x>
|
||||
<y>444</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>prepickstage</sender>
|
||||
<signal>championChanged(QString)</signal>
|
||||
<receiver>MainWindow</receiver>
|
||||
<slot>ppedited(QString)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>111</x>
|
||||
<y>139</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>280</x>
|
||||
<y>204</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>banstage</sender>
|
||||
<signal>championChanged(QString)</signal>
|
||||
<receiver>MainWindow</receiver>
|
||||
<slot>banedited(QString)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>144</x>
|
||||
<y>366</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>280</x>
|
||||
<y>344</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>pickstage</sender>
|
||||
<signal>championChanged(QString)</signal>
|
||||
<receiver>MainWindow</receiver>
|
||||
<slot>pickedited(QString)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>151</x>
|
||||
<y>508</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>279</x>
|
||||
<y>519</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
<slots>
|
||||
<slot>aatoggled(int)</slot>
|
||||
<slot>pptoggled(int)</slot>
|
||||
<slot>pptoggled(bool)</slot>
|
||||
<slot>ppedited(QString)</slot>
|
||||
<slot>bantoggled(bool)</slot>
|
||||
<slot>picktoggled(bool)</slot>
|
||||
<slot>banedited(QString)</slot>
|
||||
<slot>pickedited(QString)</slot>
|
||||
</slots>
|
||||
</ui>
|
||||
|
|
|
@ -49,6 +49,10 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>checkBox</tabstop>
|
||||
<tabstop>lineEdit</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
|
@ -86,6 +90,7 @@
|
|||
</connections>
|
||||
<slots>
|
||||
<signal>championChanged(QString)</signal>
|
||||
<signal>toggled(bool)</signal>
|
||||
<slot>championChangedinternal(QString)</slot>
|
||||
<slot>toggledinternal(int)</slot>
|
||||
</slots>
|
||||
|
|
Loading…
Reference in New Issue