MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / showConfirmDialog

Method showConfirmDialog

src/plugins/codeeditor/gui/tabbar.cpp:72–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72int TabBarPrivate::showConfirmDialog(const QString &filePath)
73{
74 DDialog dialog(q);
75 dialog.setWindowTitle(tr("Save Changes"));
76 dialog.setIcon(QIcon::fromTheme("dialog-warning"));
77 dialog.setMessage(tr("The file %1 has unsaved changes, will save?").arg(QFileInfo(filePath).fileName()));
78 dialog.addButton(tr("Save", "button"), true, DDialog::ButtonRecommend);
79 dialog.addButton(tr("Do Not Save", "button"));
80 dialog.addButton(tr("Cancel", "button"));
81
82 return dialog.exec();
83}
84
85void TabBarPrivate::initConnection()
86{

Callers 1

removeTabMethod · 0.80

Calls 4

fileNameMethod · 0.80
setIconMethod · 0.45
setMessageMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected