9 #ifndef UI_CROSSWIDGET_H 10 #define UI_CROSSWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QAction> 14 #include <QtGui/QApplication> 15 #include <QtGui/QButtonGroup> 16 #include <QtGui/QHeaderView> 17 #include <QtGui/QLabel> 18 #include <QtGui/QWidget> 33 if (CrossWidgetClass->objectName().isEmpty())
34 CrossWidgetClass->setObjectName(QString::fromUtf8(
"CrossWidgetClass"));
35 CrossWidgetClass->resize(200, 300);
36 CrossWidgetClass->setMouseTracking(
true);
37 widgetCross =
new QWidget(CrossWidgetClass);
38 widgetCross->setObjectName(QString::fromUtf8(
"widgetCross"));
39 widgetCross->setGeometry(QRect(0, 0, 200, 300));
40 widgetCross->setCursor(QCursor(Qt::CrossCursor));
41 widgetCross->setMouseTracking(
true);
42 label_forward =
new QLabel(widgetCross);
43 label_forward->setObjectName(QString::fromUtf8(
"label_forward"));
44 label_forward->setGeometry(QRect(80, 0, 46, 20));
45 label_forward->setCursor(QCursor(Qt::CrossCursor));
46 label_forward->setMouseTracking(
true);
47 label_forward->setAutoFillBackground(
false);
48 label_forward->setTextInteractionFlags(Qt::NoTextInteraction);
49 label_left =
new QLabel(widgetCross);
50 label_left->setObjectName(QString::fromUtf8(
"label_left"));
51 label_left->setGeometry(QRect(10, 150, 20, 20));
52 label_left->setCursor(QCursor(Qt::CrossCursor));
53 label_left->setMouseTracking(
true);
54 label_right =
new QLabel(widgetCross);
55 label_right->setObjectName(QString::fromUtf8(
"label_right"));
56 label_right->setGeometry(QRect(170, 150, 20, 20));
57 label_right->setCursor(QCursor(Qt::CrossCursor));
58 label_right->setMouseTracking(
true);
59 label_right->setAutoFillBackground(
false);
60 label_backward =
new QLabel(widgetCross);
61 label_backward->setObjectName(QString::fromUtf8(
"label_backward"));
62 label_backward->setGeometry(QRect(80, 280, 46, 20));
63 label_backward->setCursor(QCursor(Qt::CrossCursor));
64 label_backward->setMouseTracking(
true);
65 label_backward->setAutoFillBackground(
false);
69 QMetaObject::connectSlotsByName(CrossWidgetClass);
74 CrossWidgetClass->setWindowTitle(QApplication::translate(
"CrossWidgetClass",
"CrossWidget", 0, QApplication::UnicodeUTF8));
75 widgetCross->setStyleSheet(QApplication::translate(
"CrossWidgetClass",
"background-image: url(:/image/images/bgcross.png);\n" 76 "background-position: center;", 0, QApplication::UnicodeUTF8));
77 label_forward->setStyleSheet(QApplication::translate(
"CrossWidgetClass",
"background: none;\n" 78 "background-color: rgb(255, 255, 255);", 0, QApplication::UnicodeUTF8));
79 label_forward->setText(QApplication::translate(
"CrossWidgetClass",
"forward", 0, QApplication::UnicodeUTF8));
80 label_left->setStyleSheet(QApplication::translate(
"CrossWidgetClass",
"background: none;", 0, QApplication::UnicodeUTF8));
81 label_left->setText(QApplication::translate(
"CrossWidgetClass",
"left", 0, QApplication::UnicodeUTF8));
82 label_right->setStyleSheet(QApplication::translate(
"CrossWidgetClass",
"background: none;", 0, QApplication::UnicodeUTF8));
83 label_right->setText(QApplication::translate(
"CrossWidgetClass",
"right", 0, QApplication::UnicodeUTF8));
84 label_backward->setStyleSheet(QApplication::translate(
"CrossWidgetClass",
"background: none;\n" 85 "background-color: rgb(255, 255, 255);", 0, QApplication::UnicodeUTF8));
86 label_backward->setText(QApplication::translate(
"CrossWidgetClass",
"backward", 0, QApplication::UnicodeUTF8));
97 #endif // UI_CROSSWIDGET_H