MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / OpenDialogSettings

Method OpenDialogSettings

Src/Operate.cpp:97–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97int COperate::OpenDialogSettings(QWidget *parent)
98{
99 int nRet = QDialog::Accepted;
100 QDialog* p = OnOpenDialogSettings(parent);
101 if(p)
102 {
103 // The dialog is closed when the connect is close.
104 bool check = connect(this, SIGNAL(sigFinished()),
105 p, SLOT(reject()));
106 Q_ASSERT(check);
107 p->setWindowIcon(this->Icon());
108 p->setWindowTitle(tr("Set ") + GetPlugin()->DisplayName());
109 p->setAttribute(Qt::WA_DeleteOnClose);
110 nRet = RC_SHOW_WINDOW(p);
111 } else {
112 qCritical(log) << "The Protocol [" << Protocol() << "] don't settings dialog";
113 }
114 return nRet;
115}
116
117QMenu* COperate::GetMenu(QWidget* parent)
118{

Callers 3

StartMethod · 0.80
slotNewMethod · 0.80
foreachFunction · 0.80

Calls 3

IconMethod · 0.95
ProtocolEnum · 0.85
DisplayNameMethod · 0.45

Tested by

no test coverage detected