mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 03:45:30 +08:00
Issue #77 Rename
This commit is contained in:
@@ -1384,7 +1384,7 @@ namespace BlackGui
|
||||
// changing widget style is slow, so I try to prevent setting it when nothing changed
|
||||
const QString widgetStyle = m_guiSettings.get().getWidgetStyle();
|
||||
const QString currentWidgetStyle(this->getWidgetStyle());
|
||||
Q_ASSERT_X(CThreadUtils::isCurrentThreadApplicationThread(), Q_FUNC_INFO, "Wrong thread");
|
||||
Q_ASSERT_X(CThreadUtils::thisIsMainThread(), Q_FUNC_INFO, "Wrong thread");
|
||||
if (!stringCompare(widgetStyle, currentWidgetStyle, Qt::CaseInsensitive))
|
||||
{
|
||||
const QStringList availableStyles = QStyleFactory::keys();
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace BlackGui
|
||||
m_pendingIds.clear();
|
||||
if (m_timerId != -1)
|
||||
{
|
||||
BLACK_AUDIT_X(CThreadUtils::isCurrentThreadObjectThread(this), Q_FUNC_INFO, "Try to kill timer from another thread");
|
||||
BLACK_AUDIT_X(CThreadUtils::isInThisThread(this), Q_FUNC_INFO, "Try to kill timer from another thread");
|
||||
this->killTimer(m_timerId);
|
||||
}
|
||||
m_timerId = -1;
|
||||
@@ -106,7 +106,7 @@ namespace BlackGui
|
||||
m_delayMs = delay;
|
||||
if (m_timerId != -1)
|
||||
{
|
||||
BLACK_AUDIT_X(CThreadUtils::isCurrentThreadObjectThread(this), Q_FUNC_INFO, "Try to kill timer from another thread");
|
||||
BLACK_AUDIT_X(CThreadUtils::isInThisThread(this), Q_FUNC_INFO, "Try to kill timer from another thread");
|
||||
this->killTimer(m_timerId);
|
||||
}
|
||||
m_timerId = this->startTimer(m_delayMs);
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace BlackGui
|
||||
|
||||
void CAircraftCategoryTreeModel::updateContainer(const CAircraftCategoryList &categories)
|
||||
{
|
||||
Q_ASSERT_X(CThreadUtils::isCurrentThreadObjectThread(this), Q_FUNC_INFO, "Wrong thread");
|
||||
Q_ASSERT_X(CThreadUtils::isInThisThread(this), Q_FUNC_INFO, "Wrong thread");
|
||||
|
||||
this->clear();
|
||||
if (categories.isEmpty()) { return; }
|
||||
|
||||
Reference in New Issue
Block a user