QGCFirmwareUpdate.h 674 Bytes
Newer Older
1 2 3 4 5
#ifndef QGCFIRMWAREUPDATE_H
#define QGCFIRMWAREUPDATE_H

#include <QWidget>

6 7 8
namespace Ui
{
class QGCFirmwareUpdate;
9 10
}

11 12
class QGCFirmwareUpdate : public QWidget
{
13 14 15 16 17 18 19
    Q_OBJECT
public:
    QGCFirmwareUpdate(QWidget *parent = 0);
    ~QGCFirmwareUpdate();

protected:
    void changeEvent(QEvent *e);
20 21 22 23 24 25 26 27 28 29 30
    void showEvent(QShowEvent* event)
    {
        QWidget::showEvent(event);
        emit visibilityChanged(true);
    }

    void hideEvent(QHideEvent* event)
    {
        QWidget::hideEvent(event);
        emit visibilityChanged(false);
    }
31 32 33

private:
    Ui::QGCFirmwareUpdate *ui;
34 35 36

signals:
    void visibilityChanged(bool visible);
37 38 39
};

#endif // QGCFIRMWAREUPDATE_H