Use QListWidget instead of comboboxes
[scorecard] / src / course-dialog.h
index 343e34b..92e3980 100644 (file)
@@ -29,6 +29,7 @@ private slots:
  private:
 
   void createLayout(QWidget *parent);
+  bool validate(void);
 
   QLineEdit    *lineEditClub;
   QLineEdit    *lineEditCourse;
@@ -51,9 +52,7 @@ class CourseDialog: public QDialog
   bool validate();
 
  public slots:
-  void itemChanged(QTableWidgetItem *item);
-  void nextCell(QObject *);
-  void finnish(void);
+  void finish(void);
 
  private:
   enum { ROW_HOLE = 0, ROW_PAR = 1, ROW_HCP = 2, ROW_LEN = 3, 
@@ -65,13 +64,12 @@ class CourseDialog: public QDialog
   void createLayout(QWidget *parent = 0);
 
   // Widgets
-  //ScoreTable *table;
   QTableWidget *table;
   QLabel *clubLabel;
   QLabel *courseLabel;
   QLineEdit *clubEdit;
   QLineEdit *courseEdit;
-  QPushButton *pushButtonFinnish;
+  QPushButton *pushButtonFinish;
 
   // Layouts
   QVBoxLayout *rightLayout;