mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Formatting
This commit is contained in:
committed by
Roland Winklmeier
parent
016537f257
commit
9a920367b2
@@ -483,13 +483,13 @@ const QString &BlackMisc::localHostName()
|
||||
*/
|
||||
const QString &BlackMisc::localHostNameEnvVariable()
|
||||
{
|
||||
static const QString hostName =
|
||||
QProcessEnvironment::systemEnvironment().value("COMPUTERNAME",
|
||||
QProcessEnvironment::systemEnvironment().value("HOSTNAME"));
|
||||
static const QString hostName = QProcessEnvironment::systemEnvironment().value("COMPUTERNAME", QProcessEnvironment::systemEnvironment().value("HOSTNAME"));
|
||||
return hostName;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Window mixer
|
||||
*/
|
||||
bool BlackMisc::Audio::startWindowsMixer()
|
||||
{
|
||||
QStringList parameterlist;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace BlackMisc
|
||||
CIcon() = default;
|
||||
|
||||
//! Constructor.
|
||||
CIcon( CIcons::IconIndex index, const QString &descriptiveText) :
|
||||
CIcon(CIcons::IconIndex index, const QString &descriptiveText) :
|
||||
m_index(static_cast<int>(index)), m_descriptiveText(descriptiveText) {}
|
||||
|
||||
//! Get descriptive text
|
||||
@@ -40,7 +40,7 @@ namespace BlackMisc
|
||||
QPixmap toPixmap() const;
|
||||
|
||||
//! Icon set?
|
||||
bool isSet() const { return this->m_index != static_cast<int>(CIcons::NotSet);}
|
||||
bool isSet() const { return (this->m_index != static_cast<int>(CIcons::NotSet));}
|
||||
|
||||
//! Rotate by n degrees
|
||||
void setRotation(int degrees) { this->m_rotateDegrees = degrees; }
|
||||
@@ -52,7 +52,7 @@ namespace BlackMisc
|
||||
void setDescriptiveText(const QString &text) { this->m_descriptiveText = text; }
|
||||
|
||||
//! Implicit conversion
|
||||
operator QPixmap () const { return this->toPixmap(); }
|
||||
operator QPixmap() const { return this->toPixmap(); }
|
||||
|
||||
protected:
|
||||
//! \copydoc CValueObject::convertToQString
|
||||
|
||||
Reference in New Issue
Block a user