8 setGeometry(200, 200, 320, 80);
10 setAttribute(Qt::WA_DeleteOnClose,
false);
11 setAttribute(Qt::WA_QuitOnClose,
false);
13 QHBoxLayout *hbox =
new QHBoxLayout(
this);
14 hbox->setContentsMargins(5, 5, 5, 5);
22 mhbox->addWidget(topWidget);
60 m_lrcButton->setCursor(QCursor(Qt::PointingHandCursor));
63 m_listButton->setCursor(QCursor(Qt::PointingHandCursor));
66 QHBoxLayout *topWidgetBox =
new QHBoxLayout(topWidget);
67 topWidgetBox->setContentsMargins(0, 0, 0, 0);
69 topWidgetBox->setSpacing(1);
73 topWidget->setLayout(topWidgetBox);
76 bottomWidgetBox->setContentsMargins(0, 0, 0, 0);
77 bottomWidgetBox->setSpacing(1);
81 bottomWidgetBox->addStretch(1);
112 setFixedHeight(f ? 50 : 80);
121 TTKAbstractMoveWidget::contextMenuEvent(event);
124 menu.setWindowFlags(menu.windowFlags() | Qt::FramelessWindowHint);
125 menu.setAttribute(Qt::WA_TranslucentBackground);
127 menu.addAction(QIcon(
":/contextMenu/btn_selected"), tr(
"WindowTop"))->setEnabled(
false);
128 menu.addAction(tr(
"Show MainWindow"),
this, SIGNAL(
showMainWindow()));
129 menu.addAction(tr(
"Quit"),
this, SLOT(
close()));
130 menu.exec(QCursor::pos());
static const QString MenuStyle04
static const QString WidgetStyle01
Widget.
static constexpr const char * TinyBtnLrcOff
static constexpr const char * TinyBtnExpand
static constexpr const char * TinyBtnCollapse
static constexpr const char * TinyBtnWallpaperOff
static const QString ToolButtonStyle04
static constexpr const char * TinyBtnList