mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Formatting
This commit is contained in:
@@ -19,7 +19,7 @@ namespace BlackCore
|
||||
QString CActionBind::registerAction(const QString &action, const QPixmap &icon)
|
||||
{
|
||||
const QString a = CActionBind::normalizeAction(action);
|
||||
auto inputManger = CInputManager::instance();
|
||||
CInputManager *inputManger = CInputManager::instance();
|
||||
Q_ASSERT_X(inputManger, Q_FUNC_INFO, "Missing input manager");
|
||||
inputManger->registerAction(a, icon);
|
||||
return a;
|
||||
|
||||
@@ -89,6 +89,7 @@ namespace BlackGui
|
||||
ui->le_Simulator->setText(simulator.toQString(true));
|
||||
QTimer::singleShot(500, [this]()
|
||||
{
|
||||
if (!sApp || sApp->isShuttingDown()) { return; }
|
||||
this->updateViewToCurrentModels();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -34,8 +34,8 @@ namespace BlackGui
|
||||
}
|
||||
|
||||
HWND hWindow = FindWindow(lpClassName.data(), lpWindowName.data());
|
||||
if (hWindow) { return QWindow::fromWinId(reinterpret_cast<WId>(hWindow)); }
|
||||
|
||||
if (hWindow) return QWindow::fromWinId(reinterpret_cast<WId>(hWindow));
|
||||
else return nullptr;
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ namespace BlackGui
|
||||
class BLACKGUI_EXPORT CWindowFinderWindows : public IWindowFinder
|
||||
{
|
||||
public:
|
||||
|
||||
//! Constructor
|
||||
CWindowFinderWindows() {}
|
||||
|
||||
@@ -30,7 +29,6 @@ namespace BlackGui
|
||||
|
||||
//! \copydoc IWindowFinder::findForeignWindow
|
||||
virtual QWindow *findForeignWindow(const QString &windowName, const QString &className) override;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -42,4 +42,4 @@ namespace BlackInput
|
||||
};
|
||||
}
|
||||
|
||||
#endif // BLACKINPUT_JOYSTICK_H
|
||||
#endif // guard
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace BlackMisc
|
||||
CAtomicFile(const QString &filename) : QFile(filename) {}
|
||||
|
||||
//! \copydoc QFile::~QFile
|
||||
~CAtomicFile() { if (std::uncaught_exception()) { QFile::close(); } }
|
||||
virtual ~CAtomicFile() { if (std::uncaught_exception()) { QFile::close(); } }
|
||||
|
||||
//! \copydoc QFile::open
|
||||
//! Just before opening the file, the filename is changed so we actually write to a temporary file.
|
||||
|
||||
@@ -152,10 +152,7 @@ void CSwiftData::initMenu()
|
||||
|
||||
void CSwiftData::performGracefulShutdown()
|
||||
{
|
||||
if (m_updater)
|
||||
{
|
||||
m_updater->abandonAndWait();
|
||||
}
|
||||
if (m_updater) { m_updater->abandonAndWait(); }
|
||||
}
|
||||
|
||||
void CSwiftData::consolidationSettingChanged()
|
||||
|
||||
Reference in New Issue
Block a user