这个错误是什么原因
D:/QT/123-build-desktop/../123/course.h:19: 错误:'course::course(QWidget*)' is private.h
#ifndef COURSE_H
#define COURSE_H
#include <QDialog>
#include <QTreeWidgetItem>
#include <QTreeWidget>
#include "ui_course.h"
#include <QMessageBox>
namespace Ui {
class course;
}
class course:public QDialog,public Ui::course
{
public:
Q_OBJECT;
explicit course(QWidget*parent=0);
~course();
public:
Ui::course *ui1;
QTreeWidgetItem*status1;
QTreeWidgetItem*status2;
QTreeWidgetItem*status3;
QTreeWidgetItem*status4;
QTreeWidgetItem*status5;
QTreeWidgetItem*status6;
QTreeWidgetItem*status7;
QTreeWidgetItem*status8;
QTreeWidgetItem*status9;
QTreeWidgetItem*status10;
QTreeWidgetItem*status11;
QTreeWidgetItem*status12;
QTreeWidgetItem*status13;
QTreeWidgetItem*status14;
QTreeWidgetItem*status15;
QTreeWidgetItem*status16;
QTreeWidgetItem*status17;
QTreeWidgetItem*status18;
QTreeWidgetItem*status19;
QTreeWidgetItem*status20;
QTreeWidgetItem*status21;
QTreeWidgetItem*status22;
QTreeWidgetItem*status23;
QTreeWidgetItem*status24;
QTreeWidgetItem*status25;
QTreeWidgetItem*status26;
QTreeWidgetItem*status27;
QTreeWidgetItem*course1;
QTreeWidgetItem*course2;
QTreeWidgetItem*course3;
QTreeWidgetItem*course4;
QTreeWidgetItem*course5;
QTreeWidgetItem*course6;
QTreeWidgetItem*course7;
QTreeWidgetItem*course8;
QTreeWidgetItem*course9;
QTreeWidgetItem*course10;
QTreeWidgetItem*course11;
QTreeWidgetItem*course12;
QTreeWidgetItem*course13;
QTreeWidgetItem*course14;
QTreeWidgetItem*course15;
QTreeWidgetItem*course16;
QTreeWidgetItem*course17;
QTreeWidgetItem*course18;
QTreeWidgetItem*course19;
QTreeWidgetItem*course20;
QTreeWidgetItem*course21;
QTreeWidgetItem*course22;
QTreeWidgetItem*course23;
QTreeWidgetItem*course24;
QTreeWidgetItem*course25;
QTreeWidgetItem*course26;
QTreeWidgetItem*course27;
QTreeWidgetItem* items1;
QTreeWidgetItem* items2;
QTreeWidgetItem* items3;
QTreeWidgetItem* items4;
QTreeWidgetItem* items5;
QTreeWidgetItem* items6;
QTreeWidgetItem* items7;
QTreeWidgetItem* items8;
QTreeWidgetItem* items9;
QTreeWidgetItem*classify1;
QTreeWidgetItem*classify2;
QTreeWidgetItem*classify3;
QTreeWidgetItem*classify4;
QTreeWidgetItem*classify5;
QTreeWidgetItem*classify6;
QTreeWidgetItem*classify7;
QTreeWidgetItem*classify8;
QTreeWidgetItem*classify9;
QTreeWidgetItem*classify10;
QTreeWidgetItem*classify11;
QTreeWidgetItem*classify12;
QTreeWidgetItem*classify13;
QTreeWidgetItem*classify14;
QTreeWidgetItem*classify15;
QTreeWidgetItem*classify16;
QTreeWidgetItem*classify17;
QTreeWidgetItem*classify18;
QTreeWidgetItem*classify19;
QTreeWidgetItem*classify20;
QTreeWidgetItem*classify21;
QTreeWidgetItem*classify22;
QTreeWidgetItem*classify23;
QTreeWidgetItem*classify24;
QTreeWidgetItem*classify25;
QTreeWidgetItem*classify26;
QTreeWidgetItem*classify27;
QMessageBox *msgBox;
QTreeWidget *tree;
private slots:
void on_click_items1();
void on_click_items2();
void on_click_items3();
void on_click_items4();
void on_click_items5();
void on_click_items6();
void on_click_items7();
void on_click_items8();
void on_click_items9();
void on_click_classify1();
void on_click_classify2();
void on_click_classify3();
void on_click_classify4();
void on_click_classify5();
void on_click_classify6();
void on_click_classify7();
void on_click_classify8();
void on_click_classify9();
void on_click_classify10();
void on_click_classify11();
void on_click_classify12();
void on_click_classify13();
void on_click_classify14();
void on_click_classify15();
void on_click_classify16();
void on_click_classify17();
void on_click_classify18();
void on_click_classify19();
void on_click_classify20();
void on_click_classify21();
void on_click_classify22();
void on_click_classify23();
void on_click_classify24();
void on_click_classify25();
void on_click_classify26();
void on_click_classify27();
};
#endif // COURSE_H
.cpp
#include "course.h"
course::course(QWidget*parent):QDialog(parent),ui1(new Ui::Dialog)
{
ui1->setupUi(this);
tree=new QTreeWidget();
tree->show();
items1=new QTreeWidgetItem(ui1->CtreeWidget,QStringList(QString("高中语文")));
items2=new QTreeWidgetItem(ui1->CtreeWidget,QStringList(QString("高中数学")));
items3=new QTreeWidgetItem(ui1->CtreeWidget,QStringList(QString("高中英语")));
items4=new QTreeWidgetItem(ui1->CtreeWidget,QStringList(QString("高中物理")));
items5=new QTreeWidgetItem(ui1->CtreeWidget,QStringList(QString("高中化学")));
items6=new QTreeWidgetItem(ui1->CtreeWidget,QStringList(QString("高中思想政治")));
items7=new QTreeWidgetItem(ui1->CtreeWidget,QStringList(QString("高中生物")));
items8=new QTreeWidgetItem(ui1->CtreeWidget,QStringList(QString("高中历史")));
items9=new QTreeWidgetItem(ui1->CtreeWidget,QStringList(QString("高中地理")));
connect(items1,SIGNAL(click()),ui1->CtreeWidget_2,SLOT(on_click_items1()));
connect(items2,SIGNAL(click()),ui1->CtreeWidget_2,SLOT(on_click_items2()));
connect(items3,SIGNAL(click()),ui1->CtreeWidget_2,SLOT(on_click_items3()));
connect(items4,SIGNAL(click()),ui1->CtreeWidget_2,SLOT(on_click_items4()));
connect(items5,SIGNAL(click()),ui1->CtreeWidget_2,SLOT(on_click_items5()));
connect(items6,SIGNAL(click()),ui1->CtreeWidget_2,SLOT(on_click_items6()));
connect(items7,SIGNAL(click()),ui1->CtreeWidget_2,SLOT(on_click_items7()));
connect(items8,SIGNAL(click()),ui1->CtreeWidget_2,SLOT(on_click_items8()));
connect(items9,SIGNAL(click()),ui1->CtreeWidget_2,SLOT(on_click_items9()));
connect(classify1,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify1()));
connect(classify2,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify2()));
connect(classify3,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify3()));
connect(classify4,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify4()));
connect(classify5,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify5()));
connect(classify6,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify6()));
connect(classify7,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify7()));
connect(classify8,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify8()));
connect(classify9,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify9()));
connect(classify10,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify10()));
connect(classify11,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify11()));
connect(classify12,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify12()));
connect(classify13,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify13()));
connect(classify14,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify14()));
connect(classify15,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify15()));
connect(classify16,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify16()));
connect(classify17,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify17()));
connect(classify18,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify18()));
connect(classify19,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify19()));
connect(classify20,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify20()));
connect(classify21,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify21()));
connect(classify22,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify22()));
connect(classify23,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify23()));
connect(classify24,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify24()));
connect(classify25,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify25()));
connect(classify26,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify26()));
connect(classify27,SIGNAL(click()),ui1->CtreeWidget_3,SLOT(on_click_classify27()));
}
void course::on_click_items1()
{
classify1=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一")));
classify2=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高二")));
classify3=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高三")));
}
void course::on_click_items2()
{
classify4=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一")));
classify5=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高二")));
classify6=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高三")));
}
void course::on_click_items3()
{
classify7=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一")));
classify8=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高二")));
classify9=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高三")));
}
void course::on_click_items4()
{
classify10=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一")));
classify11=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高二")));
classify12=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高三")));
}
void course::on_click_items5()
{
classify13=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一")));
classify14=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高二")));
classify15=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高三")));
}
void course::on_click_items6()
{
classify16=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一")));
classify17=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高二")));
classify18=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高三")));
}
void course::on_click_items7()
{
classify19=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一")));
classify20=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高二")));
classify21=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高三")));
}
void course::on_click_items8()
{
classify22=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一")));
classify23=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高二")));
classify24=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高三")));
}
void course::on_click_items9()
{
classify25=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一")));
classify26=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高二")));
classify27=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高三")));
}
void course::on_click_classify1()//给mydialog主界面增加条目
{
course1=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一语文必修1")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status1=new QTreeWidgetItem(ui->DtreeWidget_4,QStringList()<<"高一语文必修1"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify2()
{
course2=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一语文必修2")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status2=new QTreeWidgetItem(ui->DtreeWidget_4,QStringList()<<"高一语文必修2"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify3()
{
course3=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一语文必修3")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status3=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一语文必修3"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox= new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify4()
{
course4=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一数学必修1")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status4=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一数学必修1"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify5()
{
QTreeWidgetItem*course5=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一数学必修2")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status5=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一数学必修2"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify6()
{
course6=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一数学必修3")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status6=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一数学必修3"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify7()
{
course7=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一英语必修1")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status1=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"英语必修1"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify8()
{
course5=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一英语必修2")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status8=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一语文必修2"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify9()
{
course9=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一英语必修3")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status9=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一英语必修3"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify10()
{
course10=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一物理必修1")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status10=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一物理必修1"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify11()
{
course11=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一物理必修2")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status11=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一物理必修2"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify12()
{
course12=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一物理必修3")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status12=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一物理必修3"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify13()
{
course13=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一化学必修1")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status13=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一化学必修1"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify14()
{
course14=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一化学必修2")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status14=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一语文必修2"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify15()
{
course15=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一化学必修3")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status15=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一化学必修3"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify16()
{
course16=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一生物必修1")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status16=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一生物必修1"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify17()
{
course17=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一生物必修2")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status17=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一生物必修2"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify18()
{
course18=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一生物必修3")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status18=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一生物必修3"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify19()
{
course19=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一历史必修1")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status19=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一历史必修1"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify20()
{
course20=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一历史必修2")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status20=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一历史必修2"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify21()
{
course21=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一历史必修3")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status21=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一历史必修3"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify22()
{
course22=new QTreeWidgetItem(ui1->treeWidget_2,QStringList(QString("高一地理必修1")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status22=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一语文地理1"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify23()
{
course23=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一地理必修2")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status23=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一地理必修2"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify24()
{
course24=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一地理必修3")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status24=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一地理必修3"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify25()
{
course25=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一思想政治必修1")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status25=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一思想政治必修1"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify26()
{
course26=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一思想政治必修2")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status26=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一思想政治必修2"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}
void course::on_click_classify27()
{
course27=new QTreeWidgetItem(ui1->CtreeWidget_2,QStringList(QString("高一思想政治必修3")));
if(course1->setCheckState(Qt::Checked))
{
pushButton_3->click();
status27=new QTreeWidgetItem(ui->treeWidget_4,QStringList()<<"高一思想政治必修3"<<"高一"<<"未激活");
}
else
{
pushButton_3->click();
msgBox=new QMessageBox("下载课程提示","你没有选择课程请在选择的课程前面打勾",QMessageBox::NoIcon,
QMessageBox::Ok,QMessageBox::Cancel|QMessageBox::Yes,0);
}
}