~feng-kylin/youker-assistant/youker-assistant

« back to all changes in this revision

Viewing changes to component/kylinmenu.cpp

  • Committer: lixiang
  • Date: 2018-03-06 03:13:06 UTC
  • Revision ID: lixiang@kylinos.cn-20180306031306-fd7qnru3vm4a1xjd
Rewrite with Qt5, and add system monitor

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
#include "kylinmenu.h"
21
 
#include "../mainui/mainwindow.h"
 
21
#include "../src/mainwindow.h"
22
22
#include <QEvent>
23
23
#include <QHelpEvent>
24
24
 
116
116
    help_button = new QPushButton();
117
117
    feedback_button = new QPushButton();
118
118
    about_button = new QPushButton();
119
 
    check_button->setStyleSheet("QPushButton{background:transparent;text-align:left;font-family: 方正黑体_GBK;font-size:14px;color:#666666;}QPushButton:hover{color:#0396DC;}");
120
 
    help_button->setStyleSheet("QPushButton{background:transparent;text-align:left;font-family: 方正黑体_GBK;font-size:14px;color:#666666;}QPushButton:hover{color:#0396DC;}");
121
 
    feedback_button->setStyleSheet("QPushButton{background:transparent;text-align:left;font-family: 方正黑体_GBK;font-size:14px;color:#666666;}QPushButton:hover{color:#0396DC;}");
122
 
    about_button->setStyleSheet("QPushButton{background:transparent;text-align:left;font-family: 方正黑体_GBK;font-size:14px;color:#666666;}QPushButton:hover{color:#0396DC;}");
 
119
    check_button->setStyleSheet("QPushButton{background-color:transparent;border:none;text-align:left;font-family: 方正黑体_GBK;font-size:14px;color:#666666;}QPushButton:hover{color:#0396DC;}");//background:transparent;
 
120
    help_button->setStyleSheet("QPushButton{background-color:transparent;border:none;text-align:left;font-family: 方正黑体_GBK;font-size:14px;color:#666666;}QPushButton:hover{color:#0396DC;}");//background:transparent;
 
121
    feedback_button->setStyleSheet("QPushButton{background-color:transparent;border:none;text-align:left;font-family: 方正黑体_GBK;font-size:14px;color:#666666;}QPushButton:hover{color:#0396DC;}");//background:transparent;
 
122
    about_button->setStyleSheet("QPushButton{background-color:transparent;border:none;text-align:left;font-family: 方正黑体_GBK;font-size:14px;color:#666666;}QPushButton:hover{color:#0396DC;}");//background:transparent;
123
123
 
124
124
    QPixmap check_pixmap(":/tool/res/menu/upgrade.png");
125
125
    check_label->setPixmap(check_pixmap);
126
126
    check_label->setFixedSize(check_pixmap.size());
127
127
    check_button->setFocusPolicy(Qt::NoFocus);
128
 
    check_button->setObjectName("transparentButton");
129
128
 
130
129
    QPixmap help_pixmap(":/tool/res/menu/help.png");
131
130
    help_label->setPixmap(help_pixmap);
133
132
//    help_button->setIcon(help_pixmap);
134
133
//    help_button->setIconSize(help_pixmap.size());
135
134
    help_button->setFocusPolicy(Qt::NoFocus);
136
 
    help_button->setObjectName("transparentButton");
137
135
 
138
136
    QPixmap feedback_pixmap(":/tool/res/menu/feedback.png");
139
137
    feedback_label->setPixmap(feedback_pixmap);
140
138
    feedback_label->setFixedSize(feedback_pixmap.size());
141
139
    feedback_button->setFocusPolicy(Qt::NoFocus);
142
 
    feedback_button->setObjectName("transparentButton");
143
140
 
144
141
    QPixmap about_pixmap(":/tool/res/menu/about.png");
145
142
    about_label->setPixmap(about_pixmap);
146
143
    about_label->setFixedSize(about_pixmap.size());
147
144
    about_button->setFocusPolicy(Qt::NoFocus);
148
 
    about_button->setObjectName("transparentButton");
149
145
 
150
146
    QHBoxLayout *check_layout = new QHBoxLayout();
151
147
    check_layout->addWidget(check_label);