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

Method on_actionOpenRRCFile_triggered

App/Client/mainwindow.cpp:992–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

990}
991
992void MainWindow::on_actionOpenRRCFile_triggered()
993{
994 QString szFile = QFileDialog::getOpenFileName(
995 this,
996 tr("Open rabbit remote control file"),
997 RabbitCommon::CDir::Instance()->GetDirUserData(),
998 tr("Rabbit remote control Files (*.rrc);;All files(*.*)"));
999 if(szFile.isEmpty()) return;
1000
1001 COperate* p = m_Manager.LoadOperate(szFile);
1002 if(nullptr == p)
1003 {
1004 slotStatusMessage(tr("Load file fail: ") + szFile, MessageLevel::Error);
1005 return;
1006 }
1007
1008 Start(p, true);
1009}
1010
1011void MainWindow::slotStart()
1012{

Callers

nothing calls this directly

Calls 2

LoadOperateMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected