Fixed typo, style

This commit is contained in:
Klaus Basan
2019-06-26 23:33:23 +02:00
parent a0131bb48c
commit 1cd7496a78
14 changed files with 22 additions and 28 deletions

View File

@@ -32,8 +32,8 @@ namespace BlackGui
connect(ui->le_CombinedType, &QLineEdit::returnPressed, this, &CAircraftCombinedTypeSelector::combinedTypeEntered);
connect(ui->cb_EngineCount, &QComboBox::currentTextChanged, this, &CAircraftCombinedTypeSelector::changedComboBox);
connect(ui->cb_EngineType, &QComboBox::currentTextChanged, this, &CAircraftCombinedTypeSelector::changedComboBox);
connect(ui->cb_Type, &QComboBox::currentTextChanged, this, &CAircraftCombinedTypeSelector::changedComboBox);
connect(ui->cb_EngineType, &QComboBox::currentTextChanged, this, &CAircraftCombinedTypeSelector::changedComboBox);
connect(ui->cb_Type, &QComboBox::currentTextChanged, this, &CAircraftCombinedTypeSelector::changedComboBox);
ui->le_CombinedType->setValidator(new CUpperCaseValidator(this));
}

View File

@@ -31,7 +31,7 @@ namespace BlackGui
void CAircraftModelSetValidationDialog::validatedModelSet(const CSimulatorInfo &simulator, const CAircraftModelList &valid, const CAircraftModelList &invalid, bool stopped, const CStatusMessageList &msgs)
{
if (!sGui) { return; }
if (!sGui || sGui->isShuttingDown()) { return; }
ui->comp_AircraftModelValidation->validatedModelSet(simulator, valid, invalid, stopped, msgs);
this->setWindowTitle(QStringLiteral("Model validation for '%1'").arg(simulator.toQString(true)));
CGuiApplication::modalWindowToFront();

View File

@@ -32,7 +32,7 @@ namespace BlackGui
explicit CAutoPublishComponent(QWidget *parent = nullptr);
//! Destructor
virtual ~CAutoPublishComponent();
virtual ~CAutoPublishComponent() override;
//! Read the files
int readFiles();
@@ -61,4 +61,5 @@ namespace BlackGui
};
} // ns
} // ns
#endif // guard

View File

@@ -2,14 +2,6 @@
<ui version="4.0">
<class>CLoginComponent</class>
<widget class="QFrame" name="CLoginComponent">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>329</width>
<height>745</height>
</rect>
</property>
<property name="windowTitle">
<string>Login component</string>
</property>

View File

@@ -101,7 +101,7 @@ namespace BlackGui
BlackCore::CPluginManagerSimulator *m_plugins = nullptr;
BlackMisc::CSetting<BlackCore::Application::TEnabledSimulators> m_enabledSimulators { this, &CSettingsSimulatorComponent::reloadPluginConfig };
};
}
} // namespace
} // namespace
#endif // guard

View File

@@ -105,7 +105,7 @@ namespace BlackGui
//! Toggle visibility
void toggleVisibility();
//! Toggle frameless mode (EXPERIMENTAL)
//! Toggle frameless mode
void toggleFrameless();
//! Window always on top

View File

@@ -60,9 +60,9 @@ namespace BlackGui
void CEnableForFramelessWindow::setFrameless(bool frameless)
{
WindowMode nonFrameLessMode = m_originalWindowMode;
WindowMode nonFrameLessMode = m_originalWindowMode; // Tool/Normal Window
if (nonFrameLessMode == WindowFrameless) { nonFrameLessMode = WindowNormal; }
setMode(frameless ? WindowFrameless : nonFrameLessMode);
this->setMode(frameless ? WindowFrameless : nonFrameLessMode);
}
void CEnableForFramelessWindow::alwaysOnTop(bool onTop)
@@ -121,7 +121,7 @@ namespace BlackGui
Q_ASSERT_X(m_widget, "CEnableForFramelessWindow::setWindowAttributes", "Missing widget representing window");
Q_ASSERT_X(!m_framelessPropertyName.isEmpty(), "CEnableForFramelessWindow::setWindowAttributes", "Missing property name");
bool frameless = (mode == WindowFrameless);
const bool frameless = (mode == WindowFrameless);
// http://stackoverflow.com/questions/18316710/frameless-and-transparent-window-qt5
// https://bugreports.qt.io/browse/QTBUG-52206
@@ -130,7 +130,7 @@ namespace BlackGui
{
m_widget->setAttribute(Qt::WA_NativeWindow);
// causeing a BLACK background
// causing a BLACK background
m_widget->setAttribute(Qt::WA_NoSystemBackground, frameless);
m_widget->setAttribute(Qt::WA_TranslucentBackground, frameless); // causing QTBUG-52206
}