mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
Fixed several issues detected during testing / review (refs #304)
* MS report 1-5 https://dev.vatsim-germany.org/issues/304#change-1800 * Clang warning https://dev.vatsim-germany.org/boards/22/topics/1982?r=1997#message-1997 * Wrong indexes for dockable widgets, RW: https://dev.vatsim-germany.org/issues/304#note-13 * Fixed wrong offset in Fsuipc class * Improved position handling for floating widgets opened 1st time
This commit is contained in:
@@ -28,7 +28,7 @@ namespace BlackMisc
|
||||
CIcon() {}
|
||||
|
||||
//! Constructor.
|
||||
CIcon(CIcons::IconIndexes index, const QString &descriptiveText) :
|
||||
CIcon( CIcons::IconIndex index, const QString &descriptiveText) :
|
||||
m_index(static_cast<int>(index)), m_descriptiveText(descriptiveText) {}
|
||||
|
||||
//! \copydoc CValueObject::toQVariant
|
||||
@@ -38,7 +38,7 @@ namespace BlackMisc
|
||||
const QString &getDescriptiveText() const { return this->m_descriptiveText; }
|
||||
|
||||
//! Index
|
||||
CIcons::IconIndexes getIndex() const { return static_cast<CIcons::IconIndexes>(this->m_index);}
|
||||
CIcons::IconIndex getIndex() const { return static_cast< CIcons::IconIndex>(this->m_index);}
|
||||
|
||||
//! Corresponding pixmap
|
||||
QPixmap toPixmap() const;
|
||||
|
||||
Reference in New Issue
Block a user