mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55: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:
@@ -19,14 +19,13 @@ namespace BlackMisc
|
||||
//! Standard icons
|
||||
class CIcons
|
||||
{
|
||||
private:
|
||||
//! Constructor, use class static only
|
||||
CIcons();
|
||||
|
||||
public:
|
||||
|
||||
//! Constructor, use class static only
|
||||
CIcons() = delete;
|
||||
|
||||
//! Index for each icon, allows to send them via DBus, efficiently store them, etc.
|
||||
enum IconIndexes
|
||||
enum IconIndex
|
||||
{
|
||||
NotSet,
|
||||
StandardIconInfo16,
|
||||
@@ -606,7 +605,7 @@ namespace BlackMisc
|
||||
// -------------------------------------------------------------
|
||||
|
||||
//! Pixmap by given index
|
||||
static const QPixmap &pixmapByIndex(IconIndexes index)
|
||||
static const QPixmap &pixmapByIndex(IconIndex index)
|
||||
{
|
||||
switch (index)
|
||||
{
|
||||
@@ -687,7 +686,7 @@ namespace BlackMisc
|
||||
}
|
||||
|
||||
//! Pixmap by given index rotated
|
||||
static QPixmap pixmapByIndex(IconIndexes index, int rotateDegrees)
|
||||
static QPixmap pixmapByIndex(IconIndex index, int rotateDegrees)
|
||||
{
|
||||
const QPixmap original = pixmapByIndex(index);
|
||||
if (rotateDegrees == 0) return original;
|
||||
|
||||
Reference in New Issue
Block a user