Add silver_cat_content ..

Longqiaozhou 5 years ago
parent c1857f9678
commit 2f8a4e5fe3

@ -0,0 +1,26 @@
#ifndef SILVER_CAT_CONTENT_H
#define SILVER_CAT_CONTENT_H
#include <QWidget>
namespace Ui {
class Silver_cat_content;
}
class Silver_cat_content : public QWidget
{
Q_OBJECT
public:
explicit Silver_cat_content(QWidget *parent = 0);
~Silver_cat_content();
void set_background();
Ui::Silver_cat_content *ui;
private slots:
void on_back_clicked();
};
#endif // SILVER_CAT_CONTENT_H

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Silver_cat_content</class>
<widget class="QWidget" name="Silver_cat_content">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1280</width>
<height>720</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="QPushButton" name="back">
<property name="geometry">
<rect>
<x>20</x>
<y>10</y>
<width>71</width>
<height>71</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="resource.qrc">
<normaloff>:/image/房子.png</normaloff>:/image/房子.png</iconset>
</property>
<property name="iconSize">
<size>
<width>71</width>
<height>71</height>
</size>
</property>
</widget>
<widget class="QTextBrowser" name="textBrowser">
<property name="geometry">
<rect>
<x>80</x>
<y>140</y>
<width>1100</width>
<height>441</height>
</rect>
</property>
</widget>
</widget>
<resources>
<include location="resource.qrc"/>
</resources>
<connections/>
</ui>

@ -0,0 +1,93 @@
#include "silver_gradient.h"
#include "ui_silver_gradient.h"
#include "cat_book.h"
#include "silver_cat_content.h"
#include "ui_silver_cat_content.h"
Silver_gradient::Silver_gradient(QWidget *parent) :
QWidget(parent),
ui(new Ui::Silver_gradient)
{
ui->setupUi(this);
connect(ui->pushButton,SIGNAL(clicked(bool)),this,SLOT(button1()));
connect(ui->pushButton_2,SIGNAL(clicked(bool)),this,SLOT(button2()));
connect(ui->pushButton_3,SIGNAL(clicked(bool)),this,SLOT(button3()));
ui->pushButton->setStyleSheet("QPushButton{border-radius:5px;background:rgb(250,234,142);color:black;}");
ui->pushButton_2->setStyleSheet("QPushButton{border-radius:5px;background:rgb(250,234,142);color:black;}");
ui->pushButton_3->setStyleSheet("QPushButton{border-radius:5px;background:rgb(250,234,142);color:black;}");
}
Silver_gradient::~Silver_gradient()
{
delete ui;
}
void Silver_gradient::on_back_clicked()
{
Cat_book *new_back = new Cat_book;
new_back->cat_book_set_background();
new_back->show();
delete this;
}
void Silver_gradient::silver_book_set_background()
{
this->setWindowTitle("阅览界面-猫");
// ui->label->setStyleSheet("background-color:red");//背景色
this->setMinimumSize(1280,720);
this->setMaximumSize(1280,720);
this->setAutoFillBackground(true);
QPalette palette;
QPixmap pixmap = QPixmap(":/image/背景_book.png").scaled(this->size());
palette.setBrush(QPalette::Window, QBrush(pixmap));
this->setPalette(palette);
}
void Silver_gradient::button1()
{
Silver_cat_content *content = new Silver_cat_content;
content->set_background();
content->ui->textBrowser->setFontPointSize(20);
content->ui->textBrowser->setFontFamily("");
content->ui->textBrowser->setStyleSheet("background:transparent;border-width:0;border-style:outset");
content->ui->textBrowser->setText(" 英短银渐层色属于英国短毛猫。");
content->show();
delete this;
}
void Silver_gradient::button2()
{
Silver_cat_content *content = new Silver_cat_content;
content->set_background();
content->ui->textBrowser->setFontPointSize(20);
content->ui->textBrowser->setFontFamily("");
content->ui->textBrowser->setStyleSheet("background:transparent;border-width:0;border-style:outset");
content->ui->textBrowser->setText(
"底层绒毛是纯白色。背部、两肋、头部和尾巴上的被毛的毛尖被充分地染成烟色、灰色、蓝色,外观呈现出闪烁的银色的特征。四肢上有轻微的毛尖染色阴影。脸颊、耳簇、腹部和胸部是纯白色"
"\n毛色:"
"\n毛色解释图取脊背部分的毛整根毛除了毛尖部分为黑色、色其他部分都是白色并且着色部分的长度与整根毛长度比例应为3分之一到8分之一6分之一到8分之一被称为毛尖色。着色比例方面如果出现大于3分之一的 或小于8分之一属于失格。被毛及四肢出现明显纹路的说明是罕见的返祖现象。"
"\n眼睛:"
"\n蓝绿、黄绿是被认同的,随着年龄不同程度呈现黄绿、绿蓝绿色,并有一圈黑色眼线;"
"\n鼻色:樱桃红色、砖红色;外围一圈黑色的鼻线;爪垫皮肤均为黑色。");
content->show();
delete this;
}
void Silver_gradient::button3()
{
Silver_cat_content *content = new Silver_cat_content;
content->set_background();
content->ui->textBrowser->setFontPointSize(20);
content->ui->textBrowser->setFontFamily("");
content->ui->textBrowser->setStyleSheet("background:transparent;border-width:0;border-style:outset");
content->ui->textBrowser->setText( "英国短毛猫银渐层色:\n"
"毛尖色多为三分之一、四分之一、八分之一毛尖色。"
"毛尖色是最显著的特征,眼睛的颜色为绿色系,分黄绿,蓝绿,橄榄绿,翡翠绿等,其中翡翠绿为稀有色。"
"银点渐层色:"
"在银渐层色的培育过程中,一些猫咪产生了部分的基因突变,产生了银渐层重点色,简称银点。"
"英国短毛猫重点色基因是一种淡化基因,产生一种酶抑制真黑素,重点色的猫刚出生是纯白色,随着生长,部分逐渐显现出了颜色,比如背部,尾巴等。"
"而这种淡化基因会使猫眼睛变为蓝色。具有重点基因的英国短毛猫。毛底色为白色毛尖颜色非常浅呈现烟灰色、泛褐色一般在4个月以后点色就会慢慢呈现不过也就八分之一---九分之一的毛尖色,点色会出现于背部和尾巴,尾巴稍甚。"
"眼睛:为天蓝和湖蓝色。"
"脚垫:为黑色、深棕色。"
"鼻线:可有可无。");
content->show();
delete this;
}

