-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadd.cpp
40 lines (35 loc) · 781 Bytes
/
add.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "add.h"
#include "ui_add.h"
#include "globle.h"
#include <QDebug>
#include "board1.h"
add::add(QWidget *parent) :
QDialog(parent),
ui(new Ui::add)
{
ui->setupUi(this);
//ui->content->setStyleSheet("border-image: url(:/byyin/边框.png);");
//qDebug()<<"s";
}
add::~add()
{
delete ui;
}
void add::A(){
//ui->content->setStyleSheet("border-image: url(:/byyin/边框.png);");
qDebug()<<"s";
}
void add::on_add_2_clicked()
{
if(type==2){
QString title;
QString content;
title=ui->title->text();
content=ui->content->toPlainText();
normal_1->write_post(title,content,normal_1->get_id());
qDebug()<<"sss";
close();
board1 *b=new board1(this);
b->show();
}
}