#include "generalpurposecon.h"
#include "hwkeybutton.h"
+#include "resource/ui_strings.h"
GeneralPurposeCon::GeneralPurposeCon(QWidget *parent,
QList<HardwareKey *> keyList, QSize size) : QWidget(parent)
void GeneralPurposeCon::createItems(QList<HardwareKey *> keyList, QSize size)
{
QWidget *buttonGroup = new QWidget(this);
+ buttonGroup->setStyleSheet(STYLE_TOOLTIP);
QVBoxLayout *layout = new QVBoxLayout(buttonGroup);
layout->setMargin(0);
QTableWidget *DetailedInfoDialog::createVmInfoTable()
{
QTableWidget *vmInfo = new QTableWidget();
+ vmInfo->setStyleSheet(STYLE_TOOLTIP);
/* horizontal headers */
QStringList headers;
table->insertRow(row);
table->setItem(row, 0, new QTableWidgetItem(key));
QTableWidgetItem *item = new QTableWidgetItem(value);
+
table->setItem(row, 1, item);
if (!tooltip.isNull() && !tooltip.isEmpty()) {
{
/* === tool bar === */
toolBar = new QToolBar(this);
+ toolBar->setStyleSheet(STYLE_TOOLTIP);
/* Save */
actionSave = new QAction(SCREENSHOT_SAVE_TEXT, this);
#define ABOUT_BUILD_DATE_TEXT "Build Date"
#define ABOUT_VISIT_TEXT "Visit"
+/* style sheet*/
+#define STYLE_TOOLTIP "QToolTip {"\
+ "color: black; background-color: white; border: 1px solid black; }"
+
/* messages */
#define MSG_SDB_NOT_READY "SDB is not ready.\nPlease wait until the emulator is completely boot up."
#define MSG_SDB_NOT_EXIST "SDB file does not exist in the following path.\n"
longPressTimer->setSingleShot(true);
connect(longPressTimer, SIGNAL(timeout()), this, SLOT(longPressHook()));
- setToolTip("<span style=background-color:white><font color=black>"
- + hwKey->getTooltip() + "</font></span>");
+ setToolTip(hwKey->getTooltip());
setAcceptHoverEvents(true);
}
#include <QtWidgets>
#include "skinview.h"
+#include "resource/ui_strings.h"
SkinView::SkinView(QWidget *parent, QGraphicsScene *scene) :
QGraphicsView(scene, parent)
this->grabPos = QPoint(-1, -1);
setStyleSheet("border-style: none");
+ setStyleSheet(STYLE_TOOLTIP);
+
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setAlignment(Qt::AlignLeft | Qt::AlignTop);