@ -0,0 +1,29 @@
#ifndef SILVER_GRADIENT_H
#define SILVER_GRADIENT_H
#include <QWidget>
namespace Ui {
class Silver_gradient;
}
class Silver_gradient : public QWidget
{
Q_OBJECT
public:
explicit Silver_gradient(QWidget *parent = 0);
~Silver_gradient();
void silver_book_set_background();
private slots:
void on_back_clicked();
void button1();
void button2();
void button3();
private:
Ui::Silver_gradient *ui;
};
#endif // SILVER_GRADIENT_H

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Silver_gradient</class>
<widget class="QWidget" name="Silver_gradient">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1280</width>
<height>720</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="QPushButton" name="back">
<property name="geometry">
<rect>
<x>20</x>
<y>20</y>
<width>71</width>
<height>71</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="resource.qrc">
<normaloff>:/image/房子.png</normaloff>:/image/房子.png</iconset>
</property>
<property name="iconSize">
<size>
<width>71</width>
<height>71</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>280</x>
<y>170</y>
<width>161</width>
<height>101</height>
</rect>
</property>
<property name="font">
<font>
<family>楷体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="text">
<string>简介</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_2">
<property name="geometry">
<rect>
<x>410</x>
<y>350</y>
<width>151</width>
<height>51</height>
</rect>
</property>
<property name="font">
<font>
<family>楷体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="text">
<string>特点介绍</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_3">
<property name="geometry">
<rect>
<x>550</x>
<y>170</y>
<width>151</width>
<height>101</height>
</rect>
</property>
<property name="font">
<font>
<family>楷体</family>
<pointsize>20</pointsize>
</font>
</property>
<property name="text">
<string>主要品类</string>
</property>
</widget>
</widget>
<resources>
<include location="resource.qrc"/>
</resources>
<connections/>
</ui>
Loading…
Cancel
Save