MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / showTipsWidget

Method showTipsWidget

src/WizMessageListView.cpp:1146–1166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1144}
1145
1146void WizMessageListTitleBar::showTipsWidget()
1147{
1148 if (WizTipsWidget::isTipsExists(MESSAGELISTTITLEBARTIPSCHECKED))
1149 return;
1150
1151 WizTipsWidget* tipWidget = new WizTipsWidget(MESSAGELISTTITLEBARTIPSCHECKED, this);
1152 connect(m_msgListMarkAllBtn, SIGNAL(clicked(bool)), tipWidget, SLOT(on_targetWidgetClicked()));
1153 tipWidget->setAttribute(Qt::WA_DeleteOnClose, true);
1154 tipWidget->setText(tr("Mark all as readed"), tr("Mark all messages as readed."));
1155 tipWidget->setSizeHint(QSize(280, 60));
1156 tipWidget->setButtonVisible(false);
1157 tipWidget->bindCloseFunction([](){
1158 if (WizMainWindow* mainWindow = WizMainWindow::instance())
1159 {
1160 mainWindow->userSettings().set(MESSAGELISTTITLEBARTIPSCHECKED, "1");
1161 }
1162 });
1163 tipWidget->bindTargetWidget(m_msgListMarkAllBtn, -6, 2);
1164 tipWidget->on_showRequest();
1165 //
1166}
1167
1168void WizMessageListTitleBar::paintEvent(QPaintEvent* ev)
1169{

Callers

nothing calls this directly

Calls 8

setButtonVisibleMethod · 0.80
bindCloseFunctionMethod · 0.80
setMethod · 0.80
bindTargetWidgetMethod · 0.80
on_showRequestMethod · 0.80
QSizeClass · 0.70
setTextMethod · 0.45
setSizeHintMethod · 0.45

Tested by

no test coverage detected