Skip to content
Permalink
2f07efea85
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
52 lines (39 sloc) 1.1 KB
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
//Add
#include <qdebug.h>
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include <QMessageBox>
#include"adddialog.h"
#include"deldialog.h"
#include"seldialog.h"
#include"changedialog.h"
#include"courseinfo.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_pushButton_3_clicked();
void on_pushButton_4_clicked();
private:
Ui::MainWindow *ui;
};
void addCourse(QString name,QString lec,int day,int lesson,QString classroom);
void delCourse(QString name);
void selCourse(selDialog newsel);
void changCourse(QString oldname,int oldday,int oldlesson,QString name,QString lec,int day,int lesson,QString classroom);
bool outPutTableInfo(QString tabNmae);
bool outputDatabaseInfo(QSqlDatabase database);
//extern QSqlDatabase dbtimetable;
#endif // MAINWINDOW_H