mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Formatting, tweaks, style sheet
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>300</width>
|
||||
<height>180</height>
|
||||
<height>185</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -17,7 +17,7 @@
|
||||
<string notr="true">QFrame#fr_InfoWindow {
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
border-radius: 20px;
|
||||
border-radius: 10px;
|
||||
border-color: white;
|
||||
}
|
||||
|
||||
@@ -51,19 +51,19 @@ QTextEdit {
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="vl_InfoWindow">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QFrame" name="fr_InfoWindow">
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace BlackMisc
|
||||
changedFlag = this->m_trafficNetworkServers.contains(&CServer::getName, server.getName());
|
||||
this->m_trafficNetworkServers.removeIf(&CServer::getName, server.getName());
|
||||
}
|
||||
msgs.push_back(CStatusMessage::getInfoMessage("set current server", CStatusMessage::TypeSettings));
|
||||
msgs.push_back(CStatusMessage::getInfoMessage("Set current server", CStatusMessage::TypeSettings));
|
||||
return msgs;
|
||||
}
|
||||
else if (path == CSettingsNetwork::ValueBookingServiceUrl())
|
||||
|
||||
@@ -15,20 +15,18 @@
|
||||
|
||||
namespace BlackSim
|
||||
{
|
||||
//! \brief Value object encapsulating a list of SimulatorInfo.
|
||||
//! Value object encapsulating a list of SimulatorInfo objects.
|
||||
class CSimulatorInfoList : public BlackMisc::CSequence<CSimulatorInfo>
|
||||
{
|
||||
public:
|
||||
//! Default constructor
|
||||
CSimulatorInfoList();
|
||||
|
||||
//! \brief Construct from a base class object.
|
||||
//! Construct from a base class object.
|
||||
CSimulatorInfoList(const CSequence<CSimulatorInfo> &other);
|
||||
|
||||
//! \copydoc CValueObject::toQVariant
|
||||
virtual QVariant toQVariant() const
|
||||
{
|
||||
return QVariant::fromValue(*this);
|
||||
}
|
||||
virtual QVariant toQVariant() const { return QVariant::fromValue(*this); }
|
||||
|
||||
//! Is simulator supported
|
||||
bool supportsSimulator(const CSimulatorInfo &info);
|
||||
@@ -36,11 +34,10 @@ namespace BlackSim
|
||||
//! String list with meaningful representations
|
||||
QStringList toStringList(bool i18n = false) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Q_DECLARE_METATYPE(BlackSim::CSimulatorInfoList)
|
||||
Q_DECLARE_METATYPE(BlackMisc::CCollection<BlackSim::CSimulatorInfo>)
|
||||
Q_DECLARE_METATYPE(BlackMisc::CSequence<BlackSim::CSimulatorInfo>)
|
||||
|
||||
#endif // BLACKSIM_SIMULATORINFOLIST_H
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user