ref: 5340ee0af285499868c51af6051845e3d5857870
parent: 8210444ac97f6d05f76da85bdb5f975add94b4d0
author: mkf <mkf@hp.lan>
date: Wed Apr 26 10:28:19 EDT 2023
Help? there is no help!
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -96,7 +96,17 @@
QMessageBox::about(this, "about", "MasterMind-qt r2");
}
-void MainWindow::action_guide(){}
+// XXX
+void MainWindow::action_guide()
+{
+ QMessageBox m;
+ m.setWindowTitle("Help? there is no help");
+ m.setText("you fell for this this trap? lol. "
+ "seriously, remind me to write one");
+ m.setIcon(QMessageBox::Information);
+ m.addButton(":(", QMessageBox::AcceptRole);
+ m.exec();
+}
// cheats menu
void MainWindow::action_showgoal()
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -394,6 +394,22 @@
</hint>
</hints>
</connection>
+ <connection>
+ <sender>actionGuide</sender>
+ <signal>triggered()</signal>
+ <receiver>MainWindow</receiver>
+ <slot>action_guide()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>219</x>
+ <y>9</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>219</x>
+ <y>181</y>
+ </hint>
+ </hints>
+ </connection>
</connections>
<slots>
<slot>action_aboutqt()</slot>