* Use SyncthingNotifier class * Show 'Sync complete' on FolderCompletion event * Add extra structure for stats
41 lines
643 B
C++
41 lines
643 B
C++
#ifndef TRAY_MENU_H
|
|
#define TRAY_MENU_H
|
|
|
|
#include <QMenu>
|
|
|
|
namespace QtGui {
|
|
|
|
class TrayIcon;
|
|
class TrayWidget;
|
|
|
|
class TrayMenu : public QMenu {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
TrayMenu(const QString &connectionConfig = QString(), TrayIcon *trayIcon = nullptr, QWidget *parent = nullptr);
|
|
|
|
QSize sizeHint() const;
|
|
TrayWidget *widget();
|
|
TrayIcon *icon();
|
|
|
|
public slots:
|
|
void showAtCursor();
|
|
|
|
private:
|
|
TrayWidget *m_trayWidget;
|
|
TrayIcon *m_trayIcon;
|
|
};
|
|
|
|
inline TrayWidget *TrayMenu::widget()
|
|
{
|
|
return m_trayWidget;
|
|
}
|
|
|
|
inline TrayIcon *TrayMenu::icon()
|
|
{
|
|
return m_trayIcon;
|
|
}
|
|
} // namespace QtGui
|
|
|
|
#endif // TRAY_MENU_H
|