File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,22 @@ class QHBoxLayout;
44
44
class QVBoxLayout ;
45
45
QT_END_NAMESPACE
46
46
47
+ // ### Problem ###
48
+
47
49
Problem::Problem ()
48
50
{
49
51
selection = 0 ;
50
52
}
51
53
52
54
Problem::~Problem () = default ;
53
55
56
+ void Problem::setToSolutionType (Problem::SolutionType /* type*/ )
57
+ {
58
+ // nothing
59
+ }
60
+
61
+ // ### ProblemWidget ###
62
+
54
63
ProblemWidget::ProblemWidget (QWidget* parent) : QTableWidget(parent)
55
64
{
56
65
verticalHeader ()->setVisible (false );
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class Problem
60
60
virtual QString getSolutionDescription (int i) = 0;
61
61
virtual void applySolution (int i) = 0;
62
62
63
- virtual void setToSolutionType (SolutionType type) {}
63
+ virtual void setToSolutionType (SolutionType type);
64
64
65
65
inline const QString& getDescription () const {return description;}
66
66
inline int getSelection () const {return selection;}
Original file line number Diff line number Diff line change @@ -690,6 +690,11 @@ void ScoringCalculationPage::handicapDataChanged()
690
690
handicapList->sortItems ();
691
691
}
692
692
693
+ void ScoringCalculationPage::handicapDataChanged (int /* index*/ )
694
+ {
695
+ handicapDataChanged ();
696
+ }
697
+
693
698
void ScoringCalculationPage::customPointAddClicked ()
694
699
{
695
700
Ruleset* ruleset = getCurrentRuleset ();
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ public slots:
168
168
void handicapCheckToggled (bool checked);
169
169
void currentHandicapChanged (QListWidgetItem* current, QListWidgetItem* previous);
170
170
void handicapDataChanged ();
171
- inline void handicapDataChanged (int index) { handicapDataChanged ();}
171
+ void handicapDataChanged (int index);
172
172
void handicapAddClicked ();
173
173
void handicapRemoveClicked ();
174
174
You can’t perform that action at this time.
0 commit comments