syncthingtray/gui/traymenu.h

32 lines
384 B
C
Raw Normal View History

2016-08-30 20:01:07 +02:00
#ifndef TRAY_MENU_H
#define TRAY_MENU_H
#include <QMenu>
namespace QtGui {
class TrayWidget;
class TrayMenu : public QMenu
{
Q_OBJECT
public:
TrayMenu(QWidget *parent = nullptr);
QSize sizeHint() const;
TrayWidget *widget();
private:
TrayWidget *m_trayWidget;
};
inline TrayWidget *TrayMenu::widget()
{
return m_trayWidget;
}
}
#endif // TRAY_MENU_